LXC Asterisk permission problems

May 20, 2019
10
6
3
32
Hallo,

i have two proxmox nodes, some containers and some VMs.

One of the UNPRIVILIGES containers runs ubunto18.04Lts.

After a node restart i weren't able to power on the asterisk container, the error was a permission denied for create /dev.

So i decided to migrate the container to the second node and now it boots... but i can't start asterisk due to an "Illegal operation".

So i backup and restored the Container with UNPRIVILEGED flag unchecked.

Still not working...

I think this is a filesystem permission problem.

Code:
Nov 10 12:24:55 asterisk kernel: [62955.199986] traps: asterisk[20650] trap invalid opcode ip:55a92e8cf3cd sp:7ffed8157220 error:0 in asterisk[55a92e6be000+304000]

I also get from syslog:

Code:
ov  8 14:46:03 asterisk systemd-sysctl[54]: Couldn't write '4 4 1 7' to 'kernel/printk', ignoring: Permission denied
Nov  8 14:46:03 asterisk systemd-sysctl[54]: Couldn't write '1' to 'kernel/kptr_restrict', ignoring: Permission denied
Nov  8 14:46:03 asterisk systemd-sysctl[54]: Couldn't write '1' to 'fs/protected_hardlinks', ignoring: Permission denied
Nov  8 14:46:03 asterisk keyboard-setup.sh[47]: Couldn't get a file descriptor referring to the console
Nov  8 14:46:03 asterisk systemd-sysctl[54]: Couldn't write '1' to 'fs/protected_symlinks', ignoring: Permission denied
Nov  8 14:46:03 asterisk keyboard-setup.sh[47]: Couldn't get a file descriptor referring to the console
Nov  8 14:46:03 asterisk systemd-sysctl[54]: Couldn't write '176' to 'kernel/sysrq', ignoring: Permission denied
Nov  8 14:46:03 asterisk keyboard-setup.sh[47]: Couldn't get a file descriptor referring to the console
Nov  8 14:46:03 asterisk systemd-sysctl[54]: Couldn't write '1' to 'kernel/yama/ptrace_scope', ignoring: Permission denied
Nov  8 14:46:03 asterisk mount[53]: mount: /sys/kernel/config: permission denied.
Nov  8 14:46:03 asterisk systemd-sysctl[54]: Couldn't write '65536' to 'vm/mmap_min_addr', ignoring: Permission denied

and i can't login via ssh for:

Code:
mesg: ttyname failed: Inappropriate ioctl for device

How can i try to fix it?

Thanks.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE 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 your own in 60 seconds.

Buy now!