# phpbb3.template.yml中的错误

**URL:** https://meta.discourse.org/t/error-in-phpbb3-template-yml/345515
**Category:** Bug
**Tags:** migrations-tooling
**Created:** [2025年一月3日 23:16 UTC](https://meta.discourse.org/t/error-in-phpbb3-template-yml/345515 "2025-01-03T23:16:49Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![LotusJeff](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lotusjeff/32/477888_2.png) [@LotusJeff](https://meta.discourse.org/u/LotusJeff)
#### Post date: [2025年一月3日 23:16 UTC](https://meta.discourse.org/t/error-in-phpbb3-template-yml/345515/1 "2025-01-03T23:16:49Z")

</div>

我已按照迁移说明进行操作：

- 将 app.yml 复制到 import.yml
- 添加了 phpbb3 模板。
- 停止了应用程序
- 启动了重建导入应用程序

我收到了以下错误消息。

```plaintext
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

```

我按照其他人列出的说明进行操作：

```plaintext
nano templates/import/phpbb3.template.yml

```

注释掉了以下行：

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

```

重建运行正常。将此与解决方案放在一个帖子中供他人参考。

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [2025年一月4日 01:45 UTC](https://meta.discourse.org/t/error-in-phpbb3-template-yml/345515/3 "2025-01-04T01:45:06Z")

</div>

请不要创建关于同一事物的多个帖子。我已将您其他带有回复的帖子移至此处，以便进行查看。
