I have Proxmox VE 7.4-3 on a Dell R730XD server. Inside Proxmox, I have an LXC container for Cockpit, an LXC container for Jellyfin, and an LXC container to run Docker using Docker Compose and Portainer.
A few hours ago, we were watching something from Jellyfin when it suddenly stopped working. I tried accessing the Jellyfin webui from a laptop, and I could not connect, so I restarted the LXC container. That didn't work, so I shutdown all LXC containers and started them back up again, one by one. Still Jellyfin didn't work, so I restarted the Proxmox host. When it came back up, I went into the Proxmox WebUI and tried to start the LXC containers up, but each gives an error and won't start:
Error is:
TASK ERROR: command 'lxc-start --version' failed: Insecure directory in $ENV{PATH} while running with -T switch at /usr/lib/x86_64-linux-gnu/perl-base/IPC/Open3.pm line 178.
Same error no matter which LXC container I try to start.
So I tried to open the Proxmox node shell to see what is going on, but that also gives an error:
TASK ERROR: command '/usr/bin/termproxy 5900 --path /nodes/proxmox --perm Sys.Console -- /bin/login -f root' failed: Insecure directory in $ENV{PATH} while running with -T switch at /usr/lib/x86_64-linux-gnu/perl-base/IPC/Open3.pm line 178.
I tried to SSH in on the Proxmox node's IP from my laptop using PuTTY, but I get a Connection Refused error.
I tried to reboot the Proxmox node from the Reboot button within the WebUI, and I get an erorr:
Insecure directory in $ENV{PATH} while running with -T switch at /usr/share/perl5/PVE/API2/Nodes.pm line 569. (500)
I did some Googling, and found:
https://forum.proxmox.com/threads/insecure-directory-in-env-path-while-running-with-t.27153/ Suggests file permissions are the issue
https://forum.proxmox.com/threads/unable-to-start-pvedeamon-after-update.75568/ Suggests apt dist-upgrade could fix things
I went to the server, plugged in a keyboard and monitor, and it was showing a line to log in, so I logged in as root and ran apt dist-upgrade, and that all ran smoothly. I then rebooted (just in case, to finish the upgrading) and when the server finished rebooting, it no longer has an option for me to log in, it just says:
----------------------------
Proxmox Virtual Environment. Please use your web browser to server - connect to:
168.4.218:8006/
---------------------------
(That is me typing in what I am seeing from my laptop, because I obviously can't Ctrl+C/Ctrl+V from my server right now)
I have no idea how to log back in so I can keep trying other possible solutions. So apparently the old monitor that I plugged in to my server was cutting off some of the text on the sides, so it was asking me to log in to the cli, I just couldn't see it.
So I can access the command line from the server itself, but I still cannot login via SSH or through the Proxmox WebUI and into the Shell. That means I can't find any way to copy and paste from the server's command line to this laptop where I'm writing this post.
Other posts that might help (if I can get logged back in to the command line from the server itself):
https://forum.proxmox.com/threads/proxmox-not-restart.45980/page-2#post-218905 Permissions seem to be the issue
https://forum.proxmox.com/threads/pveproxy-compilation-failed.42997/page-2#post-206398 Specifically, change permissions of one of the path in script /usr/share/perl5/PVE/Report.pm. I have no idea how to try that, even if I could log in.
I know that some extra diagnostic info from my Proxmox node could be helpful, but first I need to know how to log in. Currently, I can access the Proxmox WebUI, and it is now Virtual Environment 7.4-17. But I still get errors when I try to access the shell, start an LXC container, or reboot.
I ran pveversion -r, but I can't copy and paste the results. Here are some of the results:
proxmox-ve 7.4-1 (running kernel: 5.15.126-1-pve)
pve-manager: 7.4-17 (running version 7.4-17/513c62be)
pve-kernel-5.15: 7.4-7
What can I try? Before I go messing around with permissions, I would like to know what exactly I should try.
A few hours ago, we were watching something from Jellyfin when it suddenly stopped working. I tried accessing the Jellyfin webui from a laptop, and I could not connect, so I restarted the LXC container. That didn't work, so I shutdown all LXC containers and started them back up again, one by one. Still Jellyfin didn't work, so I restarted the Proxmox host. When it came back up, I went into the Proxmox WebUI and tried to start the LXC containers up, but each gives an error and won't start:
Error is:
TASK ERROR: command 'lxc-start --version' failed: Insecure directory in $ENV{PATH} while running with -T switch at /usr/lib/x86_64-linux-gnu/perl-base/IPC/Open3.pm line 178.
Same error no matter which LXC container I try to start.
So I tried to open the Proxmox node shell to see what is going on, but that also gives an error:
TASK ERROR: command '/usr/bin/termproxy 5900 --path /nodes/proxmox --perm Sys.Console -- /bin/login -f root' failed: Insecure directory in $ENV{PATH} while running with -T switch at /usr/lib/x86_64-linux-gnu/perl-base/IPC/Open3.pm line 178.
I tried to SSH in on the Proxmox node's IP from my laptop using PuTTY, but I get a Connection Refused error.
I tried to reboot the Proxmox node from the Reboot button within the WebUI, and I get an erorr:
Insecure directory in $ENV{PATH} while running with -T switch at /usr/share/perl5/PVE/API2/Nodes.pm line 569. (500)
I did some Googling, and found:
https://forum.proxmox.com/threads/insecure-directory-in-env-path-while-running-with-t.27153/ Suggests file permissions are the issue
https://forum.proxmox.com/threads/unable-to-start-pvedeamon-after-update.75568/ Suggests apt dist-upgrade could fix things
I went to the server, plugged in a keyboard and monitor, and it was showing a line to log in, so I logged in as root and ran apt dist-upgrade, and that all ran smoothly. I then rebooted (just in case, to finish the upgrading) and when the server finished rebooting, it no longer has an option for me to log in, it just says:
----------------------------
Proxmox Virtual Environment. Please use your web browser to server - connect to:
168.4.218:8006/
---------------------------
(That is me typing in what I am seeing from my laptop, because I obviously can't Ctrl+C/Ctrl+V from my server right now)
So I can access the command line from the server itself, but I still cannot login via SSH or through the Proxmox WebUI and into the Shell. That means I can't find any way to copy and paste from the server's command line to this laptop where I'm writing this post.
Other posts that might help (if I can get logged back in to the command line from the server itself):
https://forum.proxmox.com/threads/proxmox-not-restart.45980/page-2#post-218905 Permissions seem to be the issue
https://forum.proxmox.com/threads/pveproxy-compilation-failed.42997/page-2#post-206398 Specifically, change permissions of one of the path in script /usr/share/perl5/PVE/Report.pm. I have no idea how to try that, even if I could log in.
I know that some extra diagnostic info from my Proxmox node could be helpful,
I ran pveversion -r, but I can't copy and paste the results. Here are some of the results:
proxmox-ve 7.4-1 (running kernel: 5.15.126-1-pve)
pve-manager: 7.4-17 (running version 7.4-17/513c62be)
pve-kernel-5.15: 7.4-7
What can I try? Before I go messing around with permissions, I would like to know what exactly I should try.
Last edited: