GlitchSoc upgrade succeeded but restore from pre-upgrade backup fails with Bundler permission error

What app is this about, and its version: GlitchSoc package version 2026.03.14~ynh1.
What YunoHost version are you running: 12.1.39
What type of hardware are you using: VPS bought online

Describe your issue

Hi, I need help recovering a GlitchSoc install on YunoHost. I have already done quite a bit of troubleshooting and want to avoid making things worse.

YunoHost version: 12.1.39
Debian: bookworm
App: GlitchSoc

What happened:

I tried to upgrade GlitchSoc.

Before the upgrade, YunoHost created a pre-upgrade backup named glitchsoc-pre-upgrade1.

That backup completed successfully.

The GlitchSoc upgrade itself reports success.

After that, the GlitchSoc services failed.

I then tried to restore from the pre-upgrade backup.

The restore failed.

GlitchSoc is now no longer installed.

Current status:

yunohost app list now shows only Ghost, Jirafeau, and Seafile. GlitchSoc is gone.

The GlitchSoc backup archive still exists on disk as glitchsoc-pre-upgrade1.tar.gz.

Relevant facts from the logs:

The pre-upgrade backup completed successfully.

The upgrade operation reports success.

The restore operation reports failure with:

Could not restore glitchsoc: An error occured inside the app restore script

The detailed restore log shows Bundler failing with:

Permission denied @ dir_s_mkdir - /opt/rbenv/versions/3.4.5/lib/ruby/gems/3.4.0/cache/bundler

I also checked /opt/rbenv/versions and currently it contains only:

glitchsoc -> 3.4.5

But the actual 3.4.5 directory does not exist anymore.

So it looks like the restore expected a Ruby runtime under /opt/rbenv/versions/3.4.5, but that runtime path is missing or broken.

What is the safest recovery path from here?

Should I try to repair the Ruby or rbenv runtime first and then rerun the restore?

Or is there a package-specific recovery step for GlitchSoc on YunoHost that I should use instead?

I still have the backup archive and do not want to delete or damage it.

Full logs via YunoPaste:

Restore log: https://paste.yunohost.org/raw/radubobefu
Upgrade log: https://paste.yunohost.org/raw/elolepuzay
Backup log: https://paste.yunohost.org/raw/zifakizori

thanks so much. I look forward to your response.

Share relevant logs or error messages

error messages:
Could not restore glitchsoc: An error occured inside the app restore script
Permission denied @ dir_s_mkdir - /opt/rbenv/versions/3.4.5/lib/ruby/gems/3.4.0/cache/bundler
Unfortunately, an unexpected error occurred, and Bundler cannot continue.
bundler: command not found: puma
Install missing gem executables with bundle install
glitchsoc-web.service: Changing to the requested working directory failed: Permission denied
glitchsoc-web.service: Failed at step CHDIR spawning /var/www/glitchsoc/live/bin/bundle: Permission denied
glitchsoc-sidekiq.service: Changing to the requested working directory failed: Permission denied
glitchsoc-sidekiq.service: Failed at step CHDIR spawning /opt/rbenv/versions/glitchsoc/bin/bundle: Permission denied
glitchsoc-streaming.service: Main process exited, code=exited, status=1/FAILURE
ls: cannot access ‘/opt/rbenv/versions/3.4.5’: No such file or directory


logs: if needed

Restore log: https://paste.yunohost.org/raw/radubobefu
Upgrade log: https://paste.yunohost.org/raw/elolepuzay
Backup log: https://paste.yunohost.org/raw/zifakizori

Hi and happy tuesday.
I’m just following up in case this got missed. GlitchSoc is still not installed, the backup archive is still intact, and I have not made further changes while waiting for guidance. The YunoPaste log links are still in the original post. I have not touched the server even for a reboot since.

Thanks again.

Hello. I’m just following up to see if anyone has any answers about what happened. the server remains untouched and logs are posted in my original post. I hope we can see what’s going on with glitchsoc and how this can be prevented in the future. It looks like something in ruby broke at some point in time.

Thanks.