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

Check on Welsch cron jobs #1105

Closed
Chris-Schnaufer opened this issue Oct 4, 2022 · 7 comments
Closed

Check on Welsch cron jobs #1105

Chris-Schnaufer opened this issue Oct 4, 2022 · 7 comments
Assignees

Comments

@Chris-Schnaufer
Copy link

Make sure the cron jobs are running correctly

@Chris-Schnaufer Chris-Schnaufer self-assigned this Oct 4, 2022
@Chris-Schnaufer
Copy link
Author

There are two problems found with the cron jobs:

  1. the /home/dlebauer/neon-datasets/models/simple/ets_forecast.R script is erroring out
...
Registered S3 method overwritten by 'quantmod':
  method            from
  as.zoo.data.frame zoo 
Error: Problem with `mutate()` input `time`.
✖ Input `time` can't be recycled to size 3240.
ℹ Input `time` is `rep(now + days(1:180), 8)`.
ℹ Input `time` must be size 3240 or 1, not 1440.
Backtrace:
     █
  1. ├─`%>%`(...)
  2. │ ├─base::withVisible(eval(quote(`_fseq`(`_lhs`)), env, env))
  3. │ └─base::eval(quote(`_fseq`(`_lhs`)), env, env)
  4. │   └─base::eval(quote(`_fseq`(`_lhs`)), env, env)
  5. │     └─`_fseq`(`_lhs`)
  6. │       └─magrittr::freduce(value, `_function_list`)
  7. │         └─function_list[[i]](value)
  8. │           ├─dplyr::mutate(., time = rep(now + days(1:180), 8))
  9. │           └─dplyr:::mutate.data.frame(., time = rep(now + days(1:180), 8))
 10. │             └─dplyr:::mutate_cols(.data, ...)
 11. │               ├─base::withCallingHandlers(...)
 12. │               └─mask$eval_all_mutate(dots[[i]])
 13. ├─dplyr:::abort_glue(character(0), list(x_size = 1440L), "dplyr:::mutate_incompatible_size")
 14. │ ├─rlang::exec(abort, class = class, !!!.envir)
 15. │ └─(function (message = NULL, class = NULL, ..., trace = NULL, parent = NULL, ...
 16. │   └─rlang:::signal_abort(cnd)
 17. │     └─base::signalCondition(cnd)
 18. └─(function (e) ...
Execution halted
  1. the BETYdb database associated with REMOTE_SERVERS=1 is no longer available.

@Chris-Schnaufer
Copy link
Author

@dlebauer Any thoughts on what to do with these two findings?

@dlebauer
Copy link
Contributor

dlebauer commented Oct 4, 2022

@Chris-Schnaufer

Once the db is syncing again, this query should return >1:

select count(*) from dbfiles 
   where created_at > '2022-08-01' 
   and id between 1000000000 and 1001000000; 

@Chris-Schnaufer
Copy link
Author

Need to wait to update the database to resolve the update for REMOTE_SERVER=1 issue (PeCAn is being used the week of Octonber 10

@dlebauer
Copy link
Contributor

dlebauer commented Oct 20, 2022

Also todo:

  • update cron jobs to use the most recent version of load.bety.sh, which was moved to the bety repository two years ago: https://github.com/PecanProject/bety/blob/develop/script/load.bety.sh
    • is it worth starting with a fresh wget https://raw.githubusercontent.com/PecanProject/bety/develop/script/load.bety.sh every day?
    • I suspect this is why the REMOTE_SERVER=1 is failing. The location of dumps are now stored in the machines table
  • need to make sure that https://welsch.cyverse.org/pecan/dump/bety.tar.gz is available for others to sync; I can't access it and /root/cron-output/irsync-backups says Level 0: collection is unknown (related?)
  • check other files in /root/cron-output e.g. should backup.bety and dump.bety be empty?

@dlebauer
Copy link
Contributor

Reopening to confirm that:

@Chris-Schnaufer
Copy link
Author

Chris-Schnaufer commented Oct 25, 2022

Closing this issue again since the original task has been completed. Moving these comments to issue #1098 since the changes can't be done until the docker images are brought up to date

  • these steps should be part of that upgrade due to the dependencies (current code is already staged on Welsch)
  • the original task of this issue has been completed - therefore these comments should be in another issue

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

2 participants