Turkey SMB server LXC fail to start after rebooting the host

jena

Member
Jul 9, 2020
47
7
13
33
PVE 5.4.65-1

The turnkey LXC is unprivileged.
Downloaded from Proxmox template search: debian-10-turnkey-fileserver_16.0-1_amd64.tar.gz
Please help, I have important data on the LXC.

Two days ago, I rebooted host, and Turnkey SMB LXC doesn't start due to this error.
I searched around and remounted both zfs subvol and it worked without problem.
I don't have detailed debug
Code:
lxccontainer.c: wait_on_daemonized_start: 841 No such file or directory - Failed to receive the container state

Today, I rebooted host Turnkey SMB server without manually turn it off.
Then LXC won't start.
Log file attached (exceeded word limit here)

Code:
lxc-start -n 700 -F -l DEBUG -o /tmp/lxc-700.log
lxc-start: 700: conf.c: lxc_create_tmp_proc_mount: 2906 Permission denied - Failed to mount proc in the container
lxc-start: 700: conf.c: lxc_setup: 3309 Failed to "/proc" LSMs
lxc-start: 700: start.c: do_start: 1224 Failed to setup container "700"
lxc-start: 700: sync.c: __sync_wait: 41 An error occurred in another process (expected sequence number 5)
lxc-start: 700: start.c: __lxc_start: 1950 Failed to spawn container "700"
lxc-start: 700: tools/lxc_start.c: main: 308 The container failed to start
lxc-start: 700: tools/lxc_start.c: main: 314 Additional information can be obtained by setting the --logfile and --logpriority options

Code:
pvesm list local-nvme
Volid                        Format  Type              Size VMID
local-nvme:base-200-disk-0   raw     images     34359738368 200
local-nvme:base-402-disk-0   raw     images    107374182400 402
local-nvme:subvol-700-disk-0 subvol  rootdir     8589934592 700
local-nvme:vm-211-disk-0     raw     images     34359738368 211
local-nvme:vm-212-disk-0     raw     images     34359738368 212
...more
All other VMs on the nvmepool (RAIDz2) runs just fine.
Also already added rootdelay=10 in /etc/kernel/cmdline

Code:
pvesm list local-hdd
Volid                       Format  Type               Size VMID
local-hdd:subvol-700-disk-0 subvol  rootdir   4398046511104 700
I can pct mount and unmount 700 without problem.

/nvmepool/subvol-700-disk-0# ls -l
shows dev and mysharefolder

/hddpool/subvol-700-disk-0# ls -l
My data still exist

PS:
It was convenient to get just a SMB working.
I like the speed of VirtIO connect within host when having SMB LXC on the host itself.
But it doesn't seems to be easy to use and reliable.

Is there any light weight more reliable solution than Turnkey SMB?
Maybe in the future, when I have all 10G networking, I could have a dedicated server for hosting SMB.
 

Attachments

  • lxc-700.log
    25.4 KB · Views: 0
  • 20201008_lxc700.txt
    321 bytes · Views: 0
Last edited:
using GUI, at LXC700 page, restore function
I attempted to do a restore of LXC700 from a vzdump, which I know was working.
It end up with an error and my LXC700 completely disappeared (nvmepool/subvol-700-disk-0 disappeared).
The mount point mp0 (my SMB data volume) at hddpool/subvol-700-disk-0 is still here.
I backed up some important files on the data volume.

Is there a way to restore LXC700 and manually mount hddpool/subvol-700-disk-0 again?
At the usbhdd storage page, I find the vzdump and tired to restore again to ID=700(since it's already gone), it returned error "cannot mount '/nvmepool/subvol-700-disk-0': directory is not empty"
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!