Linux exec fails to start in an LXC #2

Open
opened 2024-10-05 17:53:50 -05:00 by sunnynippo · 5 comments
sunnynippo commented 2024-10-05 17:53:50 -05:00 (Migrated from github.com)

I am using a debian LXC in proxmox to test this.

I testing using the LAN install script as well as downloaded the binary mannully. Each time the service fails to start. There is no detailed error description.

systemctl output below

`root@ps5jb:~# systemctl status PS5-Exploit-Host-Self-Host-Tool.service
x PS5-Exploit-Host-Self-Host-Tool.service - PS5 Exploit Host Self Host Tool
Loaded: loaded (/etc/systemd/system/PS5-Exploit-Host-Self-Host-Tool.service; enabled; preset: enabled)
Active: failed (Result: exit-code) since Sat 2024-10-05 22:43:19 UTC; 1min 20s ago
Process: 337 ExecStart=/usr/local/bin/PS5-Exploit-Host-Self-Host-Tool-linux-x64 --default-config-continue (code=exited, status=1/FAILURE)
Main PID: 337 (code=exited, status=1/FAILURE)
CPU: 376ms

Oct 05 22:43:19 ps5jb systemd[1]: PS5-Exploit-Host-Self-Host-Tool.service: Scheduled restart job, restart counter is at 5.
Oct 05 22:43:19 ps5jb systemd[1]: Stopped PS5-Exploit-Host-Self-Host-Tool.service - PS5 Exploit Host Self Host Tool.
Oct 05 22:43:19 ps5jb systemd[1]: PS5-Exploit-Host-Self-Host-Tool.service: Start request repeated too quickly.
Oct 05 22:43:19 ps5jb systemd[1]: PS5-Exploit-Host-Self-Host-Tool.service: Failed with result 'exit-code'.`

I have not changed the config.ini. IP address is correct.

I am using a debian LXC in proxmox to test this. I testing using the LAN install script as well as downloaded the binary mannully. Each time the service fails to start. There is no detailed error description. systemctl output below `root@ps5jb:~# systemctl status PS5-Exploit-Host-Self-Host-Tool.service x PS5-Exploit-Host-Self-Host-Tool.service - PS5 Exploit Host Self Host Tool Loaded: loaded (/etc/systemd/system/PS5-Exploit-Host-Self-Host-Tool.service; enabled; preset: enabled) Active: failed (Result: exit-code) since Sat 2024-10-05 22:43:19 UTC; 1min 20s ago Process: 337 ExecStart=/usr/local/bin/PS5-Exploit-Host-Self-Host-Tool-linux-x64 --default-config-continue (code=exited, status=1/FAILURE) Main PID: 337 (code=exited, status=1/FAILURE) CPU: 376ms Oct 05 22:43:19 ps5jb systemd[1]: PS5-Exploit-Host-Self-Host-Tool.service: Scheduled restart job, restart counter is at 5. Oct 05 22:43:19 ps5jb systemd[1]: Stopped PS5-Exploit-Host-Self-Host-Tool.service - PS5 Exploit Host Self Host Tool. Oct 05 22:43:19 ps5jb systemd[1]: PS5-Exploit-Host-Self-Host-Tool.service: Start request repeated too quickly. Oct 05 22:43:19 ps5jb systemd[1]: PS5-Exploit-Host-Self-Host-Tool.service: Failed with result 'exit-code'.` I have not changed the config.ini. IP address is correct.
idlesauce commented 2024-10-06 09:27:54 -05:00 (Migrated from github.com)

Can you please run the exe on its own and tell me what you see?
Id recommend first stopping the service, to stop it retrying in the background: sudo systemctl stop PS5-Exploit-Host-Self-Host-Tool.service
sudo /usr/local/bin/PS5-Exploit-Host-Self-Host-Tool-linux-x64

Can you please run the exe on its own and tell me what you see? Id recommend first stopping the service, to stop it retrying in the background: `sudo systemctl stop PS5-Exploit-Host-Self-Host-Tool.service` `sudo /usr/local/bin/PS5-Exploit-Host-Self-Host-Tool-linux-x64`
sunnynippo commented 2024-10-06 14:45:26 -05:00 (Migrated from github.com)

Thank you for your reply. I get an unhandled exception error. See below

