-
-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
10-init-users.sh: sed: can't move '/etc/group' to '/etc/group.bak': Invalid argument #137
Comments
Are you using the container on Proxmox in a LXC container ? |
Yes I am. |
A recent Proxmox update seems that have broken something: changes inside the container are no longer allowed. This can potentially affects any container, not just this one. Can you share the config of your LXC container ? I tried to reproduce on my side and was not able. Maybe you could also try to see if you have the same issue with a new LCX container. |
Here you go. unprivileged = no cores: 2 |
Did you removed |
Also, were you able to test with a new LXC container to verify if you have the same issue ? |
I have the exact same behaviour as @mikeyo ; my lxc-conf (a privileged container) on a fully-updated proxmox-system
|
Thanks for the info, but now we need to know if you can reproduce after creating a new LXC container. I cannot reproduce myself with a fresh install of Proxmox 7.3-3 (no subscription), with the same LXC container config. |
It would also be useful if you could contact Proxmox support about this problem. This issue affects any container, not only this one. Looks like the problem occurs when modifying the content of the container. For example, you can try the following:
Or
To be confirmed, but doing other kind of changes with other files should result in the same failures. |
Yes, had to remove this so I could make changes. |
I can confirm that running the mv command manually produces this error on any file. The LXC container is a new container. I created a ubuntu 22.10 template, installed docker, portainer, removed apparmor. |
I made now some tests and for me the issue seems to be a combination of overlayfs with backing filesystem zfs for docker in the lxc container; As soon as I installed |
Thanks @bernhard-da for the details, that makes a lot of sense. |
for me this procedure worked and i'm able to replicate it: |
There is an easy solution for this. Simply make an ext4 storage for your docker lxc containers. Learned this the hard way long ago. If you guys simply look into your proxmox dmesg, you'll see that. BUT! About the docker workaround: But as you can't shrink a zfs volume (or you can, but its hard + you need a spare drive), there is an easier solution:
4 Now you have 2 Options. If you run just 1 lxc docker container,i would recommend 1. There are no benefits or downsides, if you do just the mountpoint, you simply save a bit space. Moving the whole lxc disk to that ext4 storage just takes up more space, but your backups will include the /var/lib/docker directory. If you want to delete that zvol, because you don't need it or whatever: Cheers |
hi @Ramalama2. Thanks for the great idea of reformatting a ZFS dataset to ext4 which I didn't even think of before. However, in my case even after mounting that volume as ext4 to a folder, docker still fails to start with the same error $ cat docker-compose.yaml
version: '3'
services:
baidunetdisk:
image: johngong/baidunetdisk:latest
container_name: baidunetdisk
ports:
- "5800:5800"
- "5900:5900"
volumes:
- /dockervol:/config
# restart: unless-stopped And the info about that folder is: root@pve:~/docker/baidu_net_disk#
fdisk /dev/zd176
Welcome to fdisk (util-linux 2.36.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
The device contains 'ext4' signature and it will be removed by a write command. See fdisk(8) man page and --wipe option for more details. And |
A bit late reply, didn't checked github for a long time. Rarely but sometimes i had even the case, that i had to reinstall the container on the new ext4 volume, means recreating the container from scratch and install docker inside etc... However, if it still won't work for you, there isn't much time left, till proxmox releases v8.1 with zfs2.2 and a newer kernel, that will definitively fix the docker issues, since zfs2.2 supports natively RENAME_WHITEOUT. Cheers |
@jlesage I can gladly confirm this issue has been fixed after upgrading to Proxmox 8.1 :) |
Great, thanks for the update ! |
Oh yes sorry, i forgot about this issue thread either. Feel free to Close @jlesage Cheers |
I encountered same error with @jlesage mkvtoolnix. Here I have 2 drive mirror ZFS pool for Docker under OMV(openmediavault). So cause for all of this is ZFS? Just as I got interested on it. |
yes, zfs prior to 2.2 didn't supported RENAME_WHITEOUT, overlay2 relies on it, and thats the default docker container fs. |
So I should check that zfs plugin for for OMV is prior to 2.2 and then all I can do is wait for them to update to 2.2 or newer? |
Trying to deploy in portainer and container refuses to work. See below log. Tried as a stack but also fails with same error.
[init ] container is starting...
[cont-env ] loading container environment variables...
[cont-env ] APP_NAME: loading...
[cont-env ] DISPLAY: executing...
[cont-env ] DISPLAY: terminated successfully.
[cont-env ] DISPLAY: loading...
[cont-env ] DOCKER_IMAGE_PLATFORM: loading...
[cont-env ] DOCKER_IMAGE_VERSION: loading...
[cont-env ] GTK_THEME: executing...
[cont-env ] GTK_THEME: terminated successfully.
[cont-env ] GTK_THEME: loading...
[cont-env ] HOME: loading...
[cont-env ] INSTALL_PACKAGES_INTERNAL: executing...
[cont-env ] INSTALL_PACKAGES_INTERNAL: terminated successfully.
[cont-env ] INSTALL_PACKAGES_INTERNAL: loading...
[cont-env ] QT_STYLE_OVERRIDE: executing...
[cont-env ] QT_STYLE_OVERRIDE: terminated successfully.
[cont-env ] QT_STYLE_OVERRIDE: loading...
[cont-env ] TAKE_CONFIG_OWNERSHIP: loading...
[cont-env ] XDG_CACHE_HOME: loading...
[cont-env ] XDG_CONFIG_HOME: loading...
[cont-env ] XDG_DATA_HOME: loading...
[cont-env ] XDG_RUNTIME_DIR: loading...
[cont-env ] XDG_STATE_HOME: loading...
[cont-env ] container environment variables initialized.
[cont-secrets] loading container secrets...
[cont-secrets] container secrets loaded.
[cont-init ] executing container initialization scripts...
[cont-init ] 10-certs.sh: executing...
[cont-init ] 10-certs.sh: terminated successfully.
[cont-init ] 10-check-app-niceness.sh: executing...
[cont-init ] 10-check-app-niceness.sh: terminated successfully.
[cont-init ] 10-cjk-font.sh: executing...
[cont-init ] 10-cjk-font.sh: terminated successfully.
[cont-init ] 10-clean-logmonitor-states.sh: executing...
[cont-init ] 10-clean-logmonitor-states.sh: terminated successfully.
[cont-init ] 10-clean-tmp-dir.sh: executing...
[cont-init ] 10-clean-tmp-dir.sh: terminated successfully.
[cont-init ] 10-fontconfig-cache-dir.sh: executing...
[cont-init ] 10-fontconfig-cache-dir.sh: terminated successfully.
[cont-init ] 10-init-users.sh: executing...
[cont-init ] 10-init-users.sh: sed: can't move '/etc/group' to '/etc/group.bak': Invalid argument
[cont-init ] 10-init-users.sh: terminated with error 1.
The text was updated successfully, but these errors were encountered: