You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just install the container on my synology.
When i start it, the logs are as below :
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
s6-chown: fatal: unable to chown /var/run/s6/etc/services.d/nginx/run: Operation not permitted
s6-chown: fatal: unable to chown /var/run/s6/etc/services.d/php-fpm7/run: Operation not permitted
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
2020/03/11 09:35:27 [warn] 185#185: the "user" directive makes sense only if the master process runs with super-user privileges, ignored in /etc/nginx/nginx.conf:2
nginx: [warn] the "user" directive makes sense only if the master process runs with super-user privileges, ignored in /etc/nginx/nginx.conf:2
[11-Mar-2020 09:35:27] NOTICE: [pool www] 'user' directive is ignored when FPM is not running as root
[11-Mar-2020 09:35:27] NOTICE: [pool www] 'user' directive is ignored when FPM is not running as root
[11-Mar-2020 09:35:27] NOTICE: [pool www] 'group' directive is ignored when FPM is not running as root
[11-Mar-2020 09:35:27] NOTICE: [pool www] 'group' directive is ignored when FPM is not running as root
[11-Mar-2020 09:35:27] NOTICE: fpm is running, pid 183
[11-Mar-2020 09:35:27] NOTICE: ready to handle connections
Later, I try run container with super privilege but still I get the first error lines.
When I connect to my privatebin url, the website is displayed correctly but as soon as i try send content to server I have this error : Impossible de créer le paste : Le serveur ne répond pas ou a rencontré une erreur (in english : Impossible to create the paste : the server doesn't answer or encountered an error)
The first part of the logs (till 09:35:27) are expected. As you correctly deduced from the second part of the logs, the permissions of your persistent volume aren't correct. I don't know if your synology lets you access the underlying Linux via shell, so here are two ways you can change those permissions:
If you do get some kind of shell access, for example via ssh or a web terminal, you just need to execute a chown command: chown 65534:82 /[path on the synology that you use as a volume].
If you can't directly execute commands, but can run containers, just run that command in a container with its root user. For example start the busybox container with the same path as the privatebin volume, but attached to the busybox /mnt path and let it run the command chown 65534:82 /mnt for you. Once this has run for the first time, the privatebin container will have the permissions to write into that path.
Finally, if you don't intend to preserve any of the content stored in privatebin when upgrading it, you can run the container without a persistent volume. Every time you upgrade privatebin you would start from a clean state and all previous pastes would be lost, but you wouldn't have to deal with permissions.
Hello,
I just install the container on my synology.
When i start it, the logs are as below :
Later, I try run container with super privilege but still I get the first error lines.
When I connect to my privatebin url, the website is displayed correctly but as soon as i try send content to server I have this error : Impossible de créer le paste : Le serveur ne répond pas ou a rencontré une erreur (in english : Impossible to create the paste : the server doesn't answer or encountered an error)
Looking to the logs, I have this :
I saw in documentation that uid and gid must be set to specific values but I don't have idea how to do this...
Thanks in advance for your help.
Julien
The text was updated successfully, but these errors were encountered: