boredazfcuk / docker-icloudpd

An Alpine Linux container for the iCloud Photos Downloader command line utility
1.83k stars 166 forks source link

Generating new 2FACookie on Synology #60

Closed plcexchange closed 3 years ago

plcexchange commented 3 years ago

Hello; I have been using your amazing container for a little over 3 months now with the 2FA method. My cookie finally expired and I didn't notice until looking in the logs and seeing this:

2021-03-07 03:33:20 INFO Cookie exists, check expiry date 2021-03-07 03:33:20 INFO Valid two factor authentication cookie found. Days until expiration: -3

Repeats 20x a second or more.

I have tried to invoke:

docker exec -it icloudpd /usr/local/bin/sync-icloud.sh --Generate2FACookie

multiple different ways with "interactive_only" set to "true" and "false" and none of them prompt the ability to reenter the password to generate a new 2FA key.

What am I missing here? any tips? I have also tried completely removing the /config directory to try to start from scratch but it still wont prompt generation of a new 2FA key.

plcexchange commented 3 years ago

Ok I will close this myself; I found the answer in a different close issue/ticket. I was using a pre-2021 image and there apparently was a issue with the sync script and/or the integration with Synology which is now fixed (for me) as of the March 2021 version.

Thanks again for everything.

boredazfcuk commented 3 years ago

Hi, glad you got it working. Sorry for not getting back sooner. Had a busy day and sold a couple of GPUs on eBay so made a couple of videos of them working and being packaged up for posting tomorrow... glad you managed to solve your issue.

Question for you though... Would you recommend a Synology? I've been on the verge of buying an 8-bay DS1819+ to replace two home built Linux NAS/Servers I have in my attic. On hot days I have to shut them down so something that small would be handy as it would fit on top of my fridge. Only thing I'm unsure about it having one device replace two. If the array dies I could lose the lot. Do you know if it's possible to set up two pools and have one backup to the other? Also, can I take disk pools out an stick them in a Linux machine to access data?

I should probably just give their sales guys a call instead lol

plcexchange commented 3 years ago

Hi, glad you got it working. Sorry for not getting back sooner. Had a busy day and sold a couple of GPUs on eBay so made a couple of videos of them working and being packaged up for posting tomorrow... glad you managed to solve your issue.

Question for you though... Would you recommend a Synology? I've been on the verge of buying an 8-bay DS1819+ to replace two home built Linux NAS/Servers I have in my attic. On hot days I have to shut them down so something that small would be handy as it would fit on top of my fridge. Only thing I'm unsure about it having one device replace two. If the array dies I could lose the lot. Do you know if it's possible to set up two pools and have one backup to the other? Also, can I take disk pools out an stick them in a Linux machine to access data?

I should probably just give their sales guys a call instead lol

So I love my Synology (older 4-bay DS416play). It does almost every server function in the world 95%. It is mostly my home media server/backup station that I have recently deployed some production docker on. After about 6 months of that I am now moving all the docker back off to be put on a dedicated server (mostly due to demand) and will bring it back to backup/home media server tasks only. I do not know much about the DS1819+ but I am limited to 8 GB of ram so I keep the load light. I would love for it to be able to host some VM servers though. I have 4x drives and 2x storage pools (one pool for cameras and one pool for data) both are RAID 1 . I made the mistake once of calling that "backup" on the synology reddit forms and got eaten alive. I have since learned that no form of backup is acceptable if they are physically the same machine/device/location; so I backup my data storage pool to a cloud service every night to complete my off-site backup; its really cheap to be honest. I use backblaze and its about $8/mo for around 3 TB of legit data (photos backed by your container, business docs, important docs, etc)

As far as recovery, the drives use the btrfs file system and it looks like it IS possible to mount them outside of your synology* **but it looks to be a very manual process and not something I would try unless I was trying to save pictures from my child's birth lol But as far as backup, I don't know if you can backup from one pool to the other (I am sure you can, but why?) but I use a program called hyperbackup that automatically uploads my entire drive contents (the changes really) to my cloud storage and keeps a daily snapshot for a year. Highly recommended. I also have versioning enabled that takes snapshots every hour / day / month / year so I can also go back locally to a file change made long ago if I even needed.... all done inside native to synology

oh an one last thing, you mentioned GPU sells on eBay.... I have a service that lets you watch GPUS for sale on something like bestbuy and I can text you within 60 seconds of it going back in stock... let me know if you are interested its a good way to pick up some GPU's to resell :)

boredazfcuk commented 3 years ago

Thanks for getting back to me. I've since seen that there's a DS1921+ which has 8-bays, 2x M2 storage, up to 32GB RAM, and PCI-E for 10GBE! I think. It looks like a real nice bit of kit. I'm so, so tempted.

I do have 500GB of pCloud storage for all my critical stuff which should do. I do need sideways backup on it though, rather than RAID... Too many times I've sync'd a dismounted folder and deleted GBs of data off my current server. RAID doesn't protect me from my own stupidity!

I'm just selling the 6x GTX 1070s out of my mining rig because eletric got too expensive. The two I've sold already went for very nearly as much as I paid for them four years ago! That service would definitely be interesting though, I have gamer friends who have been trying to get hold of 3080s but with no luck. Does it work for the UK? And can it track a PS5 for my kids? lol

plcexchange commented 3 years ago

Hey yeah you can use it to track anything, I have a few people watching PS5 now.... I only have it enabled for the US (for text messages) but I would love to try it out for somebody in the UK; as long as the rates for text messages are similar it really as simple as enabling more countries ; send me a separate email at support@plcexchange.net and I can exchange setting you up for free if you help me enable Europe based phone numbers (really just need you to confirm you get the single text message and check costs on my end; should be free for you)

On Mon, Mar 8, 2021 at 3:24 PM boredazfcuk notifications@github.com wrote:

Thanks for getting back to me. I've since seen that there's a DS1921+ which has 8-bays, 2x M2 storage, up to 32GB RAM, and PCI-E for 10GBE! I think. It looks like a real nice bit of kit. I'm so, so tempted.

I do have 500GB of pCloud storage for all my critical stuff which should do. I do need sideways backup on it though, rather than RAID... Too many times I've sync'd a dismounted folder and deleted GBs of data off my current server. RAID doesn't protect me from my own stupidity!

I'm just selling the 6x GTX 1070s out of my mining rig because eletric got too expensive. The two I've sold already went for very nearly as much as I paid for them four years ago! That service would definitely be interesting though, I have gamer friends who have been trying to get hold of 3080s but with no luck. Does it work for the UK? And can it track a PS5 for my kids? lol

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/boredazfcuk/docker-icloudpd/issues/60#issuecomment-793050663, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASQ46DRVA4EUNI2PILSKYWTTCUXAZANCNFSM4YX4HXEA .

-- PLC Exchange P.O Box 44481 Charlotte, NC 28215

https://www.plcexchange.net