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

Segmentation fault on qnap #7

Open
SiNaPsEr0x opened this issue Apr 5, 2023 · 8 comments
Open

Segmentation fault on qnap #7

SiNaPsEr0x opened this issue Apr 5, 2023 · 8 comments

Comments

@SiNaPsEr0x
Copy link

this is log:

Enabling custom user: mainuser
Creating custom user mainuser
Setting custom user's password
VNC port set to 5901
noVNC port set to 6901
Resolution set to 1920x1080
VNC password disabled
Starting supervisord
2023-04-05 14:09:44,842 WARN No file matches via include "/etc/supervisor/conf.d/*.conf"
2023-04-05 14:09:44,843 INFO Set uid to user 0 succeeded
2023-04-05 14:09:44,849 INFO supervisord started with pid 1
2023-04-05 14:09:45,853 INFO spawned: 'Xvfb' with pid 25
2023-04-05 14:09:45,856 INFO spawned: 'LXDE' with pid 26
2023-04-05 14:09:45,861 INFO spawned: 'x11vnc' with pid 27
2023-04-05 14:09:45,865 INFO spawned: 'noVNC' with pid 28
2023-04-05 14:09:46,121 INFO exited: Xvfb (terminated by SIGABRT; not expected)
2023-04-05 14:09:46,121 INFO reaped unknown pid 39 (exit status 0)
2023-04-05 14:09:46,127 INFO exited: LXDE (exit status 1; not expected)
2023-04-05 14:09:46,144 INFO exited: x11vnc (exit status 1; not expected)
2023-04-05 14:09:47,343 INFO spawned: 'Xvfb' with pid 40
2023-04-05 14:09:47,347 INFO spawned: 'LXDE' with pid 41
2023-04-05 14:09:47,351 INFO spawned: 'x11vnc' with pid 42
2023-04-05 14:09:47,352 INFO success: noVNC entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-04-05 14:09:47,388 INFO exited: Xvfb (terminated by SIGABRT; not expected)
2023-04-05 14:09:47,391 INFO exited: x11vnc (exit status 1; not expected)
2023-04-05 14:09:47,414 INFO reaped unknown pid 51 (exit status 0)
2023-04-05 14:09:48,424 INFO success: LXDE entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-04-05 14:09:48,424 INFO exited: LXDE (exit status 1; not expected)
2023-04-05 14:09:49,427 INFO spawned: 'Xvfb' with pid 52
2023-04-05 14:09:49,432 INFO spawned: 'LXDE' with pid 53
2023-04-05 14:09:49,437 INFO spawned: 'x11vnc' with pid 54
2023-04-05 14:09:49,438 INFO reaped unknown pid 38 (exit status 1)
2023-04-05 14:09:49,473 INFO exited: Xvfb (terminated by SIGABRT; not expected)
2023-04-05 14:09:49,478 INFO exited: x11vnc (exit status 1; not expected)
2023-04-05 14:09:49,485 INFO reaped unknown pid 63 (exit status 0)
2023-04-05 14:09:49,490 INFO exited: LXDE (exit status 1; not expected)
2023-04-05 14:09:50,494 INFO spawned: 'LXDE' with pid 64
2023-04-05 14:09:50,494 INFO reaped unknown pid 50 (exit status 1)
2023-04-05 14:09:50,545 INFO reaped unknown pid 73 (exit status 0)
2023-04-05 14:09:50,550 INFO exited: LXDE (exit status 1; not expected)
2023-04-05 14:09:52,555 INFO spawned: 'Xvfb' with pid 74
2023-04-05 14:09:52,559 INFO spawned: 'LXDE' with pid 75
2023-04-05 14:09:52,564 INFO spawned: 'x11vnc' with pid 76
2023-04-05 14:09:52,565 INFO reaped unknown pid 62 (exit status 1)
2023-04-05 14:09:52,579 INFO exited: Xvfb (terminated by SIGABRT; not expected)
2023-04-05 14:09:52,600 INFO gave up: Xvfb entered FATAL state, too many start retries too quickly
2023-04-05 14:09:52,603 INFO reaped unknown pid 85 (exit status 0)
2023-04-05 14:09:52,605 INFO exited: x11vnc (exit status 1; not expected)
2023-04-05 14:09:52,617 INFO gave up: x11vnc entered FATAL state, too many start retries too quickly
2023-04-05 14:09:52,622 INFO exited: LXDE (exit status 1; not expected)
2023-04-05 14:09:53,623 INFO reaped unknown pid 72 (exit status 1)
2023-04-05 14:09:55,628 INFO spawned: 'LXDE' with pid 86
2023-04-05 14:09:55,630 INFO reaped unknown pid 84 (exit status 1)
2023-04-05 14:09:55,677 INFO reaped unknown pid 95 (exit status 0)
2023-04-05 14:09:55,682 INFO exited: LXDE (exit status 1; not expected)
2023-04-05 14:09:56,684 INFO gave up: LXDE entered FATAL state, too many start retries too quickly
2023-04-05 14:09:58,686 INFO reaped unknown pid 94 (exit status 1)
2023-04-05 14:16:11,115 WARN received SIGTERM indicating exit request
2023-04-05 14:16:11,123 INFO waiting for noVNC to die
2023-04-05 14:16:11,193 INFO stopped: noVNC (exit status 0)
Enabling custom user: mainuser
The custom user mainuser already exists
Setting custom user's password
VNC port set to 5901
noVNC port set to 6901
Resolution set to 1920x1080
VNC password disabled
Starting supervisord
2023-04-05 14:16:13,945 WARN No file matches via include "/etc/supervisor/conf.d/*.conf"
2023-04-05 14:16:13,945 INFO Set uid to user 0 succeeded
2023-04-05 14:16:13,953 INFO supervisord started with pid 1
2023-04-05 14:16:14,957 INFO spawned: 'Xvfb' with pid 18
2023-04-05 14:16:14,960 INFO spawned: 'LXDE' with pid 19
2023-04-05 14:16:14,965 INFO spawned: 'x11vnc' with pid 20
2023-04-05 14:16:14,969 INFO spawned: 'noVNC' with pid 21
2023-04-05 14:16:14,984 INFO exited: Xvfb (terminated by SIGABRT; not expected)
2023-04-05 14:16:15,001 INFO exited: x11vnc (exit status 1; not expected)
2023-04-05 14:16:15,022 INFO reaped unknown pid 30 (terminated by SIGTERM)
2023-04-05 14:16:15,028 INFO exited: LXDE (exit status 1; not expected)
2023-04-05 14:16:16,434 INFO spawned: 'Xvfb' with pid 31
2023-04-05 14:16:16,439 INFO spawned: 'LXDE' with pid 32
2023-04-05 14:16:16,443 INFO spawned: 'x11vnc' with pid 33
2023-04-05 14:16:16,445 INFO success: noVNC entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-04-05 14:16:16,497 INFO exited: Xvfb (terminated by SIGABRT; not expected)
2023-04-05 14:16:16,501 INFO exited: x11vnc (exit status 1; not expected)
2023-04-05 14:16:16,502 INFO reaped unknown pid 42 (exit status 0)
2023-04-05 14:16:17,517 INFO success: LXDE entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-04-05 14:16:17,517 INFO exited: LXDE (exit status 1; not expected)
2023-04-05 14:16:18,522 INFO spawned: 'Xvfb' with pid 43
2023-04-05 14:16:18,526 INFO spawned: 'LXDE' with pid 44
2023-04-05 14:16:18,531 INFO spawned: 'x11vnc' with pid 45
2023-04-05 14:16:18,532 INFO reaped unknown pid 29 (exit status 1)
2023-04-05 14:16:18,553 INFO exited: Xvfb (terminated by SIGABRT; not expected)
2023-04-05 14:16:18,565 INFO exited: x11vnc (exit status 1; not expected)
2023-04-05 14:16:18,591 INFO reaped unknown pid 54 (exit status 0)
2023-04-05 14:16:18,597 INFO exited: LXDE (exit status 1; not expected)
2023-04-05 14:16:19,600 INFO spawned: 'LXDE' with pid 55
2023-04-05 14:16:19,601 INFO reaped unknown pid 41 (exit status 1)
2023-04-05 14:16:19,649 INFO reaped unknown pid 64 (exit status 0)
2023-04-05 14:16:19,655 INFO exited: LXDE (exit status 1; not expected)
2023-04-05 14:16:21,660 INFO spawned: 'Xvfb' with pid 65
2023-04-05 14:16:21,664 INFO spawned: 'LXDE' with pid 66
2023-04-05 14:16:21,670 INFO spawned: 'x11vnc' with pid 67
2023-04-05 14:16:21,672 INFO reaped unknown pid 53 (exit status 1)
2023-04-05 14:16:21,706 INFO exited: Xvfb (terminated by SIGABRT; not expected)
2023-04-05 14:16:21,707 INFO reaped unknown pid 76 (exit status 0)
2023-04-05 14:16:21,708 INFO gave up: Xvfb entered FATAL state, too many start retries too quickly
2023-04-05 14:16:21,711 INFO exited: x11vnc (exit status 1; not expected)
2023-04-05 14:16:21,726 INFO gave up: x11vnc entered FATAL state, too many start retries too quickly
2023-04-05 14:16:22,735 INFO success: LXDE entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-04-05 14:16:22,735 INFO reaped unknown pid 63 (exit status 1)
2023-04-05 14:16:22,735 INFO exited: LXDE (exit status 1; not expected)
2023-04-05 14:16:23,739 INFO spawned: 'LXDE' with pid 77
2023-04-05 14:16:23,789 INFO reaped unknown pid 86 (exit status 0)
2023-04-05 14:16:23,795 INFO exited: LXDE (exit status 1; not expected)
2023-04-05 14:16:24,799 INFO spawned: 'LXDE' with pid 87
2023-04-05 14:16:24,800 INFO reaped unknown pid 75 (exit status 1)
2023-04-05 14:16:24,850 INFO reaped unknown pid 96 (exit status 0)
2023-04-05 14:16:24,856 INFO exited: LXDE (exit status 1; not expected)
2023-04-05 14:16:26,861 INFO spawned: 'LXDE' with pid 97
2023-04-05 14:16:26,862 INFO reaped unknown pid 85 (exit status 1)
2023-04-05 14:16:26,912 INFO reaped unknown pid 106 (exit status 0)
2023-04-05 14:16:27,920 INFO success: LXDE entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-04-05 14:16:27,920 INFO reaped unknown pid 95 (exit status 1)
2023-04-05 14:16:27,920 INFO exited: LXDE (exit status 1; not expected)
@dmotte
Copy link
Owner

dmotte commented Apr 5, 2023

Hey there, thanks for opening this issue and for using this software! May I ask you some more details about the environment (e.g. Docker version, OS) and what is the command / docker-compose file you are using to spin this up?

@SiNaPsEr0x
Copy link
Author

I have qnap with armv7 procs alpine

@dmotte
Copy link
Owner

dmotte commented Apr 6, 2023

Could you please tell me what is the digest of the specific desktainer Docker image you are using?

And please could you provide the content of the Xvfb log (you can find it in /var/log/supervisor inside the container)

Thanks :)

@SiNaPsEr0x
Copy link
Author

SiNaPsEr0x commented Apr 17, 2023

there is 2 log.. this is your..

root@7ad041b0046c:/var/log/supervisor# cat Xvfb-stderr---supervisor-dxtjkcth.log 
(EE) 
(EE) Backtrace:
(EE) 
(EE) Segmentation fault at address 0x6c69615e
(EE) 
Fatal server error:
(EE) Caught signal 11 (Segmentation fault). Server aborting
(EE) 
(EE) 
(EE) Backtrace:
(EE) 
(EE) Segmentation fault at address 0x6c69615e
(EE) 
Fatal server error:
(EE) Caught signal 11 (Segmentation fault). Server aborting
(EE) 
(EE) 
(EE) Backtrace:
(EE) 
(EE) Segmentation fault at address 0x6c69615e
(EE) 
Fatal server error:
(EE) Caught signal 11 (Segmentation fault). Server aborting
(EE) 
(EE) 
(EE) Backtrace:
(EE) 
(EE) Segmentation fault at address 0x6c69615e
(EE) 
Fatal server error:
(EE) Caught signal 11 (Segmentation fault). Server aborting
(EE) 
root@7ad041b0046c:/var/log/supervisor# 

