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

Black screen VNC output when using docker volume #13

Open
QGB opened this issue Jan 5, 2020 · 7 comments
Open

Black screen VNC output when using docker volume #13

QGB opened this issue Jan 5, 2020 · 7 comments

Comments

@QGB
Copy link

QGB commented Jan 5, 2020

mkdir ~/test

docker run -v ~/test:/home/chrome -p 5900:5900 -e VNC_SCREEN_SIZE=1366x768 siomiz/chrome

@QGB
Copy link
Author

QGB commented Jan 5, 2020

image

@QGB
Copy link
Author

QGB commented Jan 5, 2020

2020-01-05 06:50:38,617 CRIT Supervisor running as root (no user in config file)
2020-01-05 06:50:38,623 INFO supervisord started with pid 1
2020-01-05 06:50:39,626 INFO spawned: 'xvfb' with pid 8
2020-01-05 06:50:39,629 INFO spawned: 'chrome' with pid 9
2020-01-05 06:50:39,632 INFO spawned: 'x11vnc' with pid 10
2020-01-05 06:50:40,000 INFO exited: chrome (exit status 21; not expected)
2020-01-05 06:50:40,000 INFO reaped unknown pid 28
2020-01-05 06:50:40,000 INFO reaped unknown pid 31
2020-01-05 06:50:41,002 INFO success: xvfb entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2020-01-05 06:50:41,004 INFO spawned: 'chrome' with pid 151
2020-01-05 06:50:41,004 INFO success: x11vnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2020-01-05 06:50:41,341 INFO reaped unknown pid 170
2020-01-05 06:50:41,344 INFO exited: chrome (exit status 21; not expected)
2020-01-05 06:50:41,346 INFO reaped unknown pid 153
2020-01-05 06:50:41,346 INFO reaped unknown pid 154
2020-01-05 06:50:43,769 INFO spawned: 'chrome' with pid 273
2020-01-05 06:50:44,068 INFO exited: chrome (exit status 21; not expected)
2020-01-05 06:50:44,069 INFO reaped unknown pid 292
2020-01-05 06:50:44,070 INFO reaped unknown pid 275
2020-01-05 06:50:44,070 INFO reaped unknown pid 276
2020-01-05 06:50:47,076 INFO spawned: 'chrome' with pid 379
2020-01-05 06:50:47,388 INFO reaped unknown pid 398
2020-01-05 06:50:47,393 INFO exited: chrome (exit status 21; not expected)
2020-01-05 06:50:47,394 INFO gave up: chrome entered FATAL state, too many start retries too quickly
2020-01-05 06:50:47,396 INFO reaped unknown pid 381
2020-01-05 06:50:47,396 INFO reaped unknown pid 382

@siomiz
Copy link
Owner

siomiz commented Jan 8, 2020

Please consult/post the supervisor log of the failed container
saved inside as /tmp/chrome-stderr---supervisor-<random>.log

Also note that the use of -p 5900:5900 is strongly discouraged (unless you have a NAT). Hope it's just for testing.

@rylos
Copy link

rylos commented Jan 21, 2020

Same problem for me when using VOLUME and same log as previous posted one.

@siomiz
Copy link
Owner

siomiz commented Jan 21, 2020

Again,

Please consult/post the supervisor log of the failed container saved inside as /tmp/chrome-stderr---supervisor-<random>.log

Docker log (= supervisord activity log) only tells that chrome exited. Child process log should tell you why it exited.

@jeffr1975
Copy link

jeffr1975 commented Mar 14, 2021

I was having this blank screen problem. Manually creating the .config folder fixed this problem for me on a Windows host.

volumes:
- /run/desktop/mnt/host/c/Docker/Volumes/Chrome:/home/chrome:rw  

Created this folder ahead of time:
C:\Docker\Volumes\Chrome\.config

This is a great container and very useful to me. Keep up the good work and please keep supporting it!

@siomiz
Copy link
Owner

siomiz commented Mar 15, 2021

Thanks @jeffr1975, that makes sense.
Volumes get mounted as root-owned (there is a fun discussion here: moby/moby#2259)
but Chrome inside container needs to read/write as user chrome (uid 1000),
so the auto-creation of .config subdir must fail if empty home dir is mounted fresh.

I'll update entrypoint.sh to ensure ~/.config exists before starting Chrome.

siomiz added a commit that referenced this issue Mar 16, 2021
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

4 participants