Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[sslh 1.21] 'Operation not permitted' error after upgrading from 1.19c to 1.21 #5103

Closed
1 task done
Yasston opened this issue Jan 25, 2022 · 1 comment
Closed
1 task done
Labels

Comments

@Yasston
Copy link

Yasston commented Jan 25, 2022

Is this a new Bug?

  • I checkd that the bug hasn't been reported before

Package Name

sslh

Package Version

1.21

Device Model

DS916+

Device Architecture

x86_64

Firmware Version

6.2.4-25556 Update 3

What happened?

I've been running sslh package for over 2 years without issue. I just upgraded from 1.19c to 1.21 version and sslh now refuses to start. In the /usr/local/sslh/var/sslh.log I can see this :
image

Is this something related to the changes that came with DSM 6 and the permissions issues reported here #2904 ?

If so, how come I didn't have any issues before ? Also I need to mention that a DSM automatic update happened on my NAS last weekend, which may or may not have triggered the problem ?

I am available to perform all kinds of troubleshooting steps.

Many thanks for your time and answers

Reproduction steps

1. Upgrade sslh package from 1.19c to 1.21
2. Upgrade is successful
3. Package refuses to start

Install Log

2020/08/09 11:44:37     (system) trigger sslh 1.19c-3 End start-stop-status start ret=[0]
2020/10/20 23:25:33     (system) trigger sslh 1.19c-3 Begin start-stop-status start
sslh is already running
2020/10/20 23:25:33     (system) trigger sslh 1.19c-3 End start-stop-status start ret=[0]
2020/12/24 06:41:41     (system) trigger sslh 1.19c-3 Begin start-stop-status stop
Stopping sslh ...
/var/packages/sslh/scripts/service-setup: line 11: type: service_poststop: not found
2020/12/24 06:41:43     (system) trigger sslh 1.19c-3 End start-stop-status stop ret=[0]
2020/12/24 06:44:51     (system) trigger sslh 1.19c-3 Begin start-stop-status start
Starting sslh ...
/var/packages/sslh/scripts/service-setup: line 11: type: service_prestart: not found
2020/12/24 06:44:56     (system) trigger sslh 1.19c-3 End start-stop-status start ret=[0]
2021/03/28 23:07:21     (system) trigger sslh 1.19c-3 Begin start-stop-status stop
Stopping sslh ...
/var/packages/sslh/scripts/service-setup: line 11: type: service_poststop: not found
2021/03/28 23:07:21     (system) trigger sslh 1.19c-3 End start-stop-status stop ret=[0]
2021/03/28 23:11:01     (system) trigger sslh 1.19c-3 Begin start-stop-status start
Starting sslh ...
/var/packages/sslh/scripts/service-setup: line 11: type: service_prestart: not found
2021/03/28 23:11:04     (system) trigger sslh 1.19c-3 End start-stop-status start ret=[0]
2021/04/08 06:36:17     (system) trigger sslh 1.19c-3 Begin start-stop-status stop
Stopping sslh ...
/var/packages/sslh/scripts/service-setup: line 11: type: service_poststop: not found
2021/04/08 06:36:17     (system) trigger sslh 1.19c-3 End start-stop-status stop ret=[0]
2021/04/08 06:41:31     (system) trigger sslh 1.19c-3 Begin start-stop-status start
Starting sslh ...
/var/packages/sslh/scripts/service-setup: line 11: type: service_prestart: not found
2021/04/08 06:41:31     (system) trigger sslh 1.19c-3 End start-stop-status start ret=[0]
2021/09/16 06:42:32     (system) trigger sslh 1.19c-3 Begin start-stop-status stop
Stopping sslh ...
/var/packages/sslh/scripts/service-setup: line 11: type: service_poststop: not found
2021/09/16 06:42:33     (system) trigger sslh 1.19c-3 End start-stop-status stop ret=[0]
2021/09/16 06:45:39     (system) trigger sslh 1.19c-3 Begin start-stop-status start
Starting sslh ...
/var/packages/sslh/scripts/service-setup: line 11: type: service_prestart: not found
2021/09/16 06:45:44     (system) trigger sslh 1.19c-3 End start-stop-status start ret=[0]
2021/09/26 15:05:54     (system) trigger sslh 1.19c-3 Begin start-stop-status start
Starting sslh ...
/var/packages/sslh/scripts/service-setup: line 11: type: service_prestart: not found
2021/09/26 15:05:55     (system) trigger sslh 1.19c-3 End start-stop-status start ret=[0]
2022/01/25 11:49:09     (system) trigger sslh 1.19c-3 Begin start-stop-status stop
Stopping sslh ...
/var/packages/sslh/scripts/service-setup: line 11: type: service_poststop: not found
2022/01/25 11:49:10     (system) trigger sslh 1.19c-3 End start-stop-status stop ret=[0]
2022/01/25 11:52:19     (system) trigger sslh 1.19c-3 Begin start-stop-status start
Starting sslh ...
/var/packages/sslh/scripts/service-setup: line 11: type: service_prestart: not found
2022/01/25 11:53:14     (system) trigger sslh 1.19c-3 End start-stop-status start ret=[0]
2022/01/25 22:00:43     upgrade sslh 1.19c-3 Begin start-stop-status stop
Stopping sslh ...
/var/packages/sslh/scripts/service-setup: line 11: type: service_poststop: not found
2022/01/25 22:00:43     upgrade sslh 1.19c-3 End start-stop-status stop ret=[0]
2022/01/25 22:00:46     upgrade sslh 1.19c-3 Begin preupgrade
2022/01/25 22:00:46     ===> Step preupgrade. USER=sslh GROUP= SHARE_PATH=
2022/01/25 22:00:46     upgrade sslh 1.19c-3 End preupgrade ret=[0]
2022/01/25 22:00:46     upgrade sslh 1.19c-3 Begin preuninst
/var/packages/sslh/scripts/service-setup: line 11: type: service_preuninst: not found
2022/01/25 22:00:46     upgrade sslh 1.19c-3 End preuninst ret=[0]
2022/01/25 22:00:46     upgrade sslh 1.19c-3 Begin /bin/rm -rf /volume1/@appstore/sslh
2022/01/25 22:00:46     upgrade sslh 1.19c-3 End /bin/rm -rf /volume1/@appstore/sslh ret=[0]
2022/01/25 22:00:46     upgrade sslh 1.19c-3 Begin postuninst
/var/packages/sslh/scripts/service-setup: line 11: type: service_postuninst: not found
2022/01/25 22:00:46     upgrade sslh 1.19c-3 End postuninst ret=[0]
2022/01/25 22:00:47     upgrade sslh 1.21-6 Begin preinst
2022/01/25 22:00:47     ===> Step preinst. USER=sslh GROUP= SHARE_PATH=
2022/01/25 22:00:47     upgrade sslh 1.21-6 End preinst ret=[0]
2022/01/25 22:00:47     upgrade sslh 1.21-6 Begin /bin/rm -rf /volume1/@appstore/sslh
2022/01/25 22:00:47     upgrade sslh 1.21-6 End /bin/rm -rf /volume1/@appstore/sslh ret=[0]
2022/01/25 22:00:47     upgrade sslh 1.21-6 Begin /bin/mv -f /volume1/@tmp/pkginstall/package /volume1/@appstore/sslh
2022/01/25 22:00:47     upgrade sslh 1.21-6 End /bin/mv -f /volume1/@tmp/pkginstall/package /volume1/@appstore/sslh ret=[0]
2022/01/25 22:00:47     upgrade sslh 1.21-6 Begin /bin/mkdir -p /var/packages/sslh
2022/01/25 22:00:47     upgrade sslh 1.21-6 End /bin/mkdir -p /var/packages/sslh ret=[0]
2022/01/25 22:00:47     upgrade sslh 1.21-6 Begin /bin/mv -f /volume1/@tmp/pkginstall/INFO /var/packages/sslh/INFO
2022/01/25 22:00:47     upgrade sslh 1.21-6 End /bin/mv -f /volume1/@tmp/pkginstall/INFO /var/packages/sslh/INFO ret=[0]
2022/01/25 22:00:47     upgrade sslh 1.21-6 Begin /bin/rm -rf /var/packages/sslh/scripts
2022/01/25 22:00:47     upgrade sslh 1.21-6 End /bin/rm -rf /var/packages/sslh/scripts ret=[0]
2022/01/25 22:00:47     upgrade sslh 1.21-6 Begin /bin/mv -f /volume1/@tmp/pkginstall/scripts /var/packages/sslh/scripts
2022/01/25 22:00:47     upgrade sslh 1.21-6 End /bin/mv -f /volume1/@tmp/pkginstall/scripts /var/packages/sslh/scripts ret=[0]
2022/01/25 22:00:47     upgrade sslh 1.21-6 Begin /bin/rm -rf /var/packages/sslh/conf
2022/01/25 22:00:47     upgrade sslh 1.21-6 End /bin/rm -rf /var/packages/sslh/conf ret=[0]
2022/01/25 22:00:47     upgrade sslh 1.21-6 Begin /bin/mv -f /volume1/@tmp/pkginstall/conf /var/packages/sslh/conf
2022/01/25 22:00:47     upgrade sslh 1.21-6 End /bin/mv -f /volume1/@tmp/pkginstall/conf /var/packages/sslh/conf ret=[0]
2022/01/25 22:00:48     upgrade sslh 1.21-6 Begin postinst
2022/01/25 22:00:48     ===> Step postinst. USER=sslh GROUP= SHARE_PATH=
2022/01/25 22:00:48     Granting 'sc-sslh' unix ownership on /volume1/@appstore/sslh/var
2022/01/25 22:00:48     upgrade sslh 1.21-6 End postinst ret=[0]
2022/01/25 22:00:48     upgrade sslh 1.21-6 Begin postupgrade
2022/01/25 22:00:48     ===> Step postupgrade. USER=sslh GROUP= SHARE_PATH=
2022/01/25 22:00:48     Granting 'sc-sslh' unix ownership on /volume1/@appstore/sslh/var
2022/01/25 22:00:48     upgrade sslh 1.21-6 End postupgrade ret=[0]
2022/01/25 22:00:52     upgrade sslh 1.21-6 Begin start-stop-status start
2022/01/25 22:01:12     upgrade sslh 1.21-6 End start-stop-status start ret=[1]
2022/01/25 22:01:12     (system) trigger sslh 1.21-6 Begin start-stop-status stop
2022/01/25 22:01:12     (system) trigger sslh 1.21-6 End start-stop-status stop ret=[0]
2022/01/25 22:01:13     upgrade sslh 1.21-6 Begin /bin/rm -rf /volume1/@tmp/pkginstall
2022/01/25 22:01:13     upgrade sslh 1.21-6 End /bin/rm -rf /volume1/@tmp/pkginstall ret=[0]
2022/01/25 22:53:15     start sslh 1.21-6 Begin start-stop-status start
2022/01/25 22:53:35     start sslh 1.21-6 End start-stop-status start ret=[1]
2022/01/25 22:53:36     (system) trigger sslh 1.21-6 Begin start-stop-status stop
2022/01/25 22:53:36     (system) trigger sslh 1.21-6 End start-stop-status stop ret=[0]

Service Log

Tue Jan 25 23:38:00 CET 2022
Starting sslh command /volume1/@appstore/sslh/bin/sslh -F/volume1/@appstore/sslh/var/sslh.cfg
common.c:844:setgid: Operation not permitted
sslh is not running

Other Logs

No response

@Yasston Yasston added the bug label Jan 25, 2022
@Yasston
Copy link
Author

Yasston commented Jan 26, 2022

Found the answer in this issue here : #4676

image

Changed the user to "sc-sslh" in the sslh.cfg file, restarted from Package manager ui, all OK. Thank you (again) @hgy59

@Yasston Yasston closed this as completed Jan 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant