Skip to content
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

arm64 tag, testing you image, but unable to start container #61

Closed
XxAcielxX opened this issue Mar 17, 2021 · 17 comments
Closed

arm64 tag, testing you image, but unable to start container #61

XxAcielxX opened this issue Mar 17, 2021 · 17 comments

Comments

@XxAcielxX
Copy link
Contributor

XxAcielxX commented Mar 17, 2021

Hello,

I'm trying to set the container using this cli command:

docker run -d \
  --name cm_rutorrent \
  --ulimit nproc=65535 \
  --ulimit nofile=32000:40000 \
  -e PUID=1000 \
  -e PGID=1000 \
  -e TZ=Asia/Karachi \
  -p 6881:6881/udp \
  -p 8000:8000 \
  -p 8080:8080 \
  -p 9000:9000 \
  -p 50000:50000 \
  -v /media/docker/crazymax/rutorrent:/data \
  -v /media/docker/crazymax/torrents:/downloads \
  -v /media/docker/crazymax/passwd:/passwd \
  crazymax/rtorrent-rutorrent:latest

I'm getting this error in the logs:

s6-init] making user provided files available at /var/run/s6/etc...exited 0.
s6-svscan: warning: unable to iopause: Invalid argument
s6-svscan: warning: executing into .s6-svscan/crash
[s6-init] ensuring user provided files have correct perms...s6-svscan panicked! Dropping to a root shell.
/bin/sh: can't access tty; job control turned off
/run/s6/services # 

All the 3 directories are made using 1000:1000, not sure what's wrong here.

Regards~

@crazy-max
Copy link
Owner

@XxAcielxX Thanks for your feedback. I'll check it out. Can you give me the output of the following commands on your host please?

  • uname -a
  • cat /etc/*release
  • docker version
  • docker info

@crazy-max
Copy link
Owner

Also looks similar to go-gitea/gitea#14961. Maybe an issue with libseccomp2 library.

@XxAcielxX
Copy link
Contributor Author

XxAcielxX commented Mar 18, 2021

@crazy-max, My apologies, it was past midnight my time and I fell asleep. Secondly I forgot to give you my system info.

So here it is, this is my Media SBC running LibreELEC 9.2.6 (Kodi 18.9).

NanoPC-T4:~ # uname -a
Linux NanoPC-T4 4.4.154 #1 SMP Sat Oct 24 14:15:43 EDT 2020 aarch64 GNU/Linux
NanoPC-T4:~ # cat /etc/*release
NAME="LibreELEC"
VERSION="9.2.6"
ID="libreelec"
VERSION_ID="9.2"
PRETTY_NAME="LibreELEC (official): 9.2.6"
HOME_URL="https://libreelec.tv"
BUG_REPORT_URL="/~https://github.com/LibreELEC/LibreELEC.tv"
BUILD_ID="6bd7e983a6c4b748eff6f537077ee156bb800e48"
OPENELEC_ARCH="RK3399.arm"
LIBREELEC_ARCH="RK3399.arm"
LIBREELEC_BUILD="official"
LIBREELEC_PROJECT="Rockchip"
LIBREELEC_DEVICE="RK3399"
RK3399.arm-9.2.6
NanoPC-T4:~ # docker version
Client:
 Version:           18.09.7
 API version:       1.39
 Go version:        go1.12.6
 Git commit:        18.09.7
 Built:             Mon Oct 26 11:09:41 UTC 2020
 OS/Arch:           linux/arm
 Experimental:      false

Server:
 Engine:
  Version:          18.09.7
  API version:      1.39 (minimum version 1.12)
  Go version:       go1.12.6
  Git commit:       18.09.7
  Built:            Mon Oct 26 11:09:41 UTC 2020
  OS/Arch:          linux/arm
  Experimental:     false
NanoPC-T4:~ # docker info
Containers: 15
 Running: 7
 Paused: 0
 Stopped: 8
Images: 16
Server Version: 18.09.7
Storage Driver: overlay2
 Backing Filesystem: extfs
 Supports d_type: true
 Native Overlay Diff: true
Logging Driver: journald
Cgroup Driver: systemd
Plugins:
 Volume: local
 Network: bridge host macvlan null overlay
 Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 1.2.7
runc version: v1.0.0-rc8
init version: fec3683b971d9c3ef73f284f176672c44b448662
Kernel Version: 4.4.154
Operating System: LibreELEC (official): 9.2.6
OSType: linux
Architecture: aarch64
CPUs: 6
Total Memory: 3.787GiB
Name: NanoPC-T4
ID: XPTK:CVSC:LN4R:6ZBV:NZFL:QLF4:K5V6:K6SR:BDND:VSW3:7VOE:JKB6
Docker Root Dir: /storage/.kodi/userdata/addon_data/service.system.docker/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
 127.0.0.0/8
Live Restore Enabled: false

WARNING: No swap limit support
WARNING: No kernel memory limit support

@crazy-max
Copy link
Owner

crazy-max commented Mar 18, 2021

@XxAcielxX Ok that's it. Docker is outdated (18.09 is almost 2 years old) on your host and the image was based on Alpine Linux 13. I fallback to Alpine 12 can you try with the latest release?

@XxAcielxX
Copy link
Contributor Author

XxAcielxX commented Mar 18, 2021

@crazy-max Alright, here is the new log:

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 00-fix-logs.sh: executing...
[cont-init.d] 00-fix-logs.sh: exited 0.
[cont-init.d] 01-fix-uidgid.sh: executing...
[cont-init.d] 01-fix-uidgid.sh: exited 0.
[cont-init.d] 02-fix-perms.sh: executing...
Fixing perms...
[cont-init.d] 02-fix-perms.sh: exited 0.
[cont-init.d] 03-config.sh: executing...
Illegal instruction
Setting timezone to Asia/Karachi...
Setting PHP-FPM configuration...
Setting PHP INI configuration...
Setting OpCache configuration...
Setting Nginx configuration...
Setting Nginx XMLRPC over SCGI configuration...
Setting Nginx ruTorrent configuration...
Setting Nginx WebDAV configuration...
Initializing files and folders...
rpc.htpasswd is empty, removing authentication...
rutorrent.htpasswd is empty, removing authentication...
Checking rTorrent local configuration...
Checking rTorrent configuration...
  Creating default configuration...
Bootstrapping ruTorrent configuration...
Symlinking ruTorrent access.ini file...
Symlinking ruTorrent plugins.ini file...
Overriding ruTorrent plugins config (create)...
Checking ruTorrent custom plugins...
Checking ruTorrent plugins configuration...
Checking ruTorrent custom themes...
Fixing perms...
[cont-init.d] 03-config.sh: exited 0.
[cont-init.d] 04-create-services.sh: executing...
[cont-init.d] 04-create-services.sh: exited 0.
[cont-init.d] ~-socklog: executing...
[cont-init.d] ~-socklog: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.

After this it keep spitting this error out every second:

s6-log: fatal: unable to open_append /var/log/socklog/cron/lock: Permission denied

Can't access web ui @ 8080 either, so no lucky yet.

The file mentioned in the error doesn't exist on my host or inside the container.

@crazy-max
Copy link
Owner

@XxAcielxX Cannot reproduce, there is something odd with your environment. Maybe rootfs is read-only I don't know. Please upgrade to a stable version of Docker.

@XxAcielxX
Copy link
Contributor Author

I'm using multiple images of linuxserverwith this same system, never had any problems with them.

@crazy-max
Copy link
Owner

crazy-max commented Mar 19, 2021

@XxAcielxX Can you give me a link to one of these images please?

@XxAcielxX
Copy link
Contributor Author

@crazy-max crazy-max reopened this Mar 19, 2021
@crazy-max
Copy link
Owner

@XxAcielxX Ok that might be an issue with socklog-overlay. Can you try with crazymax/rtorrent-rutorrent:test please?

@XxAcielxX
Copy link
Contributor Author

@crazy-max Success!!! It is working this time with your test image. Webui is up and running. Give me a day so I can fully test it thoroughly. You can then push the changes to your latest tag.

crazy-max added a commit that referenced this issue Mar 20, 2021
@XxAcielxX
Copy link
Contributor Author

@crazy-max A day of full usage and testing around, I have found no other issue at all. Now I can say this test image is perfect.

Thank you very much mate. 👍🏻

@crazy-max
Copy link
Owner

Ok great, thanks for your feedback.

@rdfortega
Copy link

I'm still having the same issue presented in the opening of the issue.

s6-init] making user provided files available at /var/run/s6/etc...exited 0.
s6-svscan: warning: unable to iopause: Invalid argument
s6-svscan: warning: executing into .s6-svscan/crash
[s6-init] ensuring user provided files have correct perms...s6-svscan panicked! Dropping to a root shell.
/bin/sh: can't access tty; job control turned off
/run/s6/services #

System information:

pi@raspberrypi:~ $ uname -a
Linux raspberrypi 5.10.63-v7l+ #1459 SMP Wed Oct 6 16:41:57 BST 2021 armv7l GNU/Linux
pi@raspberrypi:~ $ cat /etc/*release
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
pi@raspberrypi:~ $ sudo docker version
Client: Docker Engine - Community
 Version:           20.10.9
 API version:       1.41
 Go version:        go1.16.8
 Git commit:        c2ea9bc
 Built:             Mon Oct  4 16:07:27 2021
 OS/Arch:           linux/arm
 Context:           default
 Experimental:      true

Server: Docker Engine - Community
 Engine:
  Version:          20.10.9
  API version:      1.41 (minimum version 1.12)
  Go version:       go1.16.8
  Git commit:       79ea9d3
  Built:            Mon Oct  4 16:05:23 2021
  OS/Arch:          linux/arm
  Experimental:     false
 containerd:
  Version:          1.4.11
  GitCommit:        5b46e404f6b9f661a205e28d59c982d3634148f8
 runc:
  Version:          1.0.2
  GitCommit:        v1.0.2-0-g52b36a2
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0
pi@raspberrypi:~ $ sudo docker info
Client:
 Context:    default
 Debug Mode: false
 Plugins:
  app: Docker App (Docker Inc., v0.9.1-beta3)
  buildx: Build with BuildKit (Docker Inc., v0.6.3-docker)

Server:
 Containers: 1
  Running: 1
  Paused: 0
  Stopped: 0
 Images: 2
 Server Version: 20.10.9
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Native Overlay Diff: true
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: cgroupfs
 Cgroup Version: 1
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 io.containerd.runtime.v1.linux runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 5b46e404f6b9f661a205e28d59c982d3634148f8
 runc version: v1.0.2-0-g52b36a2
 init version: de40ad0
 Security Options:
  seccomp
   Profile: default
 Kernel Version: 5.10.63-v7l+
 Operating System: Raspbian GNU/Linux 10 (buster)
 OSType: linux
 Architecture: armv7l
 CPUs: 4
 Total Memory: 1.828GiB
 Name: raspberrypi
 ID: L4JV:OEML:UTMN:LOS4:BKYC:DXU4:LBZU:C5QS:PGYL:WR7I:7QJS:6QCG
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Registry: https://index.docker.io/v1/
 Labels:
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false

WARNING: No memory limit support
WARNING: No swap limit support
WARNING: No kernel memory TCP limit support
WARNING: No oom kill disable support

Has the issue been fixed? I've checked the other issues opened in other repositories but haven't been able to fix.

@XxAcielxX
Copy link
Contributor Author

XxAcielxX commented Oct 19, 2021

@ortega1cba What's your docker cli or compose command? Your error looks like a permission or volume issue.

@rdfortega
Copy link

Well, I've reinstalled the OS now, I'll be trying again in a moment.

@rdfortega
Copy link

After reinstalling raspbian using 64bit, it worked. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants