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 since update to most recent version #99

Closed
a1ca1 opened this issue Jan 22, 2024 · 16 comments
Closed

black screen since update to most recent version #99

a1ca1 opened this issue Jan 22, 2024 · 16 comments

Comments

@a1ca1
Copy link

a1ca1 commented Jan 22, 2024

Hello,

Seeing only a black screen when accessing the web interface since updating to the most recent version. Any ideas?

@JonathanTreffler
Copy link
Owner

Please add the logs of the docker container (docker logs [container name])

@d-allin
Copy link

d-allin commented Jan 22, 2024

Seeing the same behaviour in unraid container. I'm on main, but assume digest is same as v1.6 based on timing.
Docker log is here: https://gist.github.com/d-allin/bb9f171fb94b9ff5aecf20ffcb9eed00
Not seeing anything there myself, at a glance.

@hizenburgxb
Copy link

Seeing the same behaviour in unraid container. I'm on main, but assume digest is same as v1.6 based on timing. Docker log is here: https://gist.github.com/d-allin/bb9f171fb94b9ff5aecf20ffcb9eed00 Not seeing anything there myself, at a glance.

Having same issues on my Unraid container also.

@traktuner
Copy link
Collaborator

Also worth a try:
Stop the cointainer.
In your /config directory for this container there should be a sub-directory called "xdg"
Try renaming that to "_xdg"
Then start the container again. the xdg direcotry will be recreated.
It's the cache directory for the service which displays the software in your browser.
Maybe you will also get prompted to install wine mono again, then please go ahead and do that.

Unfortunately I can not reproduce this - I have no Unraid system.

@RDoc0
Copy link

RDoc0 commented Jan 23, 2024

Not sure if this helps I have tried renaming the xdg folder and having the docker recreate it I also provided full permissions to the folders for the docker I still get a black screen. I even deleted the docker and tried reinstalling from scratch and get the black screen. My docker log is below. The error indicates a permissions issue but to me it looks like it timed out maybe?

│ Docker Image Platform: linux/amd64                                   │
│                                                                      │
╰――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――╯