and this st error from console:

Enabling custom user: mainuser
Creating custom user mainuser
Setting custom user's password
VNC port set to 5901
noVNC port set to 6901
Resolution set to 1920x1080
VNC password disabled
Starting supervisord
2023-04-17 15:27:47,647 WARN No file matches via include "/etc/supervisor/conf.d/*.conf"
2023-04-17 15:27:47,648 INFO Set uid to user 0 succeeded
2023-04-17 15:27:47,657 INFO supervisord started with pid 1
2023-04-17 15:27:48,661 INFO spawned: 'Xvfb' with pid 24
2023-04-17 15:27:48,665 INFO spawned: 'LXDE' with pid 25
2023-04-17 15:27:48,670 INFO spawned: 'x11vnc' with pid 26
2023-04-17 15:27:48,674 INFO spawned: 'noVNC' with pid 27
2023-04-17 15:27:48,740 INFO exited: x11vnc (exit status 1; not expected)
2023-04-17 15:27:48,762 INFO exited: Xvfb (terminated by SIGABRT; not expected)
2023-04-17 15:27:48,989 INFO reaped unknown pid 38 (exit status 0)
2023-04-17 15:27:48,994 INFO exited: LXDE (exit status 1; not expected)
2023-04-17 15:27:50,155 INFO spawned: 'Xvfb' with pid 39
2023-04-17 15:27:50,158 INFO spawned: 'LXDE' with pid 40
2023-04-17 15:27:50,164 INFO spawned: 'x11vnc' with pid 41
2023-04-17 15:27:50,169 INFO success: noVNC entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-04-17 15:27:50,195 INFO exited: Xvfb (terminated by SIGABRT; not expected)
2023-04-17 15:27:50,198 INFO exited: x11vnc (exit status 1; not expected)
2023-04-17 15:27:50,229 INFO reaped unknown pid 50 (exit status 0)
2023-04-17 15:27:51,237 INFO success: LXDE entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-04-17 15:27:51,237 INFO exited: LXDE (exit status 1; not expected)
2023-04-17 15:27:52,241 INFO spawned: 'Xvfb' with pid 51
2023-04-17 15:27:52,248 INFO spawned: 'LXDE' with pid 52
2023-04-17 15:27:52,252 INFO spawned: 'x11vnc' with pid 53
2023-04-17 15:27:52,254 INFO reaped unknown pid 37 (exit status 1)
2023-04-17 15:27:52,276 INFO exited: Xvfb (terminated by SIGABRT; not expected)
2023-04-17 15:27:52,293 INFO exited: x11vnc (exit status 1; not expected)
2023-04-17 15:27:52,320 INFO reaped unknown pid 62 (exit status 0)
2023-04-17 15:27:52,326 INFO exited: LXDE (exit status 1; not expected)
2023-04-17 15:27:53,330 INFO spawned: 'LXDE' with pid 63
2023-04-17 15:27:53,331 INFO reaped unknown pid 49 (exit status 1)
2023-04-17 15:27:53,382 INFO reaped unknown pid 72 (exit status 0)
2023-04-17 15:27:54,390 INFO success: LXDE entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-04-17 15:27:54,390 INFO exited: LXDE (exit status 1; not expected)
2023-04-17 15:27:55,394 INFO spawned: 'Xvfb' with pid 73
2023-04-17 15:27:55,398 INFO spawned: 'LXDE' with pid 74
2023-04-17 15:27:55,404 INFO spawned: 'x11vnc' with pid 75
2023-04-17 15:27:55,405 INFO reaped unknown pid 61 (exit status 1)
2023-04-17 15:27:55,420 INFO exited: Xvfb (terminated by SIGABRT; not expected)
2023-04-17 15:27:55,435 INFO gave up: Xvfb entered FATAL state, too many start retries too quickly
2023-04-17 15:27:55,462 INFO exited: x11vnc (exit status 1; not expected)
2023-04-17 15:27:55,462 INFO reaped unknown pid 84 (terminated by SIGTERM)
2023-04-17 15:27:55,468 INFO gave up: x11vnc entered FATAL state, too many start retries too quickly
2023-04-17 15:27:55,470 INFO exited: LXDE (exit status 1; not expected)
2023-04-17 15:27:56,473 INFO spawned: 'LXDE' with pid 85
2023-04-17 15:27:56,474 INFO reaped unknown pid 71 (exit status 1)
2023-04-17 15:27:56,524 INFO reaped unknown pid 94 (exit status 0)
2023-04-17 15:27:56,530 INFO exited: LXDE (exit status 1; not expected)
2023-04-17 15:27:58,535 INFO spawned: 'LXDE' with pid 95
2023-04-17 15:27:58,536 INFO reaped unknown pid 83 (exit status 1)
2023-04-17 15:27:58,587 INFO reaped unknown pid 104 (exit status 0)
2023-04-17 15:27:58,593 INFO exited: LXDE (exit status 1; not expected)
2023-04-17 15:27:59,595 INFO reaped unknown pid 93 (exit status 1)
2023-04-17 15:28:01,599 INFO spawned: 'LXDE' with pid 105
2023-04-17 15:28:01,600 INFO reaped unknown pid 103 (exit status 1)
2023-04-17 15:28:01,650 INFO reaped unknown pid 114 (exit status 0)
2023-04-17 15:28:01,656 INFO exited: LXDE (exit status 1; not expected)
2023-04-17 15:28:02,658 INFO gave up: LXDE entered FATAL state, too many start retries too quickly
2023-04-17 15:28:04,660 INFO reaped unknown pid 113 (exit status 1)

