I’ve set up a brand new Discourse, I’ve activated it and it works fine. No changes have been applied at all. I’m trying to perform a PHPBB3 import, but it’s failing very early on, before the sql dump has even been called upon. Seems there is a problem creating a directory, but can’t understand why or how to fix.
First I run these:
cd /var/discourse
cp containers/app.yml containers/import.yml
nano containers/import.yml
Then I update the import.yml to add the entry to the list of templates.
We switched from Ubuntu to Debian. That’s why it isn’t working anymore.
I gave it a quick try and it mostly works by applying the following changes, but somehow the MariaDB server didn’t automatically start. I’ll have a look when I have more time…
You could manually apply those changes to the template for now and start the server by running service mysql stop and service mysql start inside the container afterwards. That should work.
I’m having trouble running import_phpbb3.sh inside the import container. I had to restart the mysql by using the commands
/etc/init.d/mysql stop
and
/etc/init.d/mysql start
then I could enter the import container, where I ran import_phpbb3.sh, but it failed:
root@mydiscourse-import:/var/www/discourse# import_phpbb3.sh
The phpBB3 import is starting...
**Traceback** (most recent call last):
9: from script/import_scripts/phpbb3.rb:13:in `<main>'
8: from script/import_scripts/phpbb3.rb:14:in `<module:ImportScripts>'
7: from script/import_scripts/phpbb3.rb:26:in `<module:PhpBB3>'
6: from /var/www/discourse/script/import_scripts/phpbb3/database/database.rb:9:in `create'
5: from /var/www/discourse/script/import_scripts/phpbb3/database/database.rb:9:in `new'
4: from /var/www/discourse/script/import_scripts/phpbb3/database/database.rb:15:in `initialize'
3: from /var/www/discourse/script/import_scripts/phpbb3/database/database.rb:39:in `create_database_client'
2: from /var/www/discourse/script/import_scripts/phpbb3/database/database.rb:39:in `new'
1: from /var/www/discourse/vendor/bundle/ruby/2.6.0/gems/mysql2-0.5.2/lib/mysql2/client.rb:90:in `initialize'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/mysql2-0.5.2/lib/mysql2/client.rb:90:in `connect': **Access denied for user 'root'@'localhost' (** **Mysql2::Error** **)**
Thanks, I’ve tried it but I’m still getting an error I’m afraid:
The phpBB3 import is starting...
**Traceback** (most recent call last):
9: from script/import_scripts/phpbb3.rb:13:in `<main>'
8: from script/import_scripts/phpbb3.rb:14:in `<module:ImportScripts>'
7: from script/import_scripts/phpbb3.rb:26:in `<module:PhpBB3>'
6: from /var/www/discourse/script/import_scripts/phpbb3/database/database.rb:9:in `create'
5: from /var/www/discourse/script/import_scripts/phpbb3/database/database.rb:9:in `new'
4: from /var/www/discourse/script/import_scripts/phpbb3/database/database.rb:15:in `initialize'
3: from /var/www/discourse/script/import_scripts/phpbb3/database/database.rb:39:in `create_database_client'
2: from /var/www/discourse/script/import_scripts/phpbb3/database/database.rb:39:in `new'
1: from /var/www/discourse/vendor/bundle/ruby/2.6.0/gems/mysql2-0.5.2/lib/mysql2/client.rb:90:in `initialize'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/mysql2-0.5.2/lib/mysql2/client.rb:90:in `connect': **Unknown database 'phpbb' (** **Mysql2::Error** **)**
Please make sure that /var/discourse/shared/standalone/import/data/phpbb_mysql.sql exists and is a valid database dump. Then delete /var/discourse/shared/standalone/import/mysql/imported and try again.
Deleting /var/discourse/shared/standalone/import/mysql/imported worked and the import has begun! I’ll report back my results when the import has completed.