[cont-init ] 89-info.sh: terminated successfully.
[cont-init ] all container initialization scripts executed.
[init ] giving control to process supervisor.
[supervisor ] loading services...
[supervisor ] loading service 'default'...
[supervisor ] loading service 'app'...
[supervisor ] loading service 'gui'...
[supervisor ] loading service 'certsmonitor'...
[supervisor ] service 'certsmonitor' is disabled.
[supervisor ] loading service 'nginx'...
[supervisor ] loading service 'xvnc'...
[supervisor ] loading service 'openbox'...
[supervisor ] loading service 'logmonitor'...
[supervisor ] service 'logmonitor' is disabled.
[supervisor ] loading service 'logrotate'...
[supervisor ] all services loaded.
[supervisor ] starting services...
[supervisor ] starting service 'xvnc'...
[xvnc ] Xvnc TigerVNC 1.13.1 - built Dec 21 2023 00:39:59
[xvnc ] Copyright (C) 1999-2022 TigerVNC Team and many others (see README.rst)
[xvnc ] See https://www.tigervnc.org for information on TigerVNC.
[xvnc ] Underlying X server release 12014000
[xvnc ] Tue Jan 23 12:47:59 2024
[xvnc ] vncext: VNC extension running!
[xvnc ] vncext: Listening for VNC connections on /tmp/vnc.sock (mode 0660)
[xvnc ] vncext: Listening for VNC connections on all interface(s), port 5900
[xvnc ] vncext: created VNC server for screen 0
[supervisor ] starting service 'nginx'...
[nginx ] Listening for HTTP connections on port 5800.
[supervisor ] starting service 'openbox'...
[supervisor ] starting service 'app'...
[app ] + cat /RELEASE_VERSION
[app ] + release_version=v1.6
[app ] + local_version_file=/config/wine//dosdevices/c:/ProgramData/Backblaze/bzdata/bzreports/bzserv_version.txt
[app ] + install_exe_path=/config/wine//dosdevices/c:/
[app ] + log_file=/config/wine//dosdevices/c:/backblaze-wine-startapp.log
[app ] + custom_user_agent=backblaze-personal-wine/v1.6 (JonathanTreffler, +https://github.com/JonathanTreffler/backblaze-personal-wine-container), CFNetwork
[app ] + pinned_bz_version_file=/PINNED_BZ_VERSION
[app ] + sed -n 1p /PINNED_BZ_VERSION
[app ] + pinned_bz_version=9.0.0.749
[app ] + sed -n 2p /PINNED_BZ_VERSION
[app ] + pinned_bz_version_url=https://web.archive.org/web/20231218152237/https://secure.backblaze.com/win32/install_backblaze.exe
[app ] + export WINEARCH=win64
[app ] + disclaimer_updatemode
[app ] + [ false = true ]
[app ] + [ false = true ]
[app ] + echo FORCE_LATEST_UPDATE is disabled. Using known-good version of Backblaze.
[app ] FORCE_LATEST_UPDATE is disabled. Using known-good version of Backblaze.
[app ] + [ -f /config/wine/drive_c/Program Files (x86)/Backblaze/bzbui.exe ]
[app ] + mkdir -p /config/wine/
[app ] + [ false = true ]
[app ] + log_message INSTALLER: FORCE_LATEST_UPDATE=false, Installing pinned Backblaze version
[app ] /startapp.sh: 159: log_message: not found
[app ] + sleep infinity
[app ] + curl -A backblaze-personal-wine/v1.6 (JonathanTreffler, +https://github.com/JonathanTreffler/backblaze-personal-wine-container), CFNetwork -L https://web.archive.org/web/20231218152237/https://secure.backblaze.com/win32/install_backblaze.exe --output install_backblaze.exe
[app ] % Total % Received % Xferd Average Speed Time Time Time Current
[app ] Dload Upload Total Spent Left Speed
[supervisor ] all services started.
[app ] 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
[app ] 0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
[app ] 0 0 0 0 0 0 0 0 --:--:-- 0:00:02 --:--:-- 0
[app ] 0 0 0 0 0 0 0 0 --:--:-- 0:00:03 --:--:-- 0
[app ] 0 0 0 0 0 0 0 0 --:--:-- 0:00:04 --:--:-- 0
[app ] 0 0 0 0 0 0 0 0 --:--:-- 0:00:05 --:--:-- 0
[app ] 0 0 0 0 0 0 0 0 --:--:-- 0:00:06 --:--:-- 0
[app ] 0 0 0 0 0 0 0 0 --:--:-- 0:00:07 --:--:-- 0
[app ] 0 0 0 0 0 0 0 0 --:--:-- 0:00:08 --:--:-- 0
[app ] 0 0 0 0 0 0 0 0 --:--:-- 0:00:09 --:--:-- 0
[app ] 0 0 0 0 0 0 0 0 --:--:-- 0:00:10 --:--:-- 0
[app ] 0 0 0 0 0 0 0 0 --:--:-- 0:00:11 --:--:-- 0
[app ] 0 0 0 0 0 0 0 0 --:--:-- 0:00:12 --:--:-- 0
[app ] 0 0 0 0 0 0 0 0 --:--:-- 0:00:13 --:--:-- 0
[app ] 0 0 0 0 0 0 0 0 --:--:-- 0:00:14 --:--:-- 0
[app ] 0 0 0 0 0 0 0 0 --:--:-- 0:00:15 --:--:-- 0
[app ] 0 0 0 0 0 0 0 0 --:--:-- 0:00:16 --:--:-- 0
[app ] 0 0 0 0 0 0 0 0 --:--:-- 0:00:17 --:--:-- 0
[app ] 0 0 0 0 0 0 0 0 --:--:-- 0:00:18 --:--:-- 0
[app ] 0 0 0 0 0 0 0 0 --:--:-- 0:00:19 --:--:-- 0
[app ] 0 0 0 0 0 0 0 0 --:--:-- 0:00:20 --:--:-- 0
[app ] 0 0 0 0 0 0 0 0 --:--:-- 0:00:21 --:--:-- 0
[app ] 0 0 0 0 0 0 0 0 --:--:-- 0:00:22 --:--:-- 0
[app ] 0 0 0 0 0 0 0 0 --:--:-- 0:00:23 --:--:-- 0
[app ] 0 0 0 0 0 0 0 0 --:--:-- 0:00:24 --:--:-- 0
[app ] 0 0 0 0 0 0 0 0 --:--:-- 0:00:25 --:--:-- 0
[app ] 0 0 0 0 0 0 0 0 --:--:-- 0:00:25 --:--:-- 0Warning: Failed to create the file install_backblaze.exe: Permission denied
[app ] 0 27.7M 0 13601 0 0 529 0 15:17:27 0:00:25 15:17:02 3967
[app ] curl: (23) Failed writing body (0 != 13601)

@cliss
Copy link
Contributor

cliss commented Jan 23, 2024

For what it's worth; this portion:

[app ] 0 0 0 0 0 0 0 0 --:--:-- 0:00:25 --:--:-- 0Warning: Failed to create the file install_backblaze.exe: Permission denied
[app ] 0 27.7M 0 13601 0 0 529 0 15:17:27 0:00:25 15:17:02 3967
[app ] curl: (23) Failed writing body (0 != 13601)

...is exactly what I see and have mentioned in #98.

@hizenburgxb
Copy link

Also worth a try: Stop the cointainer. In your /config directory for this container there should be a sub-directory called "xdg" Try renaming that to "_xdg" Then start the container again. the xdg direcotry will be recreated. It's the cache directory for the service which displays the software in your browser. Maybe you will also get prompted to install wine mono again, then please go ahead and do that.

Unfortunately I can not reproduce this - I have no Unraid system.

Hi, thanks for the help. I ended up restoring the container from a backup, before I saw your response. It went through a reinstall of mono and started working again. Thanks again for your help. Love this container btw!

@csm10495
Copy link

csm10495 commented Jan 27, 2024

I don't think this is actually fixed. A fresh install hits this for me too. (Complete with the black screen and permission denied message).

Trying v1.5 instead worked though.

Worked:

docker run -p 8080:5800 --init -v c:/users/csm10495/desktop/config:/config/ -v c:/users/csm10495/desktop/config:/drive_d/ -e DISPLAY_WIDTH=640 -e DISPLAY_HEIGHT=480 --rm tessypowder/backblaze-personal-wine:v1.5

Failed:

docker run -p 8080:5800 --init -v c:/users/csm10495/desktop/config:/config/ -v c:/users/csm10495/desktop/config:/drive_d/ -e DISPLAY_WIDTH=640 -e DISPLAY_HEIGHT=480 --rm tessypowder/backblaze-personal-wine:latest

@traktuner
Copy link
Collaborator

traktuner commented Jan 27, 2024

I don't think this is actually fixed. A fresh install hits this for me too. (Complete with the black screen and permission denied message).

Hey,
please post the full container logs, so we can debug.
Also please let us know which system you are using as Docker host.

In addition - yould you please use the latest tag and --privileged in your docker command?

docker run -p 8080:5800 --init -v c:/users/csm10495/desktop/config:/config/ -v c:/users/csm10495/desktop/config:/drive_d/ -e DISPLAY_WIDTH=640 -e DISPLAY_HEIGHT=480 --privileged --rm tessypowder/backblaze-personal-wine:latest

Thank you!

@csm10495
Copy link

I'm using Windows 10 w/ Linux containers on Docker. (Honestly I was just testing this out for future usage.. since of course I can use the app directly on Windows).

I cleared the config directory then ran:

C:\Users\csm10495\Desktop>docker run -p 8080:5800 --init -v c:/users/csm10495/desktop/config:/config/ -v c:/users/csm10495/desktop/config:/drive_d/ -e DISPLAY_WIDTH=640 -e DISPLAY_HEIGHT=480 --privileged --rm tessypowder/backblaze-personal-wine:latest
[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    ] GTK2_RC_FILES: executing...
[cont-env    ] GTK2_RC_FILES: terminated successfully.
[cont-env    ] GTK2_RC_FILES: loading...
[cont-env    ] GTK_THEME: executing...
[cont-env    ] GTK_THEME: terminated successfully.
[cont-env    ] GTK_THEME: loading...
[cont-env    ] HOME: 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-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: terminated successfully.
[cont-init   ] 10-nginx.sh: executing...
[cont-init   ] 10-nginx.sh: terminated successfully.
[cont-init   ] 10-openbox.sh: executing...
[cont-init   ] 10-openbox.sh: terminated successfully.
[cont-init   ] 10-pkgs-mirror.sh: executing...
[cont-init   ] 10-pkgs-mirror.sh: terminated successfully.
[cont-init   ] 10-set-tmp-dir-perms.sh: executing...
[cont-init   ] 10-set-tmp-dir-perms.sh: terminated successfully.
[cont-init   ] 10-vnc-password.sh: executing...
[cont-init   ] 10-vnc-password.sh: terminated successfully.
[cont-init   ] 10-web-data.sh: executing...
[cont-init   ] 10-web-data.sh: terminated successfully.
[cont-init   ] 10-x11-unix.sh: executing...
[cont-init   ] 10-x11-unix.sh: terminated successfully.
[cont-init   ] 10-xdg-runtime-dir.sh: executing...
[cont-init   ] 10-xdg-runtime-dir.sh: terminated successfully.
[cont-init   ] 15-cjk-font.sh: executing...
[cont-init   ] 15-cjk-font.sh: terminated successfully.
[cont-init   ] 15-install-pkgs.sh: executing...
[cont-init   ] 15-install-pkgs.sh: terminated successfully.
[cont-init   ] 85-take-config-ownership.sh: executing...
[cont-init   ] 85-take-config-ownership.sh: terminated successfully.
[cont-init   ] 89-info.sh: executing...
    ╭――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――╮
    │                                                                      │
    │ Application:           Backblaze Personal Backup                     │
    │ Application Version:   n/a                                           │
    │ Docker Image Version:  n/a                                           │
    │ Docker Image Platform: linux/amd64                                   │
    │                                                                      │
    ╰――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――╯
[cont-init   ] 89-info.sh: terminated successfully.
[cont-init   ] all container initialization scripts executed.
[init        ] giving control to process supervisor.
[supervisor  ] loading services...
[supervisor  ] loading service 'default'...
[supervisor  ] loading service 'logmonitor'...
[supervisor  ] service 'logmonitor' is disabled.
[supervisor  ] loading service 'logrotate'...
[supervisor  ] loading service 'app'...
[supervisor  ] loading service 'gui'...
[supervisor  ] loading service 'certsmonitor'...
[supervisor  ] service 'certsmonitor' is disabled.
[supervisor  ] loading service 'nginx'...
[supervisor  ] loading service 'xvnc'...
[supervisor  ] loading service 'openbox'...
[supervisor  ] all services loaded.
[supervisor  ] starting services...
[supervisor  ] starting service 'xvnc'...
[xvnc        ] Xvnc TigerVNC 1.13.1 - built Dec 21 2023 00:39:59
[xvnc        ] Copyright (C) 1999-2022 TigerVNC Team and many others (see README.rst)
[xvnc        ] See https://www.tigervnc.org for information on TigerVNC.
[xvnc        ] Underlying X server release 12014000
[xvnc        ] Sat Jan 27 17:12:49 2024
[xvnc        ]  vncext:      VNC extension running!
[xvnc        ]  vncext:      Listening for VNC connections on /tmp/vnc.sock (mode 0660)
[xvnc        ]  vncext:      Listening for VNC connections on all interface(s), port 5900
[xvnc        ]  vncext:      created VNC server for screen 0
[supervisor  ] starting service 'nginx'...
[nginx       ] Listening for HTTP connections on port 5800.
[supervisor  ] starting service 'openbox'...
[supervisor  ] starting service 'app'...
[app         ] + cat /RELEASE_VERSION
[app         ] + release_version=v1.6
[app         ] + local_version_file=/config/wine//dosdevices/c:/ProgramData/Backblaze/bzdata/bzreports/bzserv_version.txt
[app         ] + install_exe_path=/config/wine//dosdevices/c:/
[app         ] + log_file=/config/wine//dosdevices/c:/backblaze-wine-startapp.log
[app         ] + custom_user_agent=backblaze-personal-wine/v1.6 (JonathanTreffler, +https://github.com/JonathanTreffler/backblaze-personal-wine-container), CFNetwork
[app         ] + pinned_bz_version_file=/PINNED_BZ_VERSION
[app         ] + sed -n 1p /PINNED_BZ_VERSION
[app         ] + pinned_bz_version=9.0.0.749
[app         ] + sed -n 2p /PINNED_BZ_VERSION
[app         ] + pinned_bz_version_url=https://web.archive.org/web/20231218152237/https://secure.backblaze.com/win32/install_backblaze.exe
[app         ] + export WINEARCH=win64
[app         ] + disclaimer_updatemode
[app         ] + [ false = true ]
[app         ] + [ false = true ]
[app         ] + echo FORCE_LATEST_UPDATE is disabled. Using known-good version of Backblaze.
[app         ] FORCE_LATEST_UPDATE is disabled. Using known-good version of Backblaze.
[app         ] + [ -f /config/wine/drive_c/Program Files (x86)/Backblaze/bzbui.exe ]
[app         ] + mkdir -p /config/wine/
[app         ] + [ false = true ]
[app         ] + log_message INSTALLER: FORCE_LATEST_UPDATE=false, Installing pinned Backblaze version
[app         ] /startapp.sh: 159: log_message: not found
[app         ] + sleep infinity
[app         ] + curl -A backblaze-personal-wine/v1.6 (JonathanTreffler, +https://github.com/JonathanTreffler/backblaze-personal-wine-container), CFNetwork -L https://web.archive.org/web/20231218152237/https://secure.backblaze.com/win32/install_backblaze.exe --output install_backblaze.exe
[app         ]   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
[app         ]                                  Dload  Upload   Total   Spent    Left  Speed
[supervisor  ] all services started.
[app         ]   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
[app         ]   0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
[app         ]   0     0    0     0    0     0      0      0 --:--:--  0:00:02 --:--:--     0
[app         ]   0     0    0     0    0     0      0      0 --:--:--  0:00:03 --:--:--     0Warning: Failed to create the file install_backblaze.exe: Permission denied
[app         ]   0 27.7M    0 13623    0     0   3695      0  2:11:21  0:00:03  2:11:18  3695
[app         ] curl: (23) Failed writing body (0 != 13623)

Then i opened localhost:8080 in chrome to a black screen:

image

@JonathanTreffler
Copy link
Owner

@csm10495 The permissions of your config directory are not correctly configured, that is why it cannot install Backblaze. I have no idea how docker permissions on Windows work, but on linux that directory has to belong to the same uid and gid as specified in the USER_ID and GROUP_ID env variables of the docker.

@csm10495
Copy link

How's that possible? It creates the config/ directory on my desktop. I delete it every time before running. Then it creates it. If it could create it, I figure it could download the installer.

@JonathanTreffler
Copy link
Owner

JonathanTreffler commented Jan 27, 2024

The Docker daemon creates the directory to have a mountpoint for the volume, not our docker itself.
The docker daemon gives our docker root (with other limits, like filesystem access, so not full root, but still uid 0), but the docker voluntarily runs everything at a lower privilege level. You can try to set USER_ID and GROUP_ID to 0, which will effectively disable this feature.

@csm10495
Copy link

csm10495 commented Jan 27, 2024

Odd. Like you said:

docker run -p 8080:5800 --init -v c:/users/csm10495/desktop/config:/config/ -v c:/users/csm10495/desktop/config:/drive_d/ -e DISPLAY_WIDTH=640 -e DISPLAY_HEIGHT=480 -e USER_ID=0 -e GROUP_ID=0 --privileged --rm tessypowder/backblaze-personal-wine:latest

works.

The thing I don't get is without those new params, the config/ directory gets made and things get filled in:

C:\Users\csm10495\Desktop>rmdir /Q /S config\

C:\Users\csm10495\Desktop>docker run -p 8080:5800 --init -v c:/users/csm10495/desktop/config:/config/ -v c:/users/csm10495/desktop/config:/drive_d/ -e DISPLAY_WIDTH=640 -e DISPLAY_HEIGHT=480 --privileged --rm tessypowder/backblaze-personal-wine:latest
[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    ] GTK2_RC_FILES: executing...
[cont-env    ] GTK2_RC_FILES: terminated successfully.
[cont-env    ] GTK2_RC_FILES: loading...
[cont-env    ] GTK_THEME: executing...
[cont-env    ] GTK_THEME: terminated successfully.
[cont-env    ] GTK_THEME: loading...
[cont-env    ] HOME: 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-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: terminated successfully.
[cont-init   ] 10-nginx.sh: executing...
[cont-init   ] 10-nginx.sh: terminated successfully.
[cont-init   ] 10-openbox.sh: executing...
[cont-init   ] 10-openbox.sh: terminated successfully.
[cont-init   ] 10-pkgs-mirror.sh: executing...
[cont-init   ] 10-pkgs-mirror.sh: terminated successfully.
[cont-init   ] 10-set-tmp-dir-perms.sh: executing...
[cont-init   ] 10-set-tmp-dir-perms.sh: terminated successfully.
[cont-init   ] 10-vnc-password.sh: executing...
[cont-init   ] 10-vnc-password.sh: terminated successfully.
[cont-init   ] 10-web-data.sh: executing...
[cont-init   ] 10-web-data.sh: terminated successfully.
[cont-init   ] 10-x11-unix.sh: executing...
[cont-init   ] 10-x11-unix.sh: terminated successfully.
[cont-init   ] 10-xdg-runtime-dir.sh: executing...
[cont-init   ] 10-xdg-runtime-dir.sh: terminated successfully.
[cont-init   ] 15-cjk-font.sh: executing...
[cont-init   ] 15-cjk-font.sh: terminated successfully.
[cont-init   ] 15-install-pkgs.sh: executing...
[cont-init   ] 15-install-pkgs.sh: terminated successfully.
[cont-init   ] 85-take-config-ownership.sh: executing...
[cont-init   ] 85-take-config-ownership.sh: terminated successfully.
[cont-init   ] 89-info.sh: executing...
    ╭――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――╮
    │                                                                      │
    │ Application:           Backblaze Personal Backup                     │
    │ Application Version:   n/a                                           │
    │ Docker Image Version:  n/a                                           │
    │ Docker Image Platform: linux/amd64                                   │
    │                                                                      │
    ╰――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――╯
[cont-init   ] 89-info.sh: terminated successfully.
[cont-init   ] all container initialization scripts executed.
[init        ] giving control to process supervisor.
[supervisor  ] loading services...
[supervisor  ] loading service 'default'...
[supervisor  ] loading service 'logmonitor'...
[supervisor  ] service 'logmonitor' is disabled.
[supervisor  ] loading service 'logrotate'...
[supervisor  ] loading service 'app'...
[supervisor  ] loading service 'gui'...
[supervisor  ] loading service 'certsmonitor'...
[supervisor  ] service 'certsmonitor' is disabled.
[supervisor  ] loading service 'nginx'...
[supervisor  ] loading service 'xvnc'...
[supervisor  ] loading service 'openbox'...
[supervisor  ] all services loaded.
[supervisor  ] starting services...
[supervisor  ] starting service 'xvnc'...
[xvnc        ] Xvnc TigerVNC 1.13.1 - built Dec 21 2023 00:39:59
[xvnc        ] Copyright (C) 1999-2022 TigerVNC Team and many others (see README.rst)
[xvnc        ] See https://www.tigervnc.org for information on TigerVNC.
[xvnc        ] Underlying X server release 12014000
[xvnc        ] Sat Jan 27 18:43:15 2024
[xvnc        ]  vncext:      VNC extension running!
[xvnc        ]  vncext:      Listening for VNC connections on /tmp/vnc.sock (mode 0660)
[xvnc        ]  vncext:      Listening for VNC connections on all interface(s), port 5900
[xvnc        ]  vncext:      created VNC server for screen 0
[supervisor  ] starting service 'nginx'...
[nginx       ] Listening for HTTP connections on port 5800.
[supervisor  ] starting service 'openbox'...
[supervisor  ] starting service 'app'...
[app         ] + cat /RELEASE_VERSION
[app         ] + release_version=v1.6
[app         ] + local_version_file=/config/wine//dosdevices/c:/ProgramData/Backblaze/bzdata/bzreports/bzserv_version.txt
[app         ] + install_exe_path=/config/wine//dosdevices/c:/
[app         ] + log_file=/config/wine//dosdevices/c:/backblaze-wine-startapp.log
[app         ] + custom_user_agent=backblaze-personal-wine/v1.6 (JonathanTreffler, +https://github.com/JonathanTreffler/backblaze-personal-wine-container), CFNetwork
[app         ] + pinned_bz_version_file=/PINNED_BZ_VERSION
[app         ] + sed -n 1p /PINNED_BZ_VERSION
[app         ] + pinned_bz_version=9.0.0.749
[app         ] + sed -n 2p /PINNED_BZ_VERSION
[app         ] + pinned_bz_version_url=https://web.archive.org/web/20231218152237/https://secure.backblaze.com/win32/install_backblaze.exe
[app         ] + export WINEARCH=win64
[app         ] + disclaimer_updatemode
[app         ] + [ false = true ]
[app         ] + [ false = true ]
[app         ] + echo FORCE_LATEST_UPDATE is disabled. Using known-good version of Backblaze.
[app         ] FORCE_LATEST_UPDATE is disabled. Using known-good version of Backblaze.
[app         ] + [ -f /config/wine/drive_c/Program Files (x86)/Backblaze/bzbui.exe ]
[app         ] + mkdir -p /config/wine/
[app         ] + [ false = true ]
[app         ] + log_message INSTALLER: FORCE_LATEST_UPDATE=false, Installing pinned Backblaze version
[app         ] /startapp.sh: 159: log_message: not found
[app         ] + sleep infinity
[app         ] + curl -A backblaze-personal-wine/v1.6 (JonathanTreffler, +https://github.com/JonathanTreffler/backblaze-personal-wine-container), CFNetwork -L https://web.archive.org/web/20231218152237/https://secure.backblaze.com/win32/install_backblaze.exe --output install_backblaze.exe
[app         ]   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
[app         ]                                  Dload  Upload   Total   Spent    Left  Speed
[supervisor  ] all services started.
[app         ]   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
[app         ]   0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
[app         ]   0     0    0     0    0     0      0      0 --:--:--  0:00:02 --:--:--     0
[app         ]   0     0    0     0    0     0      0      0 --:--:--  0:00:03 --:--:--     0
[app         ]   0     0    0     0    0     0      0      0 --:--:--  0:00:04 --:--:--     0
[app         ]   0     0    0     0    0     0      0      0 --:--:--  0:00:05 --:--:--     0
[app         ]   0     0    0     0    0     0      0      0 --:--:--  0:00:06 --:--:--     0
[app         ]   0     0    0     0    0     0      0      0 --:--:--  0:00:07 --:--:--     0Warning: Failed to create the file install_backblaze.exe: Permission denied
[app         ]   0 27.7M    0 13624    0     0   1858      0  4:21:12  0:00:07  4:21:05  3358
[app         ] curl: (23) Failed writing body (0 != 13624)
[supervisor  ] SIGTINT received, shutting down...
[supervisor  ] stopping service 'app'...
[supervisor  ] service 'app' exited (got signal SIGTERM).
[supervisor  ] stopping service 'openbox'...
[supervisor  ] service 'openbox' exited (with status 0).
[supervisor  ] stopping service 'nginx'...
[supervisor  ] service 'nginx' exited (with status 0).
[supervisor  ] stopping service 'xvnc'...
[xvnc        ] Sat Jan 27 18:43:28 2024
[xvnc        ]  ComparingUpdateTracker: 0 pixels in / 0 pixels out
[xvnc        ]  ComparingUpdateTracker: (1:-nan ratio)
[supervisor  ] service 'xvnc' exited (with status 0).
[finish      ] executing container finish scripts...
[finish      ] all container finish scripts executed.

C:\Users\csm10495\Desktop>ls -laR config
config:
total 292
drw-rw-rw-  5 csm10495 0      0 2024-01-27 10:43 .
dr--r--r--  8 csm10495 0 299008 2024-01-27 10:43 ..
drw-rw-rw-  3 csm10495 0      0 2024-01-27 10:43 log
drw-rw-rw-  2 csm10495 0      0 2024-01-27 10:43 wine
drw-rw-rw-  5 csm10495 0      0 2024-01-27 10:43 xdg

config/log:
total 0
drw-rw-rw-  3 csm10495 0 0 2024-01-27 10:43 .
drw-rw-rw-  5 csm10495 0 0 2024-01-27 10:43 ..
drw-rw-rw-  2 csm10495 0 0 2024-01-27 10:43 nginx

config/log/nginx:
total 0
drw-rw-rw-  2 csm10495 0 0 2024-01-27 10:43 .
drw-rw-rw-  3 csm10495 0 0 2024-01-27 10:43 ..
-rw-rw-rw-  1 csm10495 0 0 2024-01-27 10:43 access.log
-rw-rw-rw-  1 csm10495 0 0 2024-01-27 10:43 error.log

config/wine:
total 0
drw-rw-rw-  2 csm10495 0 0 2024-01-27 10:43 .
drw-rw-rw-  5 csm10495 0 0 2024-01-27 10:43 ..

config/xdg:
total 0
drw-rw-rw-  5 csm10495 0 0 2024-01-27 10:43 .
drw-rw-rw-  5 csm10495 0 0 2024-01-27 10:43 ..
drw-rw-rw-  4 csm10495 0 0 2024-01-27 10:43 cache
drw-rw-rw-  3 csm10495 0 0 2024-01-27 10:43 data
drw-rw-rw-  3 csm10495 0 0 2024-01-27 10:43 state

config/xdg/cache:
total 4
drw-rw-rw-  4 csm10495 0    0 2024-01-27 10:43 .
drw-rw-rw-  5 csm10495 0    0 2024-01-27 10:43 ..
drw-rw-rw-  2 csm10495 0 4096 2024-01-27 10:43 fontconfig
drw-rw-rw-  2 csm10495 0    0 2024-01-27 10:43 openbox

config/xdg/cache/fontconfig:
total 220
drw-rw-rw-  2 csm10495 0   4096 2024-01-27 10:43 .
drw-rw-rw-  4 csm10495 0      0 2024-01-27 10:43 ..
-rw-rw-rw-  1 csm10495 0    176 2024-01-27 10:43 3830d5c3ddfd5cd38a049b759396e72e-le64.cache-8
-rw-rw-rw-  1 csm10495 0    104 2024-01-27 10:43 4c599c202bc5c08e2d34565a40eac3b2-le64.cache-8
-rw-rw-rw-  1 csm10495 0   4208 2024-01-27 10:43 605eb33399efa08596766eba8c7361d5-le64.cache-8
-rw-rw-rw-  1 csm10495 0    120 2024-01-27 10:43 6333f38776742d18e214673cd2c24e34-le64.cache-8
-rw-rw-rw-  1 csm10495 0    160 2024-01-27 10:43 707971e003b4ae6c8121c3a920e507f5-le64.cache-8
-rw-rw-rw-  1 csm10495 0    160 2024-01-27 10:43 7ef2298fde41cc6eeb7af42e48b7d293-le64.cache-8
-rw-rw-rw-  1 csm10495 0    224 2024-01-27 10:43 c855463f699352c367813e37f3f70ea7-le64.cache-8
-rw-rw-rw-  1 csm10495 0 166752 2024-01-27 10:43 cabbd14511b9e8a55e92af97fb3a0461-le64.cache-8
-rw-rw-rw-  1 csm10495 0  16136 2024-01-27 10:43 d589a48862398ed80a3d6066f4f56f4c-le64.cache-8
-rw-rw-rw-  1 csm10495 0    112 2024-01-27 10:43 fe547fea3a41b43a38975d292a2b19c7-le64.cache-8

config/xdg/cache/openbox:
total 0
drw-rw-rw-  2 csm10495 0 0 2024-01-27 10:43 .
drw-rw-rw-  4 csm10495 0 0 2024-01-27 10:43 ..
-rw-rw-rw-  1 csm10495 0 0 2024-01-27 10:43 openbox.log

config/xdg/data:
total 0
drw-rw-rw-  3 csm10495 0 0 2024-01-27 10:43 .
drw-rw-rw-  5 csm10495 0 0 2024-01-27 10:43 ..
drw-rw-rw-  3 csm10495 0 0 2024-01-27 10:43 themes

config/xdg/data/themes:
total 0
drw-rw-rw-  3 csm10495 0 0 2024-01-27 10:43 .
drw-rw-rw-  3 csm10495 0 0 2024-01-27 10:43 ..
drw-rw-rw-  3 csm10495 0 0 2024-01-27 10:43 OpenboxTheme

config/xdg/data/themes/OpenboxTheme:
total 4
drw-rw-rw-  3 csm10495 0    0 2024-01-27 10:43 .
drw-rw-rw-  3 csm10495 0    0 2024-01-27 10:43 ..
drw-rw-rw-  2 csm10495 0 4096 2024-01-27 10:43 openbox-3

config/xdg/data/themes/OpenboxTheme/openbox-3:
total 60
drw-rw-rw-  2 csm10495 0 4096 2024-01-27 10:43 .
drw-rw-rw-  3 csm10495 0    0 2024-01-27 10:43 ..
-rw-rw-rw-  1 csm10495 0  136 2024-01-27 10:43 close.xbm
-rw-rw-rw-  1 csm10495 0  231 2024-01-27 10:43 close_hover.xbm
-rw-rw-rw-  1 csm10495 0  133 2024-01-27 10:43 desk.xbm
-rw-rw-rw-  1 csm10495 0  151 2024-01-27 10:43 desk_hover.xbm
-rw-rw-rw-  1 csm10495 0  157 2024-01-27 10:43 desk_toggled.xbm
-rw-rw-rw-  1 csm10495 0  142 2024-01-27 10:43 iconify.xbm
-rw-rw-rw-  1 csm10495 0  160 2024-01-27 10:43 iconify_hover.xbm
-rw-rw-rw-  1 csm10495 0  130 2024-01-27 10:43 max.xbm
-rw-rw-rw-  1 csm10495 0  225 2024-01-27 10:43 max_hover.xbm
-rw-rw-rw-  1 csm10495 0  154 2024-01-27 10:43 max_toggled.xbm
-rw-rw-rw-  1 csm10495 0  136 2024-01-27 10:43 shade.xbm
-rw-rw-rw-  1 csm10495 0  154 2024-01-27 10:43 shade_hover.xbm
-rw-rw-rw-  1 csm10495 0 4433 2024-01-27 10:43 themerc

config/xdg/state:
total 4
drw-rw-rw-  3 csm10495 0    0 2024-01-27 10:43 .
drw-rw-rw-  5 csm10495 0    0 2024-01-27 10:43 ..
drw-rw-rw-  2 csm10495 0 4096 2024-01-27 10:43 logrotate

config/xdg/state/logrotate:
total 8
drw-rw-rw-  2 csm10495 0 4096 2024-01-27 10:43 .
drw-rw-rw-  3 csm10495 0    0 2024-01-27 10:43 ..
-rw-rw-rw-  1 csm10495 0  124 2024-01-27 10:43 logrotate.status

If it was just an empty dir, i understand your theory.. but how could it have made files in the dir if it didn't have permission?

@traktuner
Copy link
Collaborator

traktuner commented Jan 27, 2024

If it was just an empty dir, i understand your theory.. but how could it have made files in the dir if it didn't have permission?

Great to hear that it's working now!
The reaseon for this behaviour is, that 2 permission schemes come together here. First, there are applications which are already installed in the docker container when you start it (all the baseimage things, xdg, the webserver nginx, and many additional packages). Those run as the user root inside the container and have access to the filesystem on your device.
Then, when you start the container, we start a script (startapp.sh) which runs as the user "app" inside the container. This app user gets the permissions from the USER_ID and GROUP_ID you set in the run command. Only if this is set correctly, the startapp.sh script can also write to your file system.
On some systems, it's necessary to set USER_ID and GROUP_ID.

edit: typo

@JonathanTreffler
Copy link
Owner

Exactly, but in most cases you would want to lower the required permissions for startapp and wine, by changing the permissions of the config directory instead of giving it higher privileges.

--privileged should not be necessary, if you have set UID and GID to 0, we have only seen that help on some Synology devices, but in general that is far higher privilege than required.

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

8 participants