Error in phpbb3.template.yml

I followed instructions per the migration instructions:

  • Copied app.yml to import.yml
  • Added the phpbb3 template.
  • Stopped the app
  • Launched the rebuild import app

I received the following error message.

FAILED
--------------------
Errno::ENOENT: No such file or directory @ rb_sysopen - /etc/service/unicorn/run
Location of failure: /usr/local/lib/ruby/gems/3.3.0/gems/pups-1.2.1/lib/pups/replace_command.rb:11:in `read'
replace failed with the params {"tag"=>"precompile", "filename"=>"/etc/service/unicorn/run", "from"=>"# before precompile", "to"=>"PRECOMPILE_ON_BOOT=0"}
bootstrap failed with exit code 1
** FAILED TO BOOTSTRAP ** please scroll up and look for earlier error messages, there may be more than one.
./discourse-doctor may help diagnose the problem.
c36434159c67d984490ca9d63ea1162a4a8124f39e8f6cf63328676622

I followed the instructions as others have listed by:

nano templates/import/phpbb3.template.yml

Commented out the following line:

hooks:
  after_web_config:
    - exec:
        cd: /etc/service
        cmd:
          #- rm -R unicorn
          - rm -R nginx
          - rm -R cron

The rebuild ran clean. Placing this with the resolution in one post for others.

Please don’t create multiple posts about the same thing. I moved your other post with the replies into here so it can be looked at.

4 Likes