-
Notifications
You must be signed in to change notification settings - Fork 28
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
debian upgrade to 3.0 hangs daemon due to privilege issue #2205
Comments
Hi @olaf7 , could you please check your permissions for
When I change the owner of this directory to Please let us know, whether this helps. Thanks |
Hi
Weird. I did not change settings and ownership during/after upgrade, but did check ownership when running into problems. Maybe cache ownership changed when running as another user.
This directory does have the right ownership and rights, however its subdirectory webapp did not. It had ownership root:scm. Once changed it now works. Also the logging now works. In the past there was a log for the initial stage of start of the daemon and one for the actual usage. Now the first part is no longer logged and logging starts(?) at the point where previously the daemon hanged due to file permissions. This makes debugging harder. Is it an idea to add logging to the start of the startup process again? And/or add a test for permissions?
Thank you for testing and pointing me in the right direction,
Olaf
|
Hi, glad that it works now, thanks for the update. And we will definitely consider your suggestions. They can save (and would have saved) some debugging time. Regards |
After upgrading to 3.x from 2.x using apt upgrade on Debian Bookworm scm-server semi works.
When you start scm-server it starts and runs but Jetty does not serve a webapp at /scm
I run it at port 8084.
This can be confirmed using lynx from localhost: lynx http://localhost:8084 want to redirect to http://localhost:8084/scm which gives a 404.
Same is true when starting the bin/scm-server from commandline as system-user 'scm'
It works fine when bin/scm-server is started as root
When I change debugging (level and/or to logging.xml) I do not get more information. Logging stops at a fixed point. See below.
Also nothing can be found in syslog
When running as root it continues:
As there is no logging debugging this is hard.
When I change the user in systemd to root it works again. So it must be a pure privilege issue. When I change back to user scm the problem persists.
I also looked for a sudden impact of apparmor although this did not happen in the past. However I did not see anything reported by apparmor.
The text was updated successfully, but these errors were encountered: