Need the path for logs files for a container.

SpiceGuy

New Member
Sep 1, 2025
7
0
1
NJ, USA
I'm trying to update a container on my PVE 9.2.10 and it seems that the update goes perfectly when I run "update" from the container's console. No error are seen in the console. When I try to access the container from my browser it won't open. I get "Site can't be reached." and that the IP address "Refused to connect." The previous version of the container worked fine. I want to go to the Github page for the container but they require the installation log files for the container. When updating the container in "Verbose" mose log files are automatically created. I can see them at the container's console using /tmp but I want to use Bitvise SSH Client to download them to my laptop. The problem is that when I SSH in I cannot find where they are. I've been looking online but I cannot find any information on what path I need to use to get to a container's /tmp directory. Reading through the PVE documentation at the Proxmox File System Layout was not helpful. Can someone give me the "generalized" path when I SSH in?
Many Thanks!!
 
Welcome to the forum, SpiceGuy,

I think the part that's causing you some confusion here is that an LXC container has its own filesystem namespace. So /tmp inside the container is not the same /tmp you see when you SSH into the Proxmox host. There isn't really a useful "generalized path" on the PVE host that you should rely on, because where the container's root filesystem lives depends on the storage backend (LVM-thin, ZFS, directory storage, etc.). The easiest way is probably to let pct deal with that for you.

Assuming for example the container is CT 105 and the log is /tmp/install.log, open a shell to the hypervisor or ssh into it, then run: pct pull 105 /tmp/install.log /root/install.log

That copies the file from the container into /root/install.log on the PVE host. You can then grab it with Bitvise/SFTP from the host as you normally would.

You can also check what's actually in the container's /tmp from the host with:pct exec 105 -- ls -lah /tmp

If you really need to browse the container filesystem from the PVE host, pct mount 105 can mount it and tell you the resulting path, but for simply retrieving a couple of log files I'd use pct pull rather than digging around in the container's backing storage. Also, just as a side note, if Bitvise is actually SSHing directly into the container rather than the PVE host, then /tmp really should just be /tmp. If the files aren't there in that case, double-check that you're connecting to the same container and that the updater hasn't removed its temporary files since it ran. On your next post, please try to provide more context and please consider researching the forums and reading the PVE Administration guide.

Thanks,


Tmanok
 
  • Like
Reactions: news and UdoB