Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Container exits after attempting 1 photo #28

Open
sean1516 opened this issue May 29, 2020 · 6 comments
Open

Container exits after attempting 1 photo #28

sean1516 opened this issue May 29, 2020 · 6 comments

Comments

@sean1516
Copy link

crond[198]: crond (busybox 1.31.1) started, log level 6 [services.d] done. INFO: Starting sync.sh PID 208 Fri May 29 14:31:22 UTC 2020 2020/05/29 14:31:22 Session Dir: /tmp/gphotos-cdp 2020/05/29 14:31:22 pre-navigate 2020/05/29 14:31:26 post-navigate 2020/05/29 14:31:27 Page loaded, most recent item in the feed is: AF1QipPMyx6SD5ntf3vOiWHpjFuTL4HtRE9eyhWEJnAY 2020/05/29 14:31:29 Event: {Type:keyDown Modifiers:Shift Timestamp:<nil> Text: UnmodifiedText: KeyIdentifier: Code:KeyD Key:D WindowsVirtualKeyCode:68 NativeVirtualKeyCode:68 AutoRepeat:false IsKeypad:false IsSystemKey:false Location:0} 2020/05/29 14:31:29 Event: {Type:keyUp Modifiers:Shift Timestamp:<nil> Text: UnmodifiedText: KeyIdentifier: Code:KeyD Key:D WindowsVirtualKeyCode:68 NativeVirtualKeyCode:68 AutoRepeat:false IsKeypad:false IsSystemKey:false Location:0} 2020/05/29 14:31:30 ERROR: unhandled page event *page.EventDownloadWillBegin 2020/05/29 14:31:30 Marking https://photos.google.com/photo/AF1QipPMyx6SD5ntf3vOiWHpjFuTL4HtRE9eyhWEJnAY as done 2020/05/29 14:31:30 Running /app/fix_time.sh on /download/AF1QipPMyx6SD5ntf3vOiWHpjFuTL4HtRE9eyhWEJnAY/IMG_1587.HEIC Unable to set file mtime. Unsupported file extension: heic OK INFO: Completed sync.sh PID 208 Fri May 29 14:31:30 UTC 2020 [cmd] /app/sync.sh exited 0 [cont-finish.d] executing container finish scripts... [cont-finish.d] done. [s6-finish] waiting for services. [s6-finish] sending all processes the TERM signal. [s6-finish] sending all processes the KILL signal and exiting.

Everything seems to be set up correctly just fails after this 1 photo constantly

@madisonlurker
Copy link

same issue on my end when i do "go run main.go" at the command prompt after downloading gphotos-cdp

@benklop
Copy link

benklop commented Nov 5, 2020

I seem to also be running into this.

The error in the log looks to be ERROR: unhandled page event *page.EventDownloadWillBegin

@TomDeSchutter
Copy link

I seem to also be running into this.

The error in the log looks to be ERROR: unhandled page event *page.EventDownloadWillBegin

Seconded.

@bogdan-h
Copy link

Got the same error - here is the last couple of lines form the console :

2020/12/10 23:47:45 Event: {Type:keyUp Modifiers:Shift Timestamp:<nil> Text: UnmodifiedText: KeyIdentifier: Code:KeyD Key:D WindowsVirtualKeyCode:68 NativeVirtualKeyCode:68 AutoRepeat:false IsKeypad:false IsSystemKey:false Location:0}
2020/12/10 23:47:46 ERROR: unhandled page event *page.EventDownloadWillBegin
2020/12/10 23:48:47 hit deadline while downloading in "/download"
[cmd] /app/sync.sh exited 1
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.
[s6-finish] sending all processes the KILL signal and exiting.
PS C:\WINDOWS\system32>

I'm not sure what the 'deadline' means (notice the third line in the console above) ,but the script stops after 6 minutes (start 23:42 - stop 23:48). The stop time you can see in the first console output and the start in the one below :

PS C:\WINDOWS\system32> docker run -it --rm -v THIS-IS-MY-CONFIG-PATH:/tmp/gphotos-cdp -v THIS-IS-MY-DOWNLOAD-PATH:/download jakewharton/gphotos-sync /app/sync.sh
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 10-adduser.sh: executing...

Initializing container

User uid: 1001
User gid: 1001

[cont-init.d] 10-adduser.sh: exited 0.
[cont-init.d] 20-cron.sh: executing...

Not running in cron mode

[cont-init.d] 20-cron.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
crond[196]: crond (busybox 1.31.1) started, log level 6
[services.d] done.
INFO: Starting sync.sh PID 207 Thu Dec 10 23:42:13 UTC 2020
2020/12/10 23:42:13 Session Dir: /tmp/gphotos-cdp
2020/12/10 23:42:15 pre-navigate
2020/12/10 23:42:21 post-navigate
2020/12/10 23:42:21 Page loaded, most recent item in the feed is: AF1QipOlA3WvMxT4BrIipAn9Dv5yUJiVG5g4hkp4rxTT

@JakeWharton
Copy link
Owner

@bogdan-h Usually that means a broken file that will never download. Navigate to Google Photos, find the associated photo ID, and delete it. This will unblock the script. To confirm you can try downloading it from your browser. It should never actually download.

@andyseubert
Copy link

I am having a similar issue
INFO: Starting sync.sh PID 220 Tue Feb 1 16:48:49 UTC 2022
2022/02/01 16:48:50 Session Dir: /tmp/gphotos-cdp
2022/02/01 16:48:51 pre-navigate
2022/02/01 16:48:53 post-navigate
2022/02/01 16:48:54 Page loaded, most recent item in the feed is: AF1QipMn-Yn4xDKqQlhagMm-yZXwJXl65NSa6sq3074G
2022/02/01 16:48:55 Event: {Type:keyDown Modifiers:Shift Timestamp: Text: UnmodifiedText: KeyIdentifier: Code:KeyD Key:D WindowsVirtualKeyCode:68 NativeVirtualKeyCode:68 AutoRepeat:false IsKeypad:false IsSystemKey:false Location:0}
2022/02/01 16:48:55 Event: {Type:keyUp Modifiers:Shift Timestamp: Text: UnmodifiedText: KeyIdentifier: Code:KeyD Key:D WindowsVirtualKeyCode:68 NativeVirtualKeyCode:68 AutoRepeat:false IsKeypad:false IsSystemKey:false Location:0}
2022/02/01 16:48:55 ERROR: unhandled page event *page.EventDownloadWillBegin
2022/02/01 16:48:56 Marking https://photos.google.com/photo/AF1QipMe5SZcp8niqHx8JuC7LgnxUkPKPuSKqzwiuG5T as done
2022/02/01 16:48:56 Running /app/fix_time.sh on /download/AF1QipMe5SZcp8niqHx8JuC7LgnxUkPKPuSKqzwiuG5T/035.jpg
/download/AF1QipMe5SZcp8niqHx8JuC7LgnxUkPKPuSKqzwiuG5T/035.jpg
2022/02/01 16:49:56 error at https://photos.google.com/photo/AF1QipMe5SZcp8niqHx8JuC7LgnxUkPKPuSKqzwiuG5T: timeout waiting for left navigation

it's timing out waiting for left navigation and

I have already deleted the image from google photos, but the link there still brings up the photo.
Is there a way to tell the script to skip that one and move on?
The photo has actually been downloaded successfully.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants