Cannot complete update for GoToSocial

What type of hardware are you using: VPS bought online
What YunoHost version are you running: 12.0.11
What app is this about: GoToSocial

Describe your issue

I tried to update GoToSocial recently, log included below.

GoToSocial (gotosocial) from 0.17.3~ynh2 to 0.17.4~ynh1

Recently I set up an S3 bucket according to the procedure I shared today. My set up works thus far, and GoToSocial has been working without issue.

When I tried to update GoToSocial an error came up citing permissions issues. I do have the original Storage Base Path as a mount point to my S3 where I backed up the existing GTS files into.

I did look at the /home/yunohost.app/gotosocial folder and pulled

ls -l

drwxrwxrwx 1 gotosocial gotosocial 0 Dec 31 1969 gotosocial
drwxr-x— 18990 gotosocial gotosocial 1003520 Feb 10 18:08 gotosocial-bak

Share relevant logs or error messages

https://paste.yunohost.org/raw/amazisureg

I am not using gts, but I had experience with s3 on yunohost. In fact, s3 doesn’t support symlinks and I remember having issues with permissions.
Did you use rclone to mount the bucket? A systemd service? If yes, I think it should be run as gts. Does gts support natively s3?
Try unmounting (stopping rclone service) it and rerun the upgrade.

That did the trick.

In my case with Digital Ocean and s3fs I had to turn off the mount

fusermount -u /home/yunohost.app/gotosocial

I then ran the update.

After, I turned the mount back on…I’m not sure if GTS still uses the original Storage Base Path, but I did it anyway. Do replace the 666 UID and GID accordingly.

s3fs bucketname:/path/to/folder/ gotosocial/ -o url=https://[region].digitaloceanspaces.com -o use_cache=/tmp -o allow_other -o use_path_request_style -o uid=666 -o gid=666

Thanks @jarod5001

You know there is an rclone app in the yunohost catalog with a webui

1 Like

GTS natively supports s3, you dont have to mount your bucket in the OS

2 Likes

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.