boredazfcuk / docker-icloudpd

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

ERROR No route to icloud.com.cn found. When enable icloud_china #467

Closed languede closed 7 months ago

languede commented 9 months ago

ERROR No route to icloud.com.cn found Please check your container's network settings.

logs

...

2024-01-02 20:05:10.666734+08:00 2024-01-02 20:05:10 INFO Alpine Linux 3.19.0 2024-01-02 20:05:10.670404+08:00 2024-01-02 20:05:10 INFO Python version: 3.11.6 2024-01-02 20:05:10.761233+08:00 2024-01-02 20:05:10 INFO Loading configuration from: /config/icloudpd.conf 2024-01-02 20:05:15.810793+08:00 2024-01-02 20:05:15 ERROR No route to icloud.com.cn found. Please check your container's network settings - exiting 2024-01-02 20:05:15.814388+08:00 2024-01-02 20:05:15 ERROR Error debug - traceroute: bad address 'icloud.com.cn' ...

Description

I was install it as Kubernetes Helm chart on Truenas Scale.

Edit:

The sync-icloud --Initialise.sh also raise ERROR No route to icloud.com.cn found Please check your container's network settings error, even if I set auth_china to false, it still shows No route to icloud.com.cn found

boredazfcuk commented 9 months ago

The icloudpd container first checks that it can get an IP address for icloud.com/icloud.com.cn

If it is successful, it attempts a traceroute to icloud.com/icloud.com.cn

The error message you have reported is because it cannot connect to icloud.com/icloud.com.cn

Check the /tmp/icloudpd/icloudpd_tracert.err file for further information.

languede commented 9 months ago

The icloudpd container first checks that it can get an IP address for icloud.com/icloud.com.cn

If it is successful, it attempts a traceroute to icloud.com/icloud.com.cn

The error message you have reported is because it cannot connect to icloud.com/icloud.com.cn

Check the /tmp/icloudpd/icloudpd_tracert.err file for further information.

from /tmp/icloudpd/icloudpd_tracert.err

traceroute: socket(AF_INET,3,1): Operation not permitted
theikid commented 7 months ago

I actually have the same issue with the app running on truenas scale. I can trace route to iCloud.com from my shell but got this error from the container. I don't have any network issues with other apps so I'm wondering if I need to configure something special for that specific container ?

StevenMcElligott commented 7 months ago

The container needs some elevated privileges to run inside the TrueCharts Helm Chart, you can file a bug report on the TrueCharts repo -> https://github.com/truecharts/charts/issues/new/choose

I actually have the same issue with the app running on truenas scale. I can trace route to iCloud.com from my shell but got this error from the container. I don't have any network issues with other apps so I'm wondering if I need to configure something special for that specific container ?