You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dear Creators,
First of all thank you to have develop this amazing package.
I have a virtual machine set up to be able to access google earth engine using the rgee package
Before to start the authentication with google earth engine i would like to authenticate me by using the googledrive R package, because i will store all the data inside of it.
when I run the code manually it works perfectly but when I run a cron jobs with the cronr package the code gives me the following error.
<error/rlang_error>
Error in `googledrive::drive_auth()`:
! Can't get Google credentials.
ℹ Are you running googledrive in a non-interactive session? Consider:
• Call `drive_deauth()` to prevent the attempt to get credentials.
• Call `drive_auth()` directly with all necessary specifics.
ℹ See gargle's "Non-interactive auth" vignette for more details:
ℹ <https://gargle.r-lib.org/articles/non-interactive-auth.html>
while when I run the code manually this is the result
> googledrive::drive_auth(email ="[email protected]")
trying `token_fetch()`
Trying `credentials_byo_oauth()` ...
Error caught by `token_fetch()`:
inherits(token, "Token2.0") is not TRUE
trying `credentials_service_account()`
Error caught by `token_fetch()`:
Argument 'txt' must be a JSON string, URL or file.
trying `credentials_external_account()`
aws.ec2metadata not installed; can't detect whether running on EC2 instance
trying `credentials_app_default()`
Trying `credentials_gce()` ...
✖ We don't seem to be on GCE.
trying `credentials_user_oauth2()`
attempt to access internal gargle data from: googledrive
Gargle2.0 initialize
adding "userinfo.email" scope
loading token from the cache
email: [email protected]
oauth client name: tidyverse-erato
oauth client name: web
oauth client id: 603366585132-frjlouoa3s2ono25d2l9ukvhlsrlnr7k.apps.googleusercontent.com
scopes: ...drive, ...userinfo.email
token(s) found in cache:
[email protected]
token we are looking for:
[email protected]
matching token found in the cache
> rgee::ee_Initialize(drive=T,
+ user="[email protected]",
+ auth_quiet = T)
── rgee 1.1.7 ─────────────────────────────────────────────────────────────────────────────── earthengine-api 0.1.364 ──
✔ user: [email protected]
✔ Google Drive credentials:Auto-refreshing stale OAuth token.
putting token into the cache:
/home/agronomofiorentini/.config/earthengine//[email protected]
✔ Google Drive credentials: FOUND
✔ Initializing Google Earth Engine: DONE!
✔ Earth Engine account: users/useremail
✔ Python Path: /usr/bin/python3
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
How can i fix this?
this is the code that i am using to autheticate me
Dear Creators,
First of all thank you to have develop this amazing package.
I have a virtual machine set up to be able to access google earth engine using the rgee package
Before to start the authentication with google earth engine i would like to authenticate me by using the googledrive R package, because i will store all the data inside of it.
when I run the code manually it works perfectly but when I run a cron jobs with the cronr package the code gives me the following error.
while when I run the code manually this is the result
How can i fix this?
this is the code that i am using to autheticate me
This is my r session info
I have tried also to use the token and save it as RDS and load when the cron job start, but dind't work.
If you need more information, i am here always available.
Thanks again
The text was updated successfully, but these errors were encountered: