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
Envirorment: VMware Photon OS 4.0
Likewise package: likewise-open-6.2.11.13-9.ph4.x86_64
Default PhotonOS 4.0 pid_max is 4194304, if the pid become higher than 65535 and you need to restart likewise it become unresponsive and then is not able to stop lsass, rdr and other process (see Additional context).
For recover it:
1- Set /proc/sys/kernel/pid_max to 65535
2- Kill all likewise process
3- start lwsmd
Reproduction steps
Use a script like the following for increase the current PID number to >65535:
while true; do for i in {1..10};do echo $i >> /dev/null& done& done
Restart lwsmd
Test it: eg. id DOMAIN\username (it will not work)
Try to restart lwsmd: it will shown the errors as in Additional context
Expected behavior
lwmsd restart as usual and authentication work normally.
Additional context
Working correctly until:
● lwsmd.service - Likewise Service Control Manager Service
Loaded: loaded (/usr/lib/systemd/system/lwsmd.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2023-04-06 15:00:45 UTC; 920ms ago
Process: 65242 ExecStart=/opt/likewise/sbin/lwsmd --start-as-daemon --syslog (code=exited, status=0/SUCCESS)
Process: 65260 ExecStartPost=/opt/likewise/bin/lwsm autostart (code=exited, status=0/SUCCESS)
Main PID: 65244 (lwsmd)
Tasks: 107 (limit: 9546)
Memory: 24.0M
CGroup: /system.slice/lwsmd.service
├─65244 /opt/likewise/sbin/lwsmd --start-as-daemon --syslog
├─65252 /opt/likewise/sbin/lwregd --syslog
├─65268 /opt/likewise/sbin/eventlogd --syslog
├─65289 /opt/likewise/sbin/netlogond --syslog
├─65296 /opt/likewise/sbin/lwiod --syslog
├─65304 /opt/likewise/sbin/lsassd --syslog
├─65335 /opt/likewise/sbin/dcerpcd -f
└─65348 /usr/sbin/vmafdd -s
No longer works (restart and authentication):
● lwsmd.service - Likewise Service Control Manager Service
Loaded: loaded (/usr/lib/systemd/system/lwsmd.service; enabled; vendor preset: enabled)
Active: deactivating (stop-sigterm) since Thu 2023-04-06 15:01:02 UTC; 36s ago
Process: 65533 ExecStart=/opt/likewise/sbin/lwsmd --start-as-daemon --syslog (code=exited, status=0/SUCCESS)
Process: 65551 ExecStartPost=/opt/likewise/bin/lwsm autostart (code=exited, status=0/SUCCESS)
Process: 382 ExecStop=/opt/likewise/bin/lwsm shutdown (code=exited, status=0/SUCCESS)
Main PID: 65535 (lwsmd)
Tasks: 87 (limit: 9546)
Memory: 25.2M
CGroup: /system.slice/lwsmd.service
├─ 331 /opt/likewise/sbin/dcerpcd -f
├─65535 /opt/likewise/sbin/lwsmd --start-as-daemon --syslog
├─65543 /opt/likewise/sbin/lwregd --syslog
├─65559 /opt/likewise/sbin/eventlogd --syslog
├─65581 /opt/likewise/sbin/netlogond --syslog
├─65588 /opt/likewise/sbin/lwiod --syslog
└─65596 /opt/likewise/sbin/lsassd --syslog
Apr 06 15:01:02 photonos lwsmd[65535]: Shutting down running services
Apr 06 15:01:02 photonos lwsmd[65535]: Stopping service: vmafd
Apr 06 15:01:02 photonos lwsmd[65535]: Stopping service: lsass
Apr 06 15:01:55 photonos lwsmd[65535]: Stopping service: rdr
Apr 06 15:02:32 photonos systemd[1]: lwsmd.service: State 'stop-sigterm' timed out. Killing.
Apr 06 15:02:32 photonos systemd[1]: lwsmd.service: Killing process 65535 (lwsmd) with signal SIGKILL.
Apr 06 15:02:32 photonos systemd[1]: lwsmd.service: Main process exited, code=killed, status=9/KILL
Apr 06 15:02:32 photonos systemd[1]: lwsmd.service: Failed with result 'timeout'.
Apr 06 15:02:32 photonos systemd[1]: lwsmd.service: Unit process 331 (dcerpcd) remains running after unit stopped.
Apr 06 15:02:32 photonos systemd[1]: lwsmd.service: Unit process 65543 (lwregd) remains running after unit stopped.
Apr 06 15:02:32 photonos systemd[1]: lwsmd.service: Unit process 65559 (eventlogd) remains running after unit stopped.
Apr 06 15:02:32 photonos systemd[1]: lwsmd.service: Unit process 65581 (netlogond) remains running after unit stopped.
Apr 06 15:02:32 photonos systemd[1]: lwsmd.service: Unit process 65588 (lwiod) remains running after unit stopped.
Apr 06 15:02:32 photonos systemd[1]: Stopped Likewise Service Control Manager Service.
Apr 06 15:02:32 photonos systemd[1]: lwsmd.service: Found left-over process 331 (dcerpcd) in control group while starting unit>
Apr 06 15:02:32 photonos systemd[1]: This usually indicates unclean termination of a previous run, or service implementation d>
Apr 06 15:02:32 photonos systemd[1]: lwsmd.service: Found left-over process 65543 (lwregd) in control group while starting uni>
Apr 06 15:02:32 photonos systemd[1]: This usually indicates unclean termination of a previous run, or service implementation d>
Apr 06 15:02:32 photonos systemd[1]: lwsmd.service: Found left-over process 65559 (eventlogd) in control group while starting >
Apr 06 15:02:32 photonos systemd[1]: This usually indicates unclean termination of a previous run, or service implementation d>
Apr 06 15:02:32 photonos systemd[1]: lwsmd.service: Found left-over process 65581 (netlogond) in control group while starting >
Apr 06 15:02:32 photonos systemd[1]: This usually indicates unclean termination of a previous run, or service implementation d>
Apr 06 15:02:32 photonos systemd[1]: lwsmd.service: Found left-over process 65588 (lwiod) in control group while starting unit>
Apr 06 15:02:32 photonos systemd[1]: This usually indicates unclean termination of a previous run, or service implementation d>
The text was updated successfully, but these errors were encountered:
Describe the bug
Hello,
Envirorment: VMware Photon OS 4.0
Likewise package: likewise-open-6.2.11.13-9.ph4.x86_64
Default PhotonOS 4.0 pid_max is 4194304, if the pid become higher than 65535 and you need to restart likewise it become unresponsive and then is not able to stop lsass, rdr and other process (see Additional context).
For recover it:
1- Set /proc/sys/kernel/pid_max to 65535
2- Kill all likewise process
3- start lwsmd
Reproduction steps
while true; do for i in {1..10};do echo $i >> /dev/null& done& done
Expected behavior
lwmsd restart as usual and authentication work normally.
Additional context
Working correctly until:
● lwsmd.service - Likewise Service Control Manager Service
Loaded: loaded (/usr/lib/systemd/system/lwsmd.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2023-04-06 15:00:45 UTC; 920ms ago
Process: 65242 ExecStart=/opt/likewise/sbin/lwsmd --start-as-daemon --syslog (code=exited, status=0/SUCCESS)
Process: 65260 ExecStartPost=/opt/likewise/bin/lwsm autostart (code=exited, status=0/SUCCESS)
Main PID: 65244 (lwsmd)
Tasks: 107 (limit: 9546)
Memory: 24.0M
CGroup: /system.slice/lwsmd.service
├─65244 /opt/likewise/sbin/lwsmd --start-as-daemon --syslog
├─65252 /opt/likewise/sbin/lwregd --syslog
├─65268 /opt/likewise/sbin/eventlogd --syslog
├─65289 /opt/likewise/sbin/netlogond --syslog
├─65296 /opt/likewise/sbin/lwiod --syslog
├─65304 /opt/likewise/sbin/lsassd --syslog
├─65335 /opt/likewise/sbin/dcerpcd -f
└─65348 /usr/sbin/vmafdd -s
No longer works (restart and authentication):
● lwsmd.service - Likewise Service Control Manager Service
Loaded: loaded (/usr/lib/systemd/system/lwsmd.service; enabled; vendor preset: enabled)
Active: deactivating (stop-sigterm) since Thu 2023-04-06 15:01:02 UTC; 36s ago
Process: 65533 ExecStart=/opt/likewise/sbin/lwsmd --start-as-daemon --syslog (code=exited, status=0/SUCCESS)
Process: 65551 ExecStartPost=/opt/likewise/bin/lwsm autostart (code=exited, status=0/SUCCESS)
Process: 382 ExecStop=/opt/likewise/bin/lwsm shutdown (code=exited, status=0/SUCCESS)
Main PID: 65535 (lwsmd)
Tasks: 87 (limit: 9546)
Memory: 25.2M
CGroup: /system.slice/lwsmd.service
├─ 331 /opt/likewise/sbin/dcerpcd -f
├─65535 /opt/likewise/sbin/lwsmd --start-as-daemon --syslog
├─65543 /opt/likewise/sbin/lwregd --syslog
├─65559 /opt/likewise/sbin/eventlogd --syslog
├─65581 /opt/likewise/sbin/netlogond --syslog
├─65588 /opt/likewise/sbin/lwiod --syslog
└─65596 /opt/likewise/sbin/lsassd --syslog
Apr 06 15:01:02 photonos lwsmd[65535]: Shutting down running services
Apr 06 15:01:02 photonos lwsmd[65535]: Stopping service: vmafd
Apr 06 15:01:02 photonos lwsmd[65535]: Stopping service: lsass
Apr 06 15:01:55 photonos lwsmd[65535]: Stopping service: rdr
Apr 06 15:02:32 photonos systemd[1]: lwsmd.service: State 'stop-sigterm' timed out. Killing.
Apr 06 15:02:32 photonos systemd[1]: lwsmd.service: Killing process 65535 (lwsmd) with signal SIGKILL.
Apr 06 15:02:32 photonos systemd[1]: lwsmd.service: Main process exited, code=killed, status=9/KILL
Apr 06 15:02:32 photonos systemd[1]: lwsmd.service: Failed with result 'timeout'.
Apr 06 15:02:32 photonos systemd[1]: lwsmd.service: Unit process 331 (dcerpcd) remains running after unit stopped.
Apr 06 15:02:32 photonos systemd[1]: lwsmd.service: Unit process 65543 (lwregd) remains running after unit stopped.
Apr 06 15:02:32 photonos systemd[1]: lwsmd.service: Unit process 65559 (eventlogd) remains running after unit stopped.
Apr 06 15:02:32 photonos systemd[1]: lwsmd.service: Unit process 65581 (netlogond) remains running after unit stopped.
Apr 06 15:02:32 photonos systemd[1]: lwsmd.service: Unit process 65588 (lwiod) remains running after unit stopped.
Apr 06 15:02:32 photonos systemd[1]: Stopped Likewise Service Control Manager Service.
Apr 06 15:02:32 photonos systemd[1]: lwsmd.service: Found left-over process 331 (dcerpcd) in control group while starting unit>
Apr 06 15:02:32 photonos systemd[1]: This usually indicates unclean termination of a previous run, or service implementation d>
Apr 06 15:02:32 photonos systemd[1]: lwsmd.service: Found left-over process 65543 (lwregd) in control group while starting uni>
Apr 06 15:02:32 photonos systemd[1]: This usually indicates unclean termination of a previous run, or service implementation d>
Apr 06 15:02:32 photonos systemd[1]: lwsmd.service: Found left-over process 65559 (eventlogd) in control group while starting >
Apr 06 15:02:32 photonos systemd[1]: This usually indicates unclean termination of a previous run, or service implementation d>
Apr 06 15:02:32 photonos systemd[1]: lwsmd.service: Found left-over process 65581 (netlogond) in control group while starting >
Apr 06 15:02:32 photonos systemd[1]: This usually indicates unclean termination of a previous run, or service implementation d>
Apr 06 15:02:32 photonos systemd[1]: lwsmd.service: Found left-over process 65588 (lwiod) in control group while starting unit>
Apr 06 15:02:32 photonos systemd[1]: This usually indicates unclean termination of a previous run, or service implementation d>
The text was updated successfully, but these errors were encountered: