gfjardim / docker-containers

50 stars 75 forks source link

ERROR: openbox-xdg-autostart requires PyXDG to be installed #51

Open woter324 opened 8 years ago

woter324 commented 8 years ago

Hi, If I can your tremendous efforts to work, I may fall back in love with CrashPlan.

I loaded the docker with: docker run -d -h ${HOSTNAME} --name=crashplan -v /share/CACHEDEV1_DATA/container/config/crashplan:/config -v /share/CACHEDEV1_DATA:/storage -v /etc/localtime:/etc/localtime:ro -p 4242:4242 -p 4243:4243 gfjardim/crashplan:latest

Navigating to the prescribed URL: http://MYNAS:4280/vnc.html?host=MYNAS&port=4280 doesn't work.

In the console I see the following:

WebSocket server settings:                                                                                                                        
  - Listen on :4280                                                                                                                               
  - Flash security policy server                                                                                                                  
  - Web server. Web root: /opt/novnc                                                                                                              
  - No SSL/TLS support (no cert file)                                                                                                             
  - proxying from :4280 to localhost:4279                                                                                                         
Openbox-Message: Unable to find a valid menu file "/var/lib/openbox/debian-menu.xml"                                                              
Starting CrashPlan Desktop...                                                                                                                     

ERROR: openbox-xdg-autostart requires PyXDG to be installed

I am new to containers and dockers, so excuse my ignorance, but I assume they are essentially a lightweight virtual machine, often tuned to run a specific application only...

Therefore, shouldn't PyXDG be in the container?

Any help would be greatly appreciated as this is my last hope of getting CrashPlan to work on my QNAP appliance.

Thanks

W.

woter324 commented 8 years ago

P.S...

I believe you wrote this article. I read in the "Existing Users - How to Upgrade" section:

Ensure it is set to Host mode, or be prepared to add/modify the ports

On my QNAP appliance, in the container's advanced settings, I have the option set to DEFAULT, but it is greyed out and there appears to be no way to change it. Could this be affecting the web access?

image

Thanks again,

W.

haysclark commented 7 years ago

@woter324 Yeah, you are correct. If modify a running container and run apt-get update && apt-get install python-xdg this error goes away.

Spencer-Dawson commented 7 years ago

I'm seeing this console message as well. I can view the webui, but after about 10 seconds it crashes and restarts. According to my email it's been 5 days since the unraid server I'm using this container on has been backing up. I guess it's been down since whenever I "updated" the container last. I did try shelling in and installing python-xdg but that didn't actually fix anything for me. Pretty strange since @haysclark 's command ran without issue and installed a package.

alexjarvis commented 7 years ago

Getting the same problem. Container doesn't work anymore after a crash plan service restart and the latest Crashplan version.

Spencer-Dawson commented 7 years ago

Just mentioning in case anyone else finds this useful. Haysclark's workaround got rid of the error message mentioned above for me, but the ui was still boot thrashing. Increasing the JVM memory limit as outlined in the following page fixed the UI issue. For the record I'm using crashplan on an unraid6 NAS install. http://support.code42.com/CrashPlan/4/Troubleshooting/Code42_App_Does_Not_Run/Code42_App_Does_Not_Run_On_64-Bit_System

alexjarvis commented 7 years ago

Like @Spencer-Dawson I was able to fix this by doing the following:

1) apt-get update && apt-get install python-xdg

2) Edit /config/bin/run.conf and for SRV_JAVA_OPTS increase -Xmx1024m

3) Look at /tmp/crashplan-install.sh and look at configuration variables

4) Follow instructions on http://support.code42.com/CrashPlan/4/Troubleshooting/Code42_App_Does_Not_Run/Code42_App_Does_Not_Run_On_64-Bit_System to uninstall and re-install Crashplan using the settings from /tmp/crashplan-install.sh

5) Restart the container and it seems to be working

AquaRelliux commented 7 years ago

@alexjarvis Can you explain in more details what you did on step 4? It would be really helpful I am new to docker and I run this on unRAID too!

Spencer-Dawson commented 7 years ago

@AquaRelliux I didn't have to edit run.conf or uninstall/reinstall. I just shelled into the container, ran "apt-get update && apt-get install python-xdg" Then followed ONLY step 4 on that link.

AquaRelliux commented 7 years ago

Well the problem is that I can't even get to step 4. The docker won't connect to the backup engine it crashes after around 5 secs of use.

Spencer-Dawson commented 7 years ago

Yeah It took me about 5 tries to be fast enough :p

AquaRelliux commented 7 years ago

And how do you "shell" into a container? I just run the docker exec command on unRAID

AquaRelliux commented 7 years ago

Well that is not an option for me, it just does not work now at all. So kind have to get it working completetly

Spencer-Dawson commented 7 years ago

Sorry to hear you are having so many troubles. This probably isn't the best forum for this level of troubleshooting because it's a bug report. That said I believe I used "docker ps" to find the container id then used "docker exec -it bash" to shell into the container per this stackoverflow post. https://askubuntu.com/questions/505506/how-to-get-bash-or-ssh-into-a-running-container-in-background-mode

For the memory limitation Your best bet will probably be to dig through the configuration documentation for a way to change that setting without the gui then rebooting the container. I suspect that is what alexjarvis was trying to do.

If you have more questions the unraid forum thread would probably be a better place to post them. Of course I have no idea how responsive those people are. https://forums.lime-technology.com/topic/32220-container-crashplan-amp-crashplan-desktop/?page=49

mooglestiltzkin commented 9 months ago

when i went to portainer terminal sh, and did the code

apt-get update && apt-get install python-xdg

it then says not found. any suggestions what to do?

QNAP NAS :/

katelovescode commented 5 months ago

when i went to portainer terminal sh, and did the code

apt-get update && apt-get install python-xdg

it then says not found. any suggestions what to do?

QNAP NAS :/

If you're still having this problem, try apt-get install python3-xdg - that's the only version I could find successfully.