jlesage / docker-cloudberry-backup

Docker container for CloudBerry Backup (Linux Edition)
MIT License
37 stars 7 forks source link

Unable to set web password #11

Closed sundeer closed 5 years ago

sundeer commented 5 years ago

Can't access web interface after setting env variables: CBB_WEB_INTERFACE_USER CBB_WEB_INTERFACE_PASSWORD

Also tried adding /config/.cbb_web_interface_clear_text_pass

Web interface just says wrong username or password.

The docs say that after starting the clear text file will be deleted and a hashed file will be added. That does not happen.

# .default_settings.conf

Update:false
VERSION:24
RetentionDelay : 3
RetentionDeleteLastVersion : false
RetentionNumberOfVersions : 3
SerializationSupportRetentionTime : 10675199.02:48:05.4775807
CommonUserMode : true
debug : false
LogPath : /opt/local/CloudBerry Backup/logs/
LogLevel : low
ProxySettings : {"Address":"","IsPasswordEncrypted":"true","Password":"","Port":0,"Type":0,"UseAuth":"false","User":""}
MinThreadCount : 10
IgnoreSSL : false
WebAccessPort : 43210
WebAccessHttpsPort : 43211
WebAccessEnabled : true
WebAccessUseHttps : true
WebUseAuthorization : true
jlesage commented 5 years ago

Do you have the container's log?

sundeer commented 5 years ago

I'm running your image on an unRAID server and I added both CBB_WEB_INTERFACE_USER CBB_WEB_INTERFACE_PASSWORD env vars to the template myself. I just noticed that the template includes those so I removed mine and logging in via web interface works now.

I still can't set /config/.cbb_web_interface_clear_text_pass and get that working though. I removed the hardcoded password from the unRAID template and added the cleartext file under config. After startup, the cleartext file remains and no hashtext file is created.

Here's the container 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-app-niceness.sh: executing...
[cont-init.d] 00-app-niceness.sh: exited 0.
[cont-init.d] 00-app-script.sh: executing...
[cont-init.d] 00-app-script.sh: exited 0.
[cont-init.d] 00-app-user-map.sh: executing...
[cont-init.d] 00-app-user-map.sh: exited 0.
[cont-init.d] 00-clean-logmonitor-states.sh: executing...
[cont-init.d] 00-clean-logmonitor-states.sh: exited 0.
[cont-init.d] 00-clean-tmp-dir.sh: executing...
[cont-init.d] 00-clean-tmp-dir.sh: exited 0.
[cont-init.d] 00-set-app-deps.sh: executing...
[cont-init.d] 00-set-app-deps.sh: exited 0.
[cont-init.d] 00-set-home.sh: executing...
[cont-init.d] 00-set-home.sh: exited 0.
[cont-init.d] 00-take-config-ownership.sh: executing...
[cont-init.d] 00-take-config-ownership.sh: exited 0.
[cont-init.d] 00-xdg-runtime-dir.sh: executing...
[cont-init.d] 00-xdg-runtime-dir.sh: exited 0.
[cont-init.d] 10-certs.sh: executing...
[cont-init.d] 10-certs.sh: exited 0.
[cont-init.d] 10-cjk-font.sh: executing...
[cont-init.d] 10-cjk-font.sh: exited 0.
[cont-init.d] 10-nginx.sh: executing...
[cont-init.d] 10-nginx.sh: exited 0.
[cont-init.d] 10-vnc-password.sh: executing...
[cont-init.d] 10-vnc-password.sh: exited 0.
[cont-init.d] 10-web-index.sh: executing...
[cont-init.d] 10-web-index.sh: exited 0.
[cont-init.d] cloudberrybackup.sh: executing...
[cont-init.d] cloudberrybackup.sh: generating machine-id...
[cont-init.d] cloudberrybackup.sh: CloudBerry Backup web interface not usable: No password defined.
[cont-init.d] cloudberrybackup.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] starting s6-fdholderd...
[services.d] starting nginx...
[services.d] starting certsmonitor...
[nginx] starting...
[services.d] starting xvfb...
[certsmonitor] disabling service: secure connection not enabled.
[xvfb] starting...
[services.d] starting cbbLocalManagement...
[cbbLocalManagement] starting...
[services.d] starting cbbWebAccess...
[services.d] starting logmonitor...
[cbbWebAccess] starting...
[services.d] starting statusmonitor...
[logmonitor] no file to monitor: disabling service...
[statusmonitor] no file to monitor: disabling service...
[services.d] starting openbox...
[openbox] starting...
[services.d] starting x11vnc...
[services.d] starting app...
[app] starting CloudBerry Backup...
[x11vnc] starting...
[services.d] done.
12/06/2019 10:11:28 passing arg to libvncserver: -rfbport
12/06/2019 10:11:28 passing arg to libvncserver: 5900
12/06/2019 10:11:28 passing arg to libvncserver: -rfbportv6
12/06/2019 10:11:28 passing arg to libvncserver: -1
12/06/2019 10:11:28 passing arg to libvncserver: -httpportv6
12/06/2019 10:11:28 passing arg to libvncserver: -1
12/06/2019 10:11:28 passing arg to libvncserver: -desktop
12/06/2019 10:11:28 passing arg to libvncserver: CloudBerry Backup
12/06/2019 10:11:28 x11vnc version: 0.9.14 lastmod: 2015-11-14 pid: 1000

12/06/2019 10:11:28 Using X display :0
12/06/2019 10:11:28 rootwin: 0x43 reswin: 0x400001 dpy: 0x4c4279e0
12/06/2019 10:11:28
12/06/2019 10:11:28 ------------------ USEFUL INFORMATION ------------------
12/06/2019 10:11:28 X DAMAGE available on display, using it for polling hints.
12/06/2019 10:11:28 To disable this behavior use: '-noxdamage'
12/06/2019 10:11:28
12/06/2019 10:11:28 Most compositing window managers like 'compiz' or 'beryl'
12/06/2019 10:11:28 cause X DAMAGE to fail, and so you may not see any screen
12/06/2019 10:11:28 updates via VNC. Either disable 'compiz' (recommended) or
12/06/2019 10:11:28 supply the x11vnc '-noxdamage' command line option.
12/06/2019 10:11:28 X COMPOSITE available on display, using it for window polling.
12/06/2019 10:11:28 To disable this behavior use: '-noxcomposite'
12/06/2019 10:11:28
12/06/2019 10:11:28 Wireframing: -wireframe mode is in effect for window moves.
12/06/2019 10:11:28 If this yields undesired behavior (poor response, painting
12/06/2019 10:11:28 errors, etc) it may be disabled:
12/06/2019 10:11:28 - use '-nowf' to disable wireframing completely.
12/06/2019 10:11:28 - use '-nowcr' to disable the Copy Rectangle after the
12/06/2019 10:11:28 moved window is released in the new position.
12/06/2019 10:11:28 Also see the -help entry for tuning parameters.
12/06/2019 10:11:28 You can press 3 Alt_L's (Left "Alt" key) in a row to
12/06/2019 10:11:28 repaint the screen, also see the -fixscreen option for
12/06/2019 10:11:28 periodic repaints.
12/06/2019 10:11:28 GrabServer control via XTEST.
12/06/2019 10:11:28
12/06/2019 10:11:28 Scroll Detection: -scrollcopyrect mode is in effect to
12/06/2019 10:11:28 use RECORD extension to try to detect scrolling windows
12/06/2019 10:11:28 (induced by either user keystroke or mouse input).

12/06/2019 10:11:28 If this yields undesired behavior (poor response, painting
12/06/2019 10:11:28 errors, etc) it may be disabled via: '-noscr'
12/06/2019 10:11:28 Also see the -help entry for tuning parameters.
12/06/2019 10:11:28 You can press 3 Alt_L's (Left "Alt" key) in a row to
12/06/2019 10:11:28 repaint the screen, also see the -fixscreen option for
12/06/2019 10:11:28 periodic repaints.
12/06/2019 10:11:28
12/06/2019 10:11:28 XKEYBOARD: number of keysyms per keycode 7 is greater
12/06/2019 10:11:28 than 4 and 51 keysyms are mapped above 4.
12/06/2019 10:11:28 Automatically switching to -xkb mode.
12/06/2019 10:11:28 If this makes the key mapping worse you can
12/06/2019 10:11:28 disable it with the "-noxkb" option.
12/06/2019 10:11:28 Also, remember "-remap DEAD" for accenting characters.
12/06/2019 10:11:28
12/06/2019 10:11:28 X FBPM extension not supported.
Xlib: extension "DPMS" missing on display ":0".
12/06/2019 10:11:28 X display is not capable of DPMS.
12/06/2019 10:11:28 --------------------------------------------------------
12/06/2019 10:11:28
12/06/2019 10:11:28 Default visual ID: 0x21
12/06/2019 10:11:28 Read initial data from X display into framebuffer.
12/06/2019 10:11:28 initialize_screen: fb_depth/fb_bpp/fb_Bpl 24/32/5120
12/06/2019 10:11:28
12/06/2019 10:11:28 X display :0 is 32bpp depth=24 true color
12/06/2019 10:11:28
12/06/2019 10:11:28 Listening for VNC connections on TCP port 5900
12/06/2019 10:11:28
12/06/2019 10:11:28 Xinerama is present and active (e.g. multi-head).
12/06/2019 10:11:28 Xinerama: number of sub-screens: 1
12/06/2019 10:11:28 Xinerama: no blackouts needed (only one sub-screen)
12/06/2019 10:11:28
12/06/2019 10:11:28 fb read rate: 1996 MB/sec
12/06/2019 10:11:28 fast read: reset -wait ms to: 10
12/06/2019 10:11:28 fast read: reset -defer ms to: 10
12/06/2019 10:11:28 The X server says there are 10 mouse buttons.

12/06/2019 10:11:28 screen setup finished.
12/06/2019 10:11:28

The VNC desktop is: 4e470f708e66:0

0

******************************************************************************
Have you tried the x11vnc '-ncache' VNC client-side pixel caching feature yet?

The scheme stores pixel data offscreen on the VNC viewer side for faster
retrieval. It should work with any VNC viewer. Try it by running:

x11vnc -ncache 10 ...

One can also add -ncache_cr for smooth 'copyrect' window motion.
More info: http://www.karlrunge.com/x11vnc/faq.html#faq-client-caching

[2019-Jun-12 10:11:33.980888] 911 [/ WmiqaB8Qb4EHtFfX] [warning] "WApplication: Deploy-path ends with '/', using /?_= for internal paths"
jlesage commented 5 years ago

According to the log the password file is not there. Under unRAID, it should be located at /mnt/user/appdata/CloudBerryBackup/.cbb_web_interface_clear_text_pass. Then make sure to restart the container.

sundeer commented 5 years ago

Ack. I was mistakenly putting the plaintext file in CloudBerry's own config dir /mnt/user/appdata/CloudBerryBackup/etc/config. Works fine now, thanks. Also, big thanks for this nice image.