root@ps5jb:~# sudo /usr/local/bin/PS5-Exploit-Host-Self-Host-Tool-linux-x64
Using config file '/root/.ps5-exploit-host/config.ini'
Using wwwroot folder '/root/.ps5-exploit-host/wwwroot'
Unhandled exception: Win32Exception: An error occurred trying to start process 'fuser' with working directory '/root'. No such file or directory

I am running the command from /root. so that directory exists.

Also tried this in a Debian 12 VM and don't have this issue and the service runs correctly. Its only in a unprivelaged LXC container that i get this error.

Thank you for your reply. I get an unhandled exception error. See below root@ps5jb:~# sudo /usr/local/bin/PS5-Exploit-Host-Self-Host-Tool-linux-x64 Using config file '/root/.ps5-exploit-host/config.ini' Using wwwroot folder '/root/.ps5-exploit-host/wwwroot' Unhandled exception: Win32Exception: An error occurred trying to start process 'fuser' with working directory '/root'. No such file or directory I am running the command from /root. so that directory exists. Also tried this in a Debian 12 VM and don't have this issue and the service runs correctly. Its only in a unprivelaged LXC container that i get this error.
idlesauce commented 2024-10-06 15:11:27 -05:00 (Migrated from github.com)

The error is phrased kind of oddly, but maybe its just that fuser isn't installed, I did forget to install it in the dependencies step.
I just updated the install script to install it, can you verify whether this fixes it?
You can either re-run the install script or just do apt-get install psmisc

The error is phrased kind of oddly, but maybe its just that fuser isn't installed, I did forget to install it in the dependencies step. I just updated the install script to install it, can you verify whether this fixes it? You can either re-run the install script or just do `apt-get install psmisc`
sunnynippo commented 2024-10-06 15:46:36 -05:00 (Migrated from github.com)

Thank you. That worked.