@dmotte
Copy link
Owner

dmotte commented Apr 18, 2023

Hey there @SiNaPsEr0x, thanks for sharing your log. Based on your answers, I assume that you're running the dmotte/desktainer:2023.04.13.2110 image on arm/v7 architecture.

Unfortunately, the log is not very useful because it just tells us that there has been a segmentation fault while trying to start Xvfb.

I don't have a qnap, so I tried to run the image on this setup:

  • Raspberry Pi 2 Model B, which is arm/v7 too
  • OS Raspbian GNU/Linux 11 (bullseye)
  • Docker version 20.10.5+dfsg1, build 55c4c88 (got it with apt install docker.io)
  • command I used to start the container: docker run -it --rm -p 6901:6901 dmotte/desktainer

In my case everything works fine.

The problem you are facing is pretty strange and requires further investigation, but I'm unable to replicate your issue, so I'm afraid I cannot help :(

Have you tried it on a "normal" host (not qnap)? Does it work in that case? Maybe this could be kernel-related or maybe qnap just doesn't provide full Docker support, who knows

@dmotte dmotte changed the title problem Segmentation fault on qnap Apr 18, 2023
@SiNaPsEr0x
Copy link
Author

SiNaPsEr0x commented Apr 18, 2023

Yes the problem is only on qnap ts231P2... if you can do some tests on armhf you would make many of us qnap owners happy

Docker on qnap is Limited but ubuntunovnc run correctly with supervisor

@dmotte
Copy link
Owner

dmotte commented Jun 18, 2023

Hey @SiNaPsEr0x, I updated both the desktainer and desktainer-rootless images to Debian 12 "bookworm". This means that Xvfb has been upgraded from version 2:1.20.11-1+deb11u6 to 2:21.1.7-3. Maybe something could have changed regarding qnap support. Would you please try again? Thanks a lot

@magicse
Copy link

magicse commented Feb 1, 2024

Yes the problem is only on qnap ts231P2... if you can do some tests on armhf you would make many of us qnap owners happy

Docker on qnap is Limited but ubuntunovnc run correctly with supervisor

Some QNAPs with armv7 was updated with page size 32K after that some containers that was created for page size 4K didnt work.

Repository owner deleted a comment from yehyabelhadad Feb 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants