Phpbb3 import - error while building container

AI-generated summary

AudeF is experiencing an error while building a container to import a phpBB3 forum into Discourse. When running launcher rebuild import, they encounter a Pups::ExecError caused by a failed apt-get update command. pfaffman suggests that this is due to a known bug and provides a workaround, which involves editing the template to resolve the issue, as described in this topic: https://meta.discourse.org/t/apt-get-update-fails-inside-container-yarn-repo-not-signed/253133.

Hi!
I’m trying to import my old phpBB3 forum in discourse, by following this tutorial : Migrate a phpBB3 forum to Discourse

But I can’t even prepare the docker container :sweat_smile:

When I execute launcher rebuild import I have this error:

FAILED
--------------------
Pups::ExecError: apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y nano libmariadb-dev mariadb-server failed with return #<Process::Status: pid 254 exit 100>
Location of failure: /usr/local/lib/ruby/gems/3.1.0/gems/pups-1.1.1/lib/pups/exec_command.rb:117:in `spawn'
exec failed with the params {"cmd"=>["mkdir -p /shared/import/mysql/data", "apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y nano libmariadb-dev mariadb-server", "sed -Ei 's/^log/#&/' /etc/mysql/my.cnf"]}
bootstrap failed with exit code 100

It’s a brand new install of Discourse 3.1.0.beta2, on Ubuntu 22.04 LTS.

Any idea of what’s happening? Thanks for your help!

There is a bug that makes apt-get update fail. There is a workaround in this topic. You need to edit the template that you added (mysql, I guess) as a workaround.