PS5-Exploit-Host-Self-Host-Tool.service - PS5 Exploit Host Self Host Tool
Loaded: loaded (/etc/systemd/system/PS5-Exploit-Host-Self-Host-Tool.service; enabled; preset: enabled)
Active: active (running) since Sun 2024-10-06 20:43:47 UTC; 12s ago
Main PID: 2741 (PS5-Exploit-Hos)
Tasks: 14 (limit: 115029)
Memory: 19.8M
CPU: 435ms
CGroup: /system.slice/PS5-Exploit-Host-Self-Host-Tool.service `-2741 /usr/local/bin/PS5-Exploit-Host-Self-Host-Tool-linux-x64 --default-config-continue
Oct 06 20:43:47 ps5jb PS5-Exploit-Host-Self-Host-Tool-linux-x64[2741]: fail: PS5_Exploit_Host_Self_Host_Tool.Killer[0] Failed to kill processes using UDP port 53. fuser exited with>Oct 06 20:43:47 ps5jb PS5-Exploit-Host-Self-Host-Tool-linux-x64[2741]: info: PS5_Exploit_Host_Self_Host_Tool.DnsServerWrapper[0] Upstream DNS server not specified, using system DNS>Oct 06 20:43:47 ps5jb PS5-Exploit-Host-Self-Host-Tool-linux-x64[2741]: info: PS5_Exploit_Host_Self_Host_Tool.DnsServerWrapper[0] DNS server started Oct 06 20:43:47 ps5jb PS5-Exploit-Host-Self-Host-Tool-linux-x64[2741]: info: Microsoft.AspNetCore.Server.Kestrel.Https.Internal.HttpsConnectionMiddleware[9] Certificate with thumbp>Oct 06 20:43:47 ps5jb systemd[1]: Started PS5-Exploit-Host-Self-Host-Tool.service - PS5 Exploit Host Self Host Tool.
Oct 06 20:43:47 ps5jb PS5-Exploit-Host-Self-Host-Tool-linux-x64[2741]: info: Microsoft.Hosting.Lifetime[14] Now listening on: http://10.0.0.200:20000 Oct 06 20:43:47 ps5jb PS5-Exploit-Host-Self-Host-Tool-linux-x64[2741]: info: Microsoft.Hosting.Lifetime[14] Now listening on: https://10.0.0.200:443
Oct 06 20:43:47 ps5jb PS5-Exploit-Host-Self-Host-Tool-linux-x64[2741]: info: Microsoft.Hosting.Lifetime[0] Application started. Press Ctrl+C to shut down.
Oct 06 20:43:47 ps5jb PS5-Exploit-Host-Self-Host-Tool-linux-x64[2741]: info: Microsoft.Hosting.Lifetime[0] Hosting environment: Production
Oct 06 20:43:47 ps5jb PS5-Exploit-Host-Self-Host-Tool-linux-x64[2741]: info: Microsoft.Hosting.Lifetime[0] Content root path: /

Thank you. That worked. PS5-Exploit-Host-Self-Host-Tool.service - PS5 Exploit Host Self Host Tool Loaded: loaded (/etc/systemd/system/PS5-Exploit-Host-Self-Host-Tool.service; enabled; preset: enabled) Active: active (running) since Sun 2024-10-06 20:43:47 UTC; 12s ago Main PID: 2741 (PS5-Exploit-Hos) Tasks: 14 (limit: 115029) Memory: 19.8M CPU: 435ms CGroup: /system.slice/PS5-Exploit-Host-Self-Host-Tool.service `-2741 /usr/local/bin/PS5-Exploit-Host-Self-Host-Tool-linux-x64 --default-config-continue Oct 06 20:43:47 ps5jb PS5-Exploit-Host-Self-Host-Tool-linux-x64[2741]: fail: PS5_Exploit_Host_Self_Host_Tool.Killer[0] Failed to kill processes using UDP port 53. fuser exited with>Oct 06 20:43:47 ps5jb PS5-Exploit-Host-Self-Host-Tool-linux-x64[2741]: info: PS5_Exploit_Host_Self_Host_Tool.DnsServerWrapper[0] Upstream DNS server not specified, using system DNS>Oct 06 20:43:47 ps5jb PS5-Exploit-Host-Self-Host-Tool-linux-x64[2741]: info: PS5_Exploit_Host_Self_Host_Tool.DnsServerWrapper[0] DNS server started Oct 06 20:43:47 ps5jb PS5-Exploit-Host-Self-Host-Tool-linux-x64[2741]: info: Microsoft.AspNetCore.Server.Kestrel.Https.Internal.HttpsConnectionMiddleware[9] Certificate with thumbp>Oct 06 20:43:47 ps5jb systemd[1]: Started PS5-Exploit-Host-Self-Host-Tool.service - PS5 Exploit Host Self Host Tool. Oct 06 20:43:47 ps5jb PS5-Exploit-Host-Self-Host-Tool-linux-x64[2741]: info: Microsoft.Hosting.Lifetime[14] Now listening on: http://10.0.0.200:20000 Oct 06 20:43:47 ps5jb PS5-Exploit-Host-Self-Host-Tool-linux-x64[2741]: info: Microsoft.Hosting.Lifetime[14] Now listening on: https://10.0.0.200:443 Oct 06 20:43:47 ps5jb PS5-Exploit-Host-Self-Host-Tool-linux-x64[2741]: info: Microsoft.Hosting.Lifetime[0] Application started. Press Ctrl+C to shut down. Oct 06 20:43:47 ps5jb PS5-Exploit-Host-Self-Host-Tool-linux-x64[2741]: info: Microsoft.Hosting.Lifetime[0] Hosting environment: Production Oct 06 20:43:47 ps5jb PS5-Exploit-Host-Self-Host-Tool-linux-x64[2741]: info: Microsoft.Hosting.Lifetime[0] Content root path: /
sunnynippo commented 2024-10-06 15:50:45 -05:00 (Migrated from github.com)

I also want to add that the installs script itself fails in a LXC as well because it cannot update inotify watches.
Set permissions on executable Upping inotify watches... fs.inotify.max_user_watches=65536 sysctl: permission denied on key "fs.inotify.max_user_watches" sysctl: permission denied on key "fs.inotify.max_user_watches" sysctl: permission denied on key "fs.inotify.max_user_watches"

I just removed this command from the install script and was able to run in successfully.

Again this is only an issue in an unprivelaged LXC. not an issue in bare metal or a VM.

I also want to add that the installs script itself fails in a LXC as well because it cannot update inotify watches. `Set permissions on executable Upping inotify watches... fs.inotify.max_user_watches=65536 sysctl: permission denied on key "fs.inotify.max_user_watches" sysctl: permission denied on key "fs.inotify.max_user_watches" sysctl: permission denied on key "fs.inotify.max_user_watches"` I just removed this command from the install script and was able to run in successfully. Again this is only an issue in an unprivelaged LXC. not an issue in bare metal or a VM.
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-idlesauce/PS5-Exploit-Host-Self-Host-Tool#2
No description provided.