Giter Club home page Giter Club logo

Comments (18)

boredazfcuk avatar boredazfcuk commented on May 26, 2024 2

No worries. Knew we'd get there eventually!

from docker-icloudpd.

boredazfcuk avatar boredazfcuk commented on May 26, 2024

Okey dokey. I'm unfamiliar with how the QNAPs work so it may take while to get it working. I haven't actually tested my ARM7 or ARM8 builds, I just kick them out periodically using Docker Desktop on my laptop.

I've got a Raspberry Pi emulator on my laptop which I think is ARM32v7. I'll fire that up, get the container deployed and check it works.

Edit: It's armhf which is v7... Not sure if 32 or 64. I think it's 32 as I'm sure 64 is the aach64

from docker-icloudpd.

maudio691 avatar maudio691 commented on May 26, 2024

I am running
boredazfcuk/icloudpd:arm32v7 the only works to this Qnap NAS ( Annapurna Labs Alpine AL212 Dual-core ARM Cortex-A15 CPU @ 1.70GHz )

from docker-icloudpd.

boredazfcuk avatar boredazfcuk commented on May 26, 2024

Well, I've managed to get the Raspberr Pi emulator running with docker installed and the container created. It's horrifically slow though so I'm going to need to find something else to test with do do anything meaningful. The RPi emulator just bombs out with an error about resizing the tty and there's nothing in the logs.

I'm going to have to see if I can find some other way to test it tomorrow night,

from docker-icloudpd.

maudio691 avatar maudio691 commented on May 26, 2024

Can you test in my machine via teamviewer.

from docker-icloudpd.

boredazfcuk avatar boredazfcuk commented on May 26, 2024

So I've managed to get multi-architecture builds working on my Linux box now.

It means there's no longer separate boredazfcuk/icloudpd:arm32v7 or boredazfcuk/icloudpd:arm64v8 builds. It should fix the issue you were seeing as it was being caused by me building the ARM images on my Windows laptop and it messing with the End-Of-Line characters in my launch script.

The latest boredazfcuk/icloudpd image now contains all three architectures so don't bother specifying a tag.

Give it a blast and let me know.

from docker-icloudpd.

maudio691 avatar maudio691 commented on May 26, 2024

I have started, but there's a issue. When authentification 2FA are complete and the sync message shown the container stops running.

2020-08-25 06:38:56 INFO ***** boredazfcuk/icloudpd container for icloud_photo_downloader started *****
2020-08-25 06:38:56 INFO ***** /usr/local/bin/sync-icloud.sh script version: 2020/08/23_16:21 *****
2020-08-25 06:38:56 INFO Alpine Linux v3.12
2020-08-25 06:38:56 INFO Interactive session: True
2020-08-25 06:38:56 INFO Local user: xxxxx:501
2020-08-25 06:38:56 INFO Local group: admins:1010
2020-08-25 06:38:56 INFO Force GID: False
2020-08-25 06:38:56 INFO LAN IP Address: 10.0.3.6
2020-08-25 06:38:56 INFO Apple ID: [email protected]
2020-08-25 06:38:56 INFO Apple ID password: usekeyring
2020-08-25 06:38:56 INFO Authentication Type: 2FA
2020-08-25 06:38:56 INFO Cookie path: /config/xxxxxxxx
2020-08-25 06:38:56 INFO Cookie expiry notification period: 14
2020-08-25 06:38:56 INFO Download destination directory: /home/dockerhome/iCloud
2020-08-25 06:38:56 INFO Folder structure: {:%Y/%m/%d}
2020-08-25 06:38:56 INFO Directory permissions: 750
2020-08-25 06:38:56 INFO File permissions: 640
2020-08-25 06:38:56 INFO Syncronisation interval: 21600
2020-08-25 06:38:56 INFO Time zone: Europe/Madrid
2020-08-25 06:38:56 INFO Additional command line options: --folder-structure={:%Y} --recent 50 --auto-delete
2020-08-25 06:38:56 INFO Group, admins:1010, already created
2020-08-25 06:38:56 INFO User, xxxxxxxx:501, already created
2020-08-25 06:38:56 INFO Correct owner on config directory, if required
2020-08-25 06:38:56 INFO Correct group on config directory, if required
2020-08-25 06:38:56 INFO Adding password to keyring...
Enter iCloud password for [email protected]:
Save password in keyring? [y/N]: y
2020-08-25 06:39:13 INFO Using password stored in keyring
2020-08-25 06:39:13 INFO Correct owner on config directory, if required
2020-08-25 06:39:13 INFO Correct group on config directory, if required
2020-08-25 06:39:13 INFO Generate 2FA cookie with password: usekeyring
2020-08-25 06:39:13 INFO Check for new files using password stored in keyring...
0: SMS to *******21
1: Enter two-factor authentication code
Please choose an option: [0]: 1
Please enter two-factor authentication code: 138795
2020-08-25 06:39:41 INFO Two factor authentication cookie generated. Sync should now be successful.

from docker-icloudpd.

boredazfcuk avatar boredazfcuk commented on May 26, 2024

Hi, this is to be expected.

The container has two modes. Interactive and non-interactive.

When run interactively, it will only generate the cookie and then quit. When run non-interactively, it will use the cookie to download the photostream.

If your device is forcing interactive mode, like Synology NAS devices do, then you need to tell the script that. There’s a variable called force_interactive (IIRC, check the read.me) which when set, will skip cookie generation and progress to the download.

from docker-icloudpd.

maudio691 avatar maudio691 commented on May 26, 2024

Hi,
Whats the value in the variable "interactive_only" ?

from docker-icloudpd.

boredazfcuk avatar boredazfcuk commented on May 26, 2024

It can be anything you like. I just check whether the variable is present, rather than what that value it holds.

Just set it to be True or something

from docker-icloudpd.

maudio691 avatar maudio691 commented on May 26, 2024

Thank you Boredazfcuk,

But i cannot make it work im so new into this that i am confuse.

2020-08-26 17:51:31 INFO Interactive only mode set, bypassing 2FA cookie generation
2020-08-26 17:51:31 INFO Creating group admins:1010
2020-08-26 17:51:32 INFO Creating user dockerhome:501
2020-08-26 17:51:32 INFO Correct owner on config directory, if required
2020-08-26 17:51:32 INFO Correct group on config directory, if required
2020-08-26 17:51:32 INFO Using password stored in keyring
2020-08-26 17:51:32 ERROR Failsafe file /home/dockerhome/iCloud/.mounted file is not present. Plese check the host's target volume is mounted - retry in 5
minutes
2020-08-26 17:56:32 ERROR Failsafe file /home/dockerhome/iCloud/.mounted file is not present. Plese check the host's target volume is mounted - retry in 5
minutes

I have to configure the PATH?

This QNAP makes the Volume directory automatically to here: /share/CACHEDEV1_DATA/Container/container-station-data/lib/docker/volumes/iCloud/_data

from docker-icloudpd.

boredazfcuk avatar boredazfcuk commented on May 26, 2024

It’s OK. This is to be expected.

You’ll need to browse to the folder where all your files are going to be downloaded, and create a file there called: .mounted

Edit: Looking at the path that’s listed, you might need to create it as:

/share/CACHEDEV1_DATA/Container/container-station-data/lib/docker/volumes/iCloud/_data /home/dockerhome/iCloud/.mounted

I’m just guessing though as I’m unfamiliar with the QNAP devices.

Or it might be that the: /share/CACHEDEV1_DATA/Container/container-station-data/lib/docker/volumes/iCloud/_data directory is actually the config folder. If there’s a file in it that looks like your email address, then the .mounted file needs to be created in a different place

from docker-icloudpd.

boredazfcuk avatar boredazfcuk commented on May 26, 2024

Just had a thought... It may be that you'll probably need to mount two volumes when creating your container. One at /config and the other at /home.

So create two volumes (if you don't haven't already):

docker create volume icloudpd_config
docker create volume icloud_photos

Then create your container like this:

docker create \
   --name icloudpd \
   --hostname icloudpd \
   --restart=always \
   --env [email protected] \
   --env command_line_options=--auto-delete \
   --env TZ=Europe/Madrid \
   --volume icloudpd_config:/config/ \
   --volume icloud_photos:/home/user/iCloud/ \
   boredazfcuk/icloudpd

After that, you should be able to get to the download location on the photos volume with:

cd /share/CACHEDEV1_DATA/Container/container-station-data/lib/docker/volumes/icloudpd_photos/_data/home/user/iCloud/

then just:

touch .mounted

and give it a restart.

from docker-icloudpd.

maudio691 avatar maudio691 commented on May 26, 2024

Hi i have this:

         "Type": "bind",
            "Source": "/share/iclouddocker",
            "Destination": "/config",
            "Mode": "rw",
            "RW": true,
            "Propagation": "rprivate"
        },
        {
            "Type": "volume",
            "Name": "iCloud",
            "Source": "/share/CACHEDEV1_DATA/Container/container-station-data/lib/docker/volumes/iCloud/_data",
            "Destination": "/share/CACHEDEV1_DATA/iclouddocker/Data",
            "Driver": "local",
            "Mode": "rw",
            "RW": true,
            "Propagation": ""

from docker-icloudpd.

maudio691 avatar maudio691 commented on May 26, 2024

I'll make it work somehow!

But nothing is downloaded

2020-08-26 23:01:39 INFO Apple ID: xxxxxxxxxxxxxxx
2020-08-26 23:01:39 INFO Apple ID password: usekeyring
2020-08-26 23:01:39 INFO Authentication Type: 2FA
2020-08-26 23:01:39 INFO Cookie path: /config/xxxxxxxxxxxxx
2020-08-26 23:01:39 INFO Cookie expiry notification period: 7
2020-08-26 23:01:39 INFO Download destination directory: /home/dockerhome/iCloud
2020-08-26 23:01:39 INFO Folder structure: {:%Y/%m/%d}
2020-08-26 23:01:39 INFO Directory permissions: 777
2020-08-26 23:01:39 INFO File permissions: 777
2020-08-26 23:01:39 INFO Syncronisation interval: 10800
2020-08-26 23:01:39 INFO Time zone: Europe/Madrid
2020-08-26 23:01:39 INFO Additional command line options:
2020-08-26 23:01:39 INFO Interactive only mode set, bypassing 2FA cookie generation
2020-08-26 23:01:39 INFO Group, admins:1010, already created
2020-08-26 23:01:39 INFO User, dockerhome:501, already created
2020-08-26 23:01:39 INFO Correct owner on config directory, if required
2020-08-26 23:01:39 INFO Correct group on config directory, if required
2020-08-26 23:01:39 INFO Using password stored in keyring
2020-08-26 23:01:39 INFO Set owner, dockerhome, on iCloud directory, if required
2020-08-26 23:01:39 INFO Set group, admins, on iCloud directory, if required
2020-08-26 23:01:39 INFO Correct owner on icloudpd temp directory, if required
2020-08-26 23:01:39 INFO Correct group on icloudpd temp directory, if required
2020-08-26 23:01:39 INFO Correct owner on config directory, if required
2020-08-26 23:01:39 INFO Correct group on config directory, if required
2020-08-26 23:01:40 INFO Correct owner on keyring directory, if required
2020-08-26 23:01:40 INFO Correct group on keyring directory, if required
2020-08-26 23:01:40 INFO Set 777 permissions on iCloud directories, if required
2020-08-26 23:01:40 INFO Set 777 permissions on iCloud files, if required
2020-08-26 23:01:40 INFO Sync user dockerhome
2020-08-26 23:01:40 INFO Check 2FA Cookie
2020-08-26 23:01:40 INFO Cookie exists, check expiry date
2020-08-26 23:01:40 INFO Valid two factor authentication cookie found. Days until expiration: 89
2020-08-26 23:01:40 INFO Check download directory mounted correctly
2020-08-26 23:01:40 INFO Check for new files using password stored in keyring...

from docker-icloudpd.

boredazfcuk avatar boredazfcuk commented on May 26, 2024

That should be it... If the password in the keyring is OK, it should start downloading files...

from docker-icloudpd.

boredazfcuk avatar boredazfcuk commented on May 26, 2024

It looks something like this:

2020-08-25 10:17:41 INFO     Next syncronisation at 22:17
2020-08-25 22:17:41 INFO     Check 2FA Cookie
2020-08-25 22:17:41 INFO     Cookie exists, check expiry date
2020-08-25 22:17:41 INFO     Valid two factor authentication cookie found. Days until expiration: 79
2020-08-25 22:17:41 INFO     Check download directory mounted correctly
2020-08-25 22:17:41 INFO     Check for new files using password stored in keyring...
/home/boredazfcuk/iCloud/2020/IMG_1787.HEIC
/home/boredazfcuk/iCloud/2020/IMG_1788.HEIC
/home/boredazfcuk/iCloud/2020/IMG_1789.HEIC
/home/boredazfcuk/iCloud/2020/IMG_1790.JPG
/home/boredazfcuk/iCloud/2020/IMG_1786.HEIC
2020-08-25 22:18:10 INFO     Check successful
2020-08-25 22:18:10 INFO     Check detected 5 files requiring download. Verifying list accuracy
2020-08-25 22:18:10 INFO     Ignoring 0 files which have already been downloaded
2020-08-25 22:18:10 INFO     New files detected: 5
2020-08-25 22:18:10 INFO     Starting download of 5 new files for user: boredazfcuk
2020-08-25 22:18:10 INFO     Downloading new files using password stored in keyring...
2020-08-25 22:18:11 DEBUG    Authenticating...
2020-08-25 22:18:15 DEBUG    Looking up all photos and videos from album All Photos...
2020-08-25 22:18:15 INFO     Downloading 752 original photos and videos to /home/boredazfcuk/iCloud/ ...
2020-08-25 22:18:18 INFO     /home/boredazfcuk/iCloud/2020/IMG_1778.HEIC already exists.
2020-08-25 22:18:18 INFO     /home/boredazfcuk/iCloud/2020/IMG_1770.HEIC already exists.
2020-08-25 22:18:18 INFO     /home/boredazfcuk/iCloud/2020/IMG_1769.HEIC already exists.
2020-08-25 22:18:18 INFO     /home/boredazfcuk/iCloud/2020/IMG_1774.HEIC already exists.
2020-08-25 22:18:18 INFO     /home/boredazfcuk/iCloud/2020/IMG_1768.HEIC already exists.
2020-08-25 22:18:18 INFO     /home/boredazfcuk/iCloud/2020/IMG_1773.HEIC already exists.

from docker-icloudpd.

maudio691 avatar maudio691 commented on May 26, 2024

Thank you very much and to your patience now it works!

from docker-icloudpd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.