Rebuild goes into a loop regarding templates/import/phpbb3.template.yml

AI-generated summary

GeoffSchultz encountered a loop during ./launcher rebuild app due to local changes in templates/import/phpbb3.template.yml, preventing the update from completing. He had modified SMTP settings and followed standard instructions but hit this git conflict. NateDhaliwal first suggested restarting the app, which didn’t resolve the issue since SMTP credentials weren’t refreshed. He then suggested ./launcher destroy app, which worked for GeoffSchultz, though Geoff expressed concern that the underlying issue might resurface during future rebuilds. JammyDodger pointed to a similar past thread for reference. Finally, pfaffman provided the correct fix: running git stash followed by git pull inside /var/discourse, which resolved the conflict and allowed the rebuild to proceed. Geoff confirmed this solution worked here. The root cause was uncommitted local changes blocking the launcher’s git update during rebuild — a common issue when config files are manually edited outside of version control.

I needed to change the SMTP password, so I followed the instructions at How to modify email settings

When I do the .launcher/rebuild/app, I get a loop of the following:

x86_64 arch detected.
Ensuring launcher is up to date
Fetching origin
Updating Launcher...
Updating 3715498..072c526
error: Your local changes to the following files would be overwritten by merge:
        templates/import/phpbb3.template.yml
Please commit your changes or stash them before you merge.
Aborting
failed to update
Launcher updated, restarting...

I found Rebuild goes into a loop, which is very similar, but not the same.

I must admit that other than doing upgrades when informed of them, I haven’t touched this since installing it a year ago. Any help would be appreciated.

What if you tried

./launcher stop app

then

./launcher start app

? IIRC you don’t need to do a full rebuild if you just edit the SMTP details.

Would that work?

Good idea, but it didn’t work. It still used the old SMTP credentials.

My bad! It’s ./launcher destroy app, not ./launcher stop app. Could you give that a shot?

That worked, but I feel like all that I’m doing is pushing off this problem until I have to rebuild it at some future date.

I think someone had a similar problem in this topic, if it’s any help:

I think you need to

cd /var/discourse
git stash
git pull

Thank you! This solved it.