Restart loop - Version 22.12.1
Closed this issue · 10 comments
Updated to version 22.12.1 and got this endless restart loop.
2022-12-10T15:38:34.476629773Z | stdout | [init ] container is starting... |
---|---|---|
2022-12-10T15:38:32.221301159Z | stdout | [cont-init ] 10-init-users.sh: terminated with error 127. |
2022-12-10T15:38:32.220370490Z | stdout | [cont-init ] 10-init-users.sh: /etc/cont-init.d/10-init-users.sh: line 86: sed-patch: not found |
2022-12-10T15:38:32.210438226Z | stdout | [cont-init ] 10-init-users.sh: executing... |
2022-12-10T15:38:32.208797255Z | stdout | [cont-init ] 10-fontconfig-cache-dir.sh: terminated successfully. |
2022-12-10T15:38:32.206154225Z | stdout | [cont-init ] 10-fontconfig-cache-dir.sh: executing... |
2022-12-10T15:38:32.204731482Z | stdout | [cont-init ] 10-clean-tmp-dir.sh: terminated successfully. |
2022-12-10T15:38:32.200781098Z | stdout | [cont-init ] 10-clean-tmp-dir.sh: executing... |
2022-12-10T15:38:32.199279406Z | stdout | [cont-init ] 10-clean-logmonitor-states.sh: terminated successfully. |
2022-12-10T15:38:32.195711937Z | stdout | [cont-init ] 10-clean-logmonitor-states.sh: executing... |
2022-12-10T15:38:32.194196065Z | stdout | [cont-init ] 10-cjk-font.sh: terminated successfully. |
2022-12-10T15:38:32.193247306Z | stdout | [cont-init ] 10-cjk-font.sh: /etc/cont-init.d/10-cjk-font.sh: line 6: is-bool-val-true: not found |
2022-12-10T15:38:32.191461097Z | stdout | [cont-init ] 10-cjk-font.sh: executing... |
2022-12-10T15:38:32.190107842Z | stdout | [cont-init ] 10-check-app-niceness.sh: terminated successfully. |
2022-12-10T15:38:32.187440743Z | stdout | [cont-init ] 10-check-app-niceness.sh: executing... |
2022-12-10T15:38:32.185583485Z | stdout | [cont-init ] 10-certs.sh: terminated successfully. |
2022-12-10T15:38:32.184627896Z | stdout | [cont-init ] 10-certs.sh: /etc/cont-init.d/10-certs.sh: line 7: is-bool-val-true: not found |
2022-12-10T15:38:32.182588330Z | stdout | [cont-init ] 10-certs.sh: executing... |
2022-12-10T15:38:32.178633526Z | stdout | [cont-init ] executing container initialization scripts... |
2022-12-10T15:38:32.178551097Z | stdout | [cont-secrets] container secrets loaded. |
2022-12-10T15:38:32.178309390Z | stdout | [cont-secrets] loading container secrets... |
2022-12-10T15:38:32.178162051Z | stdout | [cont-env ] container environment variables initialized. |
2022-12-10T15:38:32.175154876Z | stdout | [cont-env ] XDG_RUNTIME_DIR: loading... |
2022-12-10T15:38:32.172042943Z | stdout | [cont-env ] XDG_DATA_HOME: loading... |
2022-12-10T15:38:32.168477354Z | stdout | [cont-env ] XDG_CONFIG_HOME: loading... |
2022-12-10T15:38:32.165210662Z | stdout | [cont-env ] XDG_CACHE_HOME: loading... |
2022-12-10T15:38:32.162020619Z | stdout | [cont-env ] TAKE_CONFIG_OWNERSHIP: loading... |
2022-12-10T15:38:32.159837115Z | stdout | [cont-env ] QT_STYLE_OVERRIDE: loading... |
2022-12-10T15:38:32.159044654Z | stdout | [cont-env ] QT_STYLE_OVERRIDE: terminated successfully. |
2022-12-10T15:38:32.157216445Z | stdout | [cont-env ] QT_STYLE_OVERRIDE: /etc/cont-env.d/QT_STYLE_OVERRIDE: line 6: is-bool-val-true: not found |
2022-12-10T15:38:32.154374298Z | stdout | [cont-env ] QT_STYLE_OVERRIDE: executing... |
2022-12-10T15:38:32.146637098Z | stdout | [cont-env ] HOME: loading... |
2022-12-10T15:38:32.144127588Z | stdout | [cont-env ] GTK_THEME: loading... |
2022-12-10T15:38:32.143338607Z | stdout | [cont-env ] GTK_THEME: terminated successfully. |
2022-12-10T15:38:32.141466789Z | stdout | [cont-env ] GTK_THEME: /etc/cont-env.d/GTK_THEME: line 6: is-bool-val-true: not found |
2022-12-10T15:38:32.138133157Z | stdout | [cont-env ] GTK_THEME: executing... |
2022-12-10T15:38:32.133646650Z | stdout | [cont-env ] DOCKER_IMAGE_VERSION: loading... |
2022-12-10T15:38:32.128660078Z | stdout | [cont-env ] DOCKER_IMAGE_PLATFORM: loading... |
2022-12-10T15:38:32.125838811Z | stdout | [cont-env ] DISPLAY: loading... |
2022-12-10T15:38:32.124963821Z | stdout | [cont-env ] DISPLAY: terminated successfully. |
2022-12-10T15:38:32.115807237Z | stdout | [cont-env ] DISPLAY: executing... |
2022-12-10T15:38:32.111200581Z | stdout | [cont-env ] APP_VERSION: loading... |
2022-12-10T15:38:32.107300786Z | stdout | [cont-env ] APP_NAME: loading... |
2022-12-10T15:38:32.071826129Z | stdout | [cont-env ] loading container environment variables... |
2022-12-10T15:38:32.070752452Z | stdout | [init ] container is starting... |
2022-12-10T15:38:29.796192482Z | stdout | [cont-init ] 10-init-users.sh: terminated with error 127. |
2022-12-10T15:38:29.795295292Z | stdout | [cont-init ] 10-init-users.sh: /etc/cont-init.d/10-init-users.sh: line 86: sed-patch: not found |
2022-12-10T15:38:29.786245898Z | stdout | [cont-init ] 10-init-users.sh: executing... |
2022-12-10T15:38:29.784562757Z | stdout | [cont-init ] 10-fontconfig-cache-dir.sh: terminated successfully. |
2022-12-10T15:38:29.781797379Z | stdout | [cont-init ] 10-fontconfig-cache-dir.sh: executing... |
2022-12-10T15:38:29.780301547Z | stdout | [cont-init ] 10-clean-tmp-dir.sh: terminated successfully. |
Humm looks like the update was not performed correctly. Are you using Portainer ?
Nope. Just a normal manual download on my Synology NAS.
Are you setting the PATH
environment variable ? Is yes, try to remove it. If not, please provide the output of docker inspect <container name>
.
I had
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
SUP_GROUP_IDS
INSTALL_PACKAGES
VNC_PASSWORD
Had to remove the three empty ones to be able to delete the PATH setting
root@Server:~# docker inspect crashplan-pro
[
{
"Id": "73f509e8b10f6fe307c43d7feb8d6acd74e756317a5de6d14ad96a212b073b79",
"Created": "2022-12-10T17:00:48.749218544Z",
"Path": "/init",
"Args": [],
"State": {
"Status": "restarting",
"Running": true,
"Paused": false,
"Restarting": true,
"OOMKilled": false,
"Dead": false,
"Pid": 0,
"ExitCode": 127,
"Error": "",
"StartedAt": "2022-12-10T17:05:09.80630274Z",
"FinishedAt": "2022-12-10T17:05:10.083489119Z",
"StartedTs": 1670691909,
"FinishedTs": 1670691910
},
"Image": "sha256:6947162017c33a41f9304a77adf5e30f4355a6d3cd995bbd08b26eb1cb80b514",
"ResolvConfPath": "/volume1/@docker/containers/73f509e8b10f6fe307c43d7feb8d6acd74e756317a5de6d14ad96a212b073b79/resolv.conf",
"HostnamePath": "/volume1/@docker/containers/73f509e8b10f6fe307c43d7feb8d6acd74e756317a5de6d14ad96a212b073b79/hostname",
"HostsPath": "/volume1/@docker/containers/73f509e8b10f6fe307c43d7feb8d6acd74e756317a5de6d14ad96a212b073b79/hosts",
"LogPath": "/volume1/@docker/containers/73f509e8b10f6fe307c43d7feb8d6acd74e756317a5de6d14ad96a212b073b79/log.db",
"Name": "/crashplan-pro",
"RestartCount": 11,
"Driver": "aufs",
"Platform": "linux",
"MountLabel": "",
"ProcessLabel": "",
"AppArmorProfile": "docker-default",
"ExecIDs": null,
"HostConfig": {
"Binds": [
"/volume1/docker/appdata/crashplan-pro:/config:rw",
"/volume1/homes:/homes:rw",
"/volume1/music:/music:rw",
"/volume1/photo:/photo:rw",
"/volume1/Video:/video:rw"
],
"ContainerIDFile": "",
"LogConfig": {
"Type": "db",
"Config": {}
},
"NetworkMode": "default",
"PortBindings": {
"5800/tcp": [
{
"HostIp": "",
"HostPort": "5800"
}
],
"5900/tcp": [
{
"HostIp": "",
"HostPort": "5900"
}
]
},
"RestartPolicy": {
"Name": "always",
"MaximumRetryCount": 0
},
"AutoRemove": false,
"VolumeDriver": "",
"VolumesFrom": null,
"CapAdd": null,
"CapDrop": null,
"CgroupnsMode": "host",
"Dns": null,
"DnsOptions": null,
"DnsSearch": null,
"ExtraHosts": null,
"GroupAdd": null,
"IpcMode": "private",
"Cgroup": "",
"Links": null,
"OomScoreAdj": 0,
"PidMode": "",
"Privileged": false,
"PublishAllPorts": false,
"ReadonlyRootfs": false,
"SecurityOpt": null,
"UTSMode": "",
"UsernsMode": "",
"ShmSize": 67108864,
"Runtime": "runc",
"Env": [
"ENV=/root/.docker_rc",
"USER_ID=0",
"GROUP_ID=0",
"UMASK=0022",
"LANG=en_US.UTF-8",
"TZ=CET",
"KEEP_APP_RUNNING=1",
"APP_NICENESS=0",
"CONTAINER_DEBUG=0",
"DISPLAY_WIDTH=1280",
"DISPLAY_HEIGHT=768",
"DARK_MODE=0",
"SECURE_CONNECTION=0",
"SECURE_CONNECTION_VNC_METHOD=SSL",
"SECURE_CONNECTION_CERTS_CHECK_INTERVAL=60",
"WEB_LISTENING_PORT=5800",
"VNC_LISTENING_PORT=5900",
"ENABLE_CJK_FONT=0",
"CRASHPLAN_SRV_MAX_MEM=15000M",
"S6_BEHAVIOUR_IF_STAGE2_FAILS=3",
"S6_SERVICE_DEPS=1",
"APP_NAME=CrashPlan for Small Business",
"APP_USER=app",
"XDG_DATA_HOME=/config/xdg/data",
"XDG_CONFIG_HOME=/config/xdg/config",
"XDG_CACHE_HOME=/config/xdg/cache",
"XDG_RUNTIME_DIR=/tmp/run/user/app",
"DISPLAY=:0",
"S6_WAIT_FOR_SERVICE_MAXTIME=10000",
"CRASHPLAN_DIR=/usr/local/crashplan",
"JAVACOMMON=/usr/local/crashplan/jre/bin/java"
],
"ConsoleSize": [
0,
0
],
"Isolation": "",
"CpuShares": 50,
"Memory": 0,
"NanoCpus": 0,
"CgroupParent": "",
"BlkioWeight": 0,
"BlkioWeightDevice": null,
"BlkioDeviceReadBps": null,
"BlkioDeviceWriteBps": null,
"BlkioDeviceReadIOps": null,
"BlkioDeviceWriteIOps": null,
"CpuPeriod": 0,
"CpuQuota": 0,
"CpuRealtimePeriod": 0,
"CpuRealtimeRuntime": 0,
"CpusetCpus": "",
"CpusetMems": "",
"Devices": null,
"DeviceCgroupRules": null,
"DeviceRequests": null,
"KernelMemory": 0,
"KernelMemoryTCP": 0,
"MemoryReservation": 0,
"MemorySwap": 0,
"MemorySwappiness": null,
"OomKillDisable": false,
"PidsLimit": null,
"Ulimits": null,
"CpuCount": 0,
"CpuPercent": 0,
"IOMaximumIOps": 0,
"IOMaximumBandwidth": 0,
"MaskedPaths": [
"/proc/asound",
"/proc/acpi",
"/proc/kcore",
"/proc/keys",
"/proc/latency_stats",
"/proc/timer_list",
"/proc/timer_stats",
"/proc/sched_debug",
"/proc/scsi",
"/sys/firmware"
],
"ReadonlyPaths": [
"/proc/bus",
"/proc/fs",
"/proc/irq",
"/proc/sys",
"/proc/sysrq-trigger"
]
},
"GraphDriver": {
"Data": null,
"Name": "aufs"
},
"Mounts": [
{
"Type": "bind",
"Source": "/volume1/homes",
"Destination": "/homes",
"Mode": "rw",
"RW": true,
"Propagation": "rprivate"
},
{
"Type": "bind",
"Source": "/volume1/music",
"Destination": "/music",
"Mode": "rw",
"RW": true,
"Propagation": "rprivate"
},
{
"Type": "bind",
"Source": "/volume1/photo",
"Destination": "/photo",
"Mode": "rw",
"RW": true,
"Propagation": "rprivate"
},
{
"Type": "bind",
"Source": "/volume1/Video",
"Destination": "/video",
"Mode": "rw",
"RW": true,
"Propagation": "rprivate"
},
{
"Type": "volume",
"Name": "4iuguiyg",
"Source": "/volume1/@docker/volumes/45ef9a0df9945a9fb0e4967f62da0be9fbc59ea0285a14f1280d9f3bf47c2621/_data",
"Destination": "/storage",
"Driver": "local",
"Mode": "",
"RW": true,
"Propagation": ""
},
{
"Type": "bind",
"Source": "/volume1/docker/appdata/crashplan-pro",
"Destination": "/config",
"Mode": "rw",
"RW": true,
"Propagation": "rprivate"
}
],
"Config": {
"Hostname": "crashplan-pro",
"Domainname": "",
"User": "",
"AttachStdin": false,
"AttachStdout": false,
"AttachStderr": false,
"ExposedPorts": {
"5800/tcp": {},
"5900/tcp": {}
},
"Tty": true,
"OpenStdin": true,
"StdinOnce": false,
"Env": [
"ENV=/root/.docker_rc",
"USER_ID=0",
"GROUP_ID=0",
"UMASK=0022",
"LANG=en_US.UTF-8",
"TZ=CET",
"KEEP_APP_RUNNING=1",
"APP_NICENESS=0",
"CONTAINER_DEBUG=0",
"DISPLAY_WIDTH=1280",
"DISPLAY_HEIGHT=768",
"DARK_MODE=0",
"SECURE_CONNECTION=0",
"SECURE_CONNECTION_VNC_METHOD=SSL",
"SECURE_CONNECTION_CERTS_CHECK_INTERVAL=60",
"WEB_LISTENING_PORT=5800",
"VNC_LISTENING_PORT=5900",
"ENABLE_CJK_FONT=0",
"CRASHPLAN_SRV_MAX_MEM=15000M",
"S6_BEHAVIOUR_IF_STAGE2_FAILS=3",
"S6_SERVICE_DEPS=1",
"APP_NAME=CrashPlan for Small Business",
"APP_USER=app",
"XDG_DATA_HOME=/config/xdg/data",
"XDG_CONFIG_HOME=/config/xdg/config",
"XDG_CACHE_HOME=/config/xdg/cache",
"XDG_RUNTIME_DIR=/tmp/run/user/app",
"DISPLAY=:0",
"S6_WAIT_FOR_SERVICE_MAXTIME=10000",
"CRASHPLAN_DIR=/usr/local/crashplan",
"JAVACOMMON=/usr/local/crashplan/jre/bin/java"
],
"Cmd": [
"/init"
],
"Image": "jlesage/crashplan-pro",
"Volumes": {
"/config": {},
"/storage": {}
},
"WorkingDir": "/tmp",
"Entrypoint": null,
"OnBuild": null,
"Labels": {
"org.label-schema.description": "Docker container for CrashPlan PRO",
"org.label-schema.name": "crashplan-pro",
"org.label-schema.schema-version": "1.0",
"org.label-schema.vcs-url": "https://github.com/jlesage/docker-crashplan-pro",
"org.label-schema.version": "22.12.1"
},
"DDSM": false
},
"NetworkSettings": {
"Bridge": "",
"SandboxID": "8986897897679c8b1fec90c",
"HairpinMode": false,
"LinkLocalIPv6Address": "",
"LinkLocalIPv6PrefixLen": 0,
"Ports": {},
"SandboxKey": "/var/run/docker/netns/84af266e1a0d",
"SecondaryIPAddresses": null,
"SecondaryIPv6Addresses": null,
"EndpointID": "",
"Gateway": "",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"IPAddress": "",
"IPPrefixLen": 0,
"IPv6Gateway": "",
"MacAddress": "",
"Networks": {
"bridge": {
"IPAMConfig": null,
"Links": null,
"Aliases": null,
"NetworkID": "0079786867578651481a509c",
"EndpointID": "",
"Gateway": "",
"IPAddress": "",
"IPPrefixLen": 0,
"IPv6Gateway": "",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"MacAddress": "",
"DriverOpts": null
}
}
}
}
]
Is it working now ?
Ah. Forgot about that one. No, it didn't. But after a second Stop - Reset - Start it now seems to be back in business.
Thank you!
Great!
BTW, you have a bunch of old and unused environment variables set. Note that you don't need to explicitly set all variables. Only the ones that are needed for your needs.
The problem is that I have no idea which environment settings I actually need, or where they come from :)
It's Synology that add them from the ones defined in the image.
From the output you provided earlier, it seems that the variables you actually use are:
USER_ID=0
GROUP_ID=0
TZ=CET
CRASHPLAN_SRV_MAX_MEM=15000M
You can look at https://github.com/jlesage/docker-crashplan-pro#environment-variables for the list of environment variables that can be used, along with their default values.
Thanks! I'll have s look.