Open bgmess opened 6 years ago
Hello Brian, I'm a Synology user as well and was using Patters' CrashPlan package before migrating to the Docker image. Since you're new to Linux, I'll assume you haven't used an SSH client like PuTTY. You'll need to download that before you get started. You can get it here: http://www.putty.org/
Here's how I got jlesage's crashplan pro docker image up and running on my Synology and adopted my existing backup set created from when I was using Patter's CrashPlan package (EDIT: This reflects my personal setup [I have a Synology DS1515+ running DSM 6.1.5 and Docker package version 17.05.0-0367; I have a single volume and it's set up with Synology's SHR-2 RAID configuration] and is intended to be a step-by-step example of how I deployed the docker image on my system. Your individual Synology setup may differ from mine, so please understand that your deployment of the docker image may differ as a result.):
From Synology DSM:
jlesage
and click the 'Search' button. You should see jlesage/crashplan-pro
at the top of the list. Highlight it and click the 'Download' button. Leave the tag as latest
in the 'Choose Tag' window that pops up and click the 'Select' button.From PuTTY:
sudo -i
Press Enter.
Enter your password again and press Enter./docker/appdata/crashplan-pro
configuration folder manually by entering the following command:
mkdir -p /volume1/docker/appdata/crashplan-pro
Press Enter.docker run -d --name=crashplan-pro -e USER_ID=0 -e GROUP_ID=0 -p 5800:5800 -v /volume1/docker/appdata/crashplan-pro:/config:rw -v /volume1/:/volume1:ro jlesage/crashplan-pro
The reason we are doing this through SSH/PuTTY is because the Synology Docker program won't let you map Volume1.From Synology DSM:
From your Web Browser:
http:\\192.168.XXX.XXX:5800
)I hope this helps you get up and running!
You can also look at Synology's documentation: https://www.synology.com/en-global/knowledgebase/DSM/help/Docker/docker_container
Thank you for the step by step instructions. I am a new to docker too. Everything installed and all working fine :) cheers
But I have a problem when I do a restore to the original folder, nothing restored? is this something to do with folder structures? Please help?
many thanks
I haven't yet had to restore from within the Docker Container, but I'm fairly certain the reason the restore doesn't work is because Volume1 is being mapped as Read Only: -v /volume1/:/volume1:ro
If you change the -v /volume1/:/volume1:ro
portion of the docker run
command to -v /volume1/:/volume1:rw
then it should allow the restores.
@jlesage: is that correct? would the user need to remove the docker container and re-create it with the read/write tag?
Yes that's correct @excalibr18. Re-creating the container with the R/W permission for the volume would allow the restore to work properly.
Perfect! Thanks guys All working properly now
Is there a way to map other external drives, as most of my Crashplan files are on drives other than the Volume 1 internal disks? Thank in advance for any help
I am having problems connecting with the web service. After running the command and going to the webpage I get Code42 cannot connect to its background service. Retry
If I create the container via the UI it works but I can't create the storage volume to map to /volume1 where all my data is contain in different shares. Any guidance would be appreciated.
Also, as a note, I used the default instructions and it's moved all my files on CrashPlan to Deleted. so be careful when setting $HOME:/storage as your location if you already have a backup set. I am not sure if I am going to have to just upload everything again 2.1TB or if it will de-dup and mark the files as not deleted.
@Slartybart, yes it's possible. You just need to map additional folders to the container (using the -v
argument).
@jedinite13, did you follow instructions indicated at https://github.com/jlesage/docker-crashplan-pro#taking-over-existing-backup? Basically, if path to your files (as seen by the container) is different between your old and new installation, you need to re-select your files using the new paths. Old paths would be marked as "missing", but that's not a problem. Once you perform the backup, nothing will be re-uploaded because of deduplication.
@Slartybart The Synology maps USB external drives as volumeUSB#
where #
corresponds to a separate physical USB external drive. If you only have one USB external drive connected, then it'll be mapped as volumeUSB1
by default.
If you're looking to mount the entire USB external drive (in a similar way as Volume1 internal disks are mapped), then you can use -v /volumeUSB1/usbshare/:/usbshare:ro
when setting up the container.
@jedinite13 The Synology UI won't allow you to map Volume1, which is why you need to do it via the command line.
As for not being able to connect to the background service, try doing this:
/docker/appdata/crashplan-pro/
(including all the sub folders). You can do this from Synology's FileStation if you're logged in with an admin-level account, otherwise you'll need to do it from the command line logged in as root. Make sure you don't actually remove the crashplan-pro/
folder. If you did you'll need to re-create it.That has seemed to worked for other users (see https://github.com/jlesage/docker-crashplan-pro/issues/14)
One other thing to be aware of: if on the Synology you are experiencing the iNotify Max Watch Limit issue, please refer to this solution: https://github.com/jlesage/docker-crashplan-pro/issues/23
Also be aware that you'll have to repeat setting the max watch limit in /etc.defaults/sysctl.conf
each time the DSM downloads and applies an update.
@excalibr18 & @jlesage Totally AWESOME, folks! Thank you so much! Just followed the instructions instead of fussing with the client app on my MAC.
I have the following questions... Kind of dumb ones I think ;-)
We don't need the MAC or local client anymore, correct?
Can we delete the java JRE packages from the 'public' folder that we used to download per Patter's procedure?
Can we uninstall the CrashPlan Home (Green) package from Synology DSM?
With this Docker Package solution, looks like we don't need to install the CrashPlan Pro package from the Package Center in Synology DSM, correct?
Once again, thank you! Anil
- We don't need the MAC or local client anymore, correct?
Correct. I had the local client installed on my Win10 machine and after going with jlesage's docker solution, I no longer need to use that machine. I just need any machine on my local network with a web browser to access the docker container's web GUI.
- Can we delete the java JRE packages from the 'public' folder that we used to download per Patter's procedure?
I would assume this is correct, however when used Patter's package I always opted to use the system Java, not Patter's internal one.
- Can we uninstall the CrashPlan Home (Green) package from Synology DSM?
Assuming you upgraded you CrashPlan subscription to the Pro/Small Business plan, and jlesage's docker solution is confirmed to be working for you (i.e. you have adopted your backup set and it is working correctly), then I don't see a need to keep the CrashPlan Home (Green) package.
- With this Docker Package solution, looks like we don't need to install the CrashPlan Pro package from the Package Center in Synology DSM, correct?
Correct. With this Docker solution, you don't need the packages from Patter's.
@excalibr18 Thanks for responding so quickly to my questions.
Another Question: My migration worked fine per the above instructions and the backup is running now looking at the web GUI. However, I cannot seem to browse the files and/or folders that have been backed up using "Manage Files". I can see that volume1 is listed, but browsing under it can't seem to find my file structure that's set up for backup. Any tips?
Thank you in advance! Anil
To make sure I understand you correctly, are you saying that when you click "Manage Files" in the GUI, there's nothing listed under volume1? Or are there folders listed, but you just can't find the folders you are backing up?
Did you map volume1 using -v /volume1/:/volume1:ro
or -v /volume1/:/storage:ro
Folders listed but can't find my folder structure from my Synology Home directory that I have selected to be backed up. See the attached snapshot showing what's under volume1
What were the folder paths for your backup when you were using Patters' package?
If you scroll down in that window, do you see any folders with a check mark next to it?
Something like this as shown in the attached from the old client app on my computer saved a few years ago
Web GUI shows that the backup is running and the files that are new and hadn't been backed up for the last 25 days (yes, I hadn't done this upgrade for so long after the backup had stopped) are being backed up (can't see the files that are being backed up themselves... Just from the size of the backup remaining
OK this helps. In this case using the screenshot from the old client app, when you scroll down in the "Manage Files" window you should see a "photo" folder in the list. If you click on that "photo" folder, then you should see the various Year folders you had selected in the old client to back up. Each of the Year folders should have a check mark next to it.
For example, I selected my entire "Archives" and "Documents" shared folders that reside in Volume1. When I scroll down in "Manage Files" this is what it looks like:
Ah, LoL, I didn't notice the scroll bar to the right side in the GUI and thought those were the only folders what I sent you :-) I do see all the other folders when I scroll down.
Thanks a million for your help. And, sorry for bugging you for this silly thing and taking up your time.
Best, Anil
No worries. Glad it's all sorted out and working for you! The new GUI for CrashPlan Version 6 is less intuitive than the one before it unfortunately.
Thanks for the installation steps. I've just transitioned to the docker from Patter's solution. Everything went well and the container is running CP pro, however I can't access the web gui. I've followed this step: "Log into the CrashPlan PRO container GUI by pointing your browser to your IP address of the synology at port 5800 (http://192.168.XXX.XXX:5800)" and replacing the XXX.XXX with my synology server address. I get a 'Can't connect to a server' message. Am I missing something obvious?
Any suggestions would be appreciated.
Which parameters did you give to the docker run
command? Did you mapped the port (-p 5800:5800
)?
@lenny81: Are you accessing the web GUI of the Docker on the same LOCAL network as the Synology?
I'm trying to access it on the same network as the synology.
jlesage: No idea. I'm pretty clueless with all this. I can't remember which guide I used to set it up or how I check if I mapped the port... how do I check this?
Using the Synology UI, you can access the container's advanced settings and then there is a "Port Settings" tab where you can see the port mappings.
Thanks for the reply. Under details -> Port settings I can see port settings for ports 4243 and 4242 but not 5800 which I guess it means it’s not mapped. Is there a way I can map them now or will I need to reload the container?
On 9 Feb 2018, at 9:32 pm, Jocelyn Le Sage <notifications@github.com mailto:notifications@github.com> wrote:
Using the Synology UI, you can access the container's advanced settings and then there is a "Port Settings" tab where you can see the port mappings.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/jlesage/docker-crashplan-pro/issues/34#issuecomment-364409923, or mute the thread https://github.com/notifications/unsubscribe-auth/AildC-2TlUvRZywfuJwc2ebUqHoBulw2ks5tTCyygaJpZM4RRA40.
You can either delete and re-create the container with the correct port mapping from the command line; or stop the container from within the Synology Docker GUI, click the Edit button, go to Port Settings, and change the port to be 5800.
Thanks for the help jlesage and excalibr18, I ended up deleting and reinstalling the container using your guide above excalibr18 and it's all working fine now.
@excalibr18 Excellent job! Up and running in less than 30 minutes (It took this long because I didn't follow your instructions in the order they were written!)
Thanks
Hal refugee from Patters CrashPlan packages for Synology NAS""
@excalibr18 From the command line I got this: "Error starting userland proxy: listen tcp 0.0.0.0:5000: bind: address already in use." It starts if I use 6000:6800, but then I can't connect to the web UI using port 6800 I tried changing the port to 5000:5800 from the gui, and then I'm getting "Local port 5000 conflicts with other ports used by other services". I have no other Docker containers running. "netstat -pna" shows "tcp 0 0 0.0.0.0:5000 0.0.0.0:* LISTEN 10090/nginx: worker" Anyone else see this?
EDIT: Seems that the DSM web interface itself was using 5000:5001. I changed it in Control Panel->Network->DSM Settings to 4000:4001 and then the Crashplan Pro Web interface worked.
When you add a port mapping, the first port is the one on the host side and the second one if the one on the container side. Container side should always be the same (5800
). So you could set something like XXXX:5800
, where XXXX
is any port not already in use on the host.
Port 5000 is the default port used by the Synology administrative web site.
Tom Hebert 480-788-6601
From my phone, so this message may be more terse than normal
From: kmstrs notifications@github.com Sent: Wednesday, February 21, 2018 9:30:24 PM To: jlesage/docker-crashplan-pro Cc: Subscribed Subject: Re: [jlesage/docker-crashplan-pro] Need basic help with installation - need more details (#34)
@excalibr18https://github.com/excalibr18 From the command line I got this: "Error starting userland proxy: listen tcp 0.0.0.0:5000: bind: address already in use." It starts if I use 6000:6800, but then I can't connect to the web UI using port 6800 I tried changing the port to 5000:5800 from the gui, and then I'm getting "Local port 5000 conflicts with other ports used by other services". I have no other Docker containers running. "netstat -an" just shows tcp 0 0 0.0.0.0:5000 0.0.0.0:* LISTEN
Anyone else see this?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/jlesage/docker-crashplan-pro/issues/34#issuecomment-367564249, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AHjxRoLxGwFLGxC9PFZ2dVLNcYUsxEFDks5tXO1ggaJpZM4RRA40.
When following the directions, I get an error after executing:
docker run -d --name=crashplan-pro -e USER_ID=0 -e GROUP_ID=0 -p 5800:5800 -v /volume1/docker/appdata/crashplan-pro:/config:rw -v /volume1/:/volume1:ro jlesage/crashplan-pro
I get the error:
:~$ docker run -d --name=crashplan-pro -e USER_ID=0 -e GROUP_ID=0 -p 5800:5800 -v /volume1/docker/appdata/crashplan-pro:/config:rw -v /volume1/:/volume1:ro jlesage/crashplan-pro
docker: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2fvar%2frun%2fdocker.sock/v1.29/containers/create?name=crashplan-pro: http://%2Fvar%2Frun%2Fdocker.sock/v1.29/containers/create?name=crashplan-pro: dial unix /var/run/docker.sock: connect: permission denied.
See 'docker run --help'.
What do I need to do to give it permission?
Thanks,
Brian
From: excalibr18 [mailto:notifications@github.com] Sent: Tuesday, January 2, 2018 3:12 PM To: jlesage/docker-crashplan-pro docker-crashplan-pro@noreply.github.com Cc: bgmess brian@messhome.com; Author author@noreply.github.com Subject: Re: [jlesage/docker-crashplan-pro] Need basic help with installation - need more details (#34)
Hello Brian, I'm a Synology user as well and was using Patters' CrashPlan package before migrating to the Docker image. Since you're new to Linux, I'll assume you haven't used an SSH client like PuTTY. You'll need to download that before you get started. You can get it here: http://www.putty.org/
Here's how I got jlesage's crashplan pro docker image up and running on my Synology:
From Synology DSM:
From PuTTY:
From Synology DSM:
From you Web Browser:
I hope this helps you get up and running!
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jlesage/docker-crashplan-pro/issues/34#issuecomment-354888938 , or mute the thread https://github.com/notifications/unsubscribe-auth/Aha2YPXKawAZHkLOgNQQG6H9xqRX8E5nks5tGqmYgaJpZM4RRA40 . https://github.com/notifications/beacon/Aha2YJ8BGk8A8XIdbrrpoQUTv_RrrtAuks5tGqmYgaJpZM4RRA40.gif
Did you type sudo -i
before you ran the docker command?
Great catch…I typed sudo -1, not i.
I’ll try that again.
Brian
From: excalibr18 [mailto:notifications@github.com] Sent: Monday, March 5, 2018 4:09 PM To: jlesage/docker-crashplan-pro docker-crashplan-pro@noreply.github.com Cc: bgmess brian@messhome.com; Author author@noreply.github.com Subject: Re: [jlesage/docker-crashplan-pro] Need basic help with installation - need more details (#34)
Did you type sudo -i before you ran the docker command?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jlesage/docker-crashplan-pro/issues/34#issuecomment-370600592 , or mute the thread https://github.com/notifications/unsubscribe-auth/Aha2YI7IPsmMEorLxjCERHaiWs82m9nHks5tbcVwgaJpZM4RRA40 . https://github.com/notifications/beacon/Aha2YF_mECKMsyHrrh67U0WisB9US8N-ks5tbcVwgaJpZM4RRA40.gif
That worked…thanks.
How do I choose which files on my Nas I want to backup? I seem to be missing that part.
Regards,
Brian
From: excalibr18 [mailto:notifications@github.com] Sent: Monday, March 5, 2018 4:09 PM To: jlesage/docker-crashplan-pro docker-crashplan-pro@noreply.github.com Cc: bgmess brian@messhome.com; Author author@noreply.github.com Subject: Re: [jlesage/docker-crashplan-pro] Need basic help with installation - need more details (#34)
Did you type sudo -i before you ran the docker command?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jlesage/docker-crashplan-pro/issues/34#issuecomment-370600592 , or mute the thread https://github.com/notifications/unsubscribe-auth/Aha2YI7IPsmMEorLxjCERHaiWs82m9nHks5tbcVwgaJpZM4RRA40 . https://github.com/notifications/beacon/Aha2YF_mECKMsyHrrh67U0WisB9US8N-ks5tbcVwgaJpZM4RRA40.gif
You can do that from within the CrashPlan GUI. Log into it via your website browser and look for a button called "Manage Files". From there it will show a directory listing from which you can select from using check boxes.
I can’t thank you enough. Your instructions were perfectly clear, and the process worked flawlessly.
Thanks!
Brian
From: excalibr18 [mailto:notifications@github.com] Sent: Tuesday, March 6, 2018 9:02 AM To: jlesage/docker-crashplan-pro docker-crashplan-pro@noreply.github.com Cc: bgmess brian@messhome.com; Author author@noreply.github.com Subject: Re: [jlesage/docker-crashplan-pro] Need basic help with installation - need more details (#34)
You can do that from within the CrashPlan GUI. Log into it via your website browser and look for a button called "Manage Files". From there it will show a directory listing from which you can select from using check boxes.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jlesage/docker-crashplan-pro/issues/34#issuecomment-370831165 , or mute the thread https://github.com/notifications/unsubscribe-auth/Aha2YN6rb2n8_V6CdbDgTI5dLPHhPq84ks5tbrMHgaJpZM4RRA40 . https://github.com/notifications/beacon/Aha2YF9_30Ulxk3SWVXWhavXazxCJnH6ks5tbrMHgaJpZM4RRA40.gif
Thanks for the article. The description also helped me a lot. Unfortunately, I still have a problem.
I see the "CrashPlan Web GUI Interface" but I can not log in. See photo in the link: Can someone help me? https://www.dropbox.com/s/oqt0mgf3wze9i8z/Ohne%20Titel.jpeg?dl=0
Try following the steps in the Readme section: https://github.com/jlesage/docker-crashplan-pro/blob/master/README.md#device-status-is-waiting-for-connection
Also, make sure you are running the latest version of the container image.
I'm having a problem connecting to the crashplan-pro servers. I get the same message as beBerlin above. I've tried clearing the cache and deleting the appdata directory per other suggestions. I am able to ping the crashplan servers from the NAS. Any other ideas?
Are running the latest version if the image?
Yes.
@beBerlin & @dmase2: 1) Can you confirm you are able to log into CrashPlan's web interface (https://web-eam-msp.crashplanpro.com/login/#/login)?
2) Have you tried completely removing the container and deleting everything within the /docker/appdata/crashplan-pro
folder on the Synology and starting over?
Yes, I have a windows computer that backs up with no problems from the same network. I just confirmed again that I can access the web site with no issues.
I have removed the container and deleted the docker/appdata/crashplan-pro directory with no success.
Just to confirm, I'm on version 6.7.0.4503.
This is my startup script for the container. I'm running it from an SSH connection.
docker run -d --name=crashplan-pro1 -e USER_ID=0 -e GROUP_ID=0 -e CRASHPLAN_SRV_MAX_MEM=3072M -p 5800:5800 -v /volume1/docker/appdata/crashplan-pro:/config:rw -v /volume1/:/volume1:ro jlesage/crashplan-pro
I notice that there is a green unlock icon to the right of the Crashplan for Small Business logo in the upper left is that normal?
I am fairly new to Linux and Docker. I need more instructions that those given in the quick start:
Launch the CrashPlan PRO docker container with the following command:
docker run -d \ --name=crashplan-pro \ -p 5800:5800 \ -p 5900:5900 \ -v /docker/appdata/crashplan-pro:/config:rw \ -v $HOME:/storage:ro \ jlesage/crashplan-pro
Where do I enter the above commands?
Is this all I need to do?
Any tips would be greatly appreciated. Not sure how to begin. I have installed Docker on the Synology NAS, but that's as far as I got.
Thanks, Brian