pageauc / pi-timolo

Raspberry PI-TIMOLO ( PI-TImelapse, MOtion, LOwLight ) uses RPI picamera and OpenCV for Remote Headless Security Monitoring using Motion Tracking, Rclone Auto Sync files with remote storage services. Auto Twilight Transitions and Low Light Camera Settings. Panoramic images using PanTiltHat and More. This project is featured on GitHub Awesome software.
MIT License
549 stars 101 forks source link

unable to pull files #21

Closed cowk1ng closed 7 years ago

cowk1ng commented 7 years ago

I get an error when trying to pull files from my drive,

It says that it "failed for url "https://googledrive.com/host/[jibberish]". StatusCode: 404

It will pull the file name, but the file is 0 bytes.

Is there an update needed? How could I get that? Any ideas would be appreciated. Thanks.

pageauc commented 7 years ago

Just tried accessing my my remote camera data that is 3000 km away and gdrive web shows the latest files. 404 error indicates host not found. I tried the DNS entry you gave above and it does fail with a 404 error. My gdrive browser url is similar to this https://drive.google.com/drive/u/0/ It does not have host entry in the URL anywhere..
I suggest you try upgrading pi-timolo per instructions here https://github.com/pageauc/pi-timolo/wiki/How-to-Install-or-Upgrade Try setting up security token again per wiki here. https://github.com/pageauc/pi-timolo/wiki/How-to-Setup-pi-timolo-gdrive-sync

I just did the steps above on a fresh Raspbian Jessie Pi 3 and it worked with NO problem. So try repeating the setup and let me know what the status is. My remote machine is an older Raspbian build on an older original RPI so version does not seem to be an issue. Also are you trying to use sync.sh? If not then provide the push command you are trying.

Claude ..

cowk1ng commented 7 years ago

Hello thank you for your quick response. I did both of the steps suggested, it seemed to update without any errors, I did the security token again and it worked without errors. But unfortunately it seems it isn't helping.

I did bump into this thread under "odeke-em/drive", I'm not sure how similar drive and gdrive are, they seem identical, but for different versions of linux, correct me if I'm wrong. I am having the exact same problem that they are having https://github.com/odeke-em/drive/issues/764 although I can't use the same solution that they are using. Thank you for your help.

-Peter

pageauc commented 7 years ago

I have updated pi-timolo gdrive to latest version 0.3.8.1 of drive_armv6 from https://github.com/odeke-em/drive/releases

I have tested pi-timolo sync.sh and it works OK although the older version also worked OK as well. You may wish to run pi-timolo install again per https://github.com/pageauc/pi-timolo. Please note I call my version gdrive but it is the same version as on odeke-em github. More info on the wiki https://github.com/pageauc/pi-timolo/wiki/How-to-Setup-pi-timolo-gdrive-sync

Let me know if this resolves your issue

pageauc commented 7 years ago

I have updated sync.sh to version 1.7 There were a few fix ups and a few bug fixes. I have tested and all seems well. Please let me know if you are still experiencing issues.

cowk1ng commented 7 years ago

Thank you for the update, the pull request works now. That seems to have fixed the problem! Thanks again.

pageauc commented 7 years ago

I have issued release 1.9 of sync.sh. This version has better error checking and will create a remote folder if one does not already exist. Not sure why remote folder is not automatically created since this worked in earlier versions of drive. At any rate this version should be better.

pageauc commented 7 years ago

I have updated pi-timolo gdrive to latest version 0.3.8.1 of gdrive_armv6 from https://github.com/odeke-em/drive/releases

I have tested pi-timolo sync.sh and it works OK although the older version also worked OK as well. You may wish to run pi-timolo install again per https://github.com/pageauc/pi-timolo. Please note I call my version gdrive but it is the same version as on odeke-em github. More info on the wiki https://github.com/pageauc/pi-timolo/wiki/How-to-Setup-pi-timolo-gdrive-sync

On Sat, Oct 22, 2016 at 5:08 AM, Claude Pageau pageauc@gmail.com wrote:

gdrive 2.8 is just my name for the RPI version that was compiled by odeke. Yes they are the same. Since I don't need all the latest features my 2.8 version works OK for pi-timolo. There was a recent Internet Denial of Service so maybe that might be part of the problem. Otherwise I cannot recreate your problem on an older existing or new install. Let me know status. Claude ...

On Fri, Oct 21, 2016 at 11:43 PM, cowk1ng notifications@github.com wrote:

Hello thank you for your quick response. I did both of the steps suggested, it seemed to update without any errors, I did the security token again and it worked without errors. But unfortunately it seems it isn't helping.

I did bump into this thread under "odeke-em/drive", I'm not sure how similar drive and gdrive are, they seem identical, but for different versions of linux, correct me if I'm wrong. I am having the exact same problem that they are having odeke-em/drive#764 https://github.com/odeke-em/drive/issues/764 although I can't use the same solution that they are using. Thank you for your help.

-Peter

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/pageauc/pi-timolo/issues/21#issuecomment-255505215, or mute the thread https://github.com/notifications/unsubscribe-auth/AFr1ZIMjhZMiS7B-fP4rE4E-848J8g8Gks5q2YZ_gaJpZM4Kdb7m .

See my YouTube Channel at http://www.youtube.com/user/pageaucp

See my YouTube Channel at http://www.youtube.com/user/pageaucp

pageauc commented 7 years ago

sync.sh ver 1.9 has been updated with better error checking. Check to see if you have that version. It will automatically create a remote folder based on the local one if it does not exist. I had to do this because the previous version of gdrive worked differently than the new one.

Let me know if you have more issues. I have updated the wiki regarding these changes. Also there is an drive_armv7 for Raspberry Pi 3 and B+ but the armv6 works fine so I only used the armv6 version. This is also mentioned in the wiki.

Claude ...

On Sat, Oct 22, 2016 at 9:11 AM, cowk1ng notifications@github.com wrote:

Thank you for the update, the pull request works now. That seems to have fixed the problem! Thanks again.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/pageauc/pi-timolo/issues/21#issuecomment-255527564, or mute the thread https://github.com/notifications/unsubscribe-auth/AFr1ZEpdIUcPM3dWq6TEVlBNHj0U883-ks5q2gt3gaJpZM4Kdb7m .

See my YouTube Channel at http://www.youtube.com/user/pageaucp

pageauc commented 7 years ago

gdrive 2.8 is just my name for the RPI version that was compiled by odeke. Yes they are the same. Since I don't need all the latest features my 2.8 version works OK for pi-timolo. There was a recent Internet Denial of Service so maybe that might be part of the problem. Otherwise I cannot recreate your problem on an older existing or new install. Let me know status. Claude ...

On Fri, Oct 21, 2016 at 11:43 PM, cowk1ng notifications@github.com wrote:

Hello thank you for your quick response. I did both of the steps suggested, it seemed to update without any errors, I did the security token again and it worked without errors. But unfortunately it seems it isn't helping.

I did bump into this thread under "odeke-em/drive", I'm not sure how similar drive and gdrive are, they seem identical, but for different versions of linux, correct me if I'm wrong. I am having the exact same problem that they are having odeke-em/drive#764 https://github.com/odeke-em/drive/issues/764 although I can't use the same solution that they are using. Thank you for your help.

-Peter

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/pageauc/pi-timolo/issues/21#issuecomment-255505215, or mute the thread https://github.com/notifications/unsubscribe-auth/AFr1ZIMjhZMiS7B-fP4rE4E-848J8g8Gks5q2YZ_gaJpZM4Kdb7m .

See my YouTube Channel at http://www.youtube.com/user/pageaucp