-
Notifications
You must be signed in to change notification settings - Fork 0
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
Node.js script tries to run mongodump
(nonexistent in app
container)
#220
Comments
Looks to me like that command dumps the One concern I have about that is that having colons in a filename may lead to issues in some operating systems (for example, I don't think it's valid in Windows). I'd recommend using underscores, hyphens, or nothing; e.g. |
The file nmdc-edge/webapp/server/cronserver.js Lines 73 to 80 in bdf4e33
The server's nmdc-edge/webapp/server/config.js Lines 113 to 114 in bdf4e33
In English, those schedules are:
|
mongodump
mongodump
(nonexistent in app
container)
For the # Install dependencies.
apt update
apt install -y cron nano
# Add the job description to the cron table.
echo '0 1 * * * mongodump --authenticationDatabase admin --username' "${MONGO_INITDB_ROOT_USERNAME}" '--password' "${MONGO_INITDB_ROOT_PASSWORD}" '--db nmdcedge --out "/tmp/db-backup_`date +\%Y\%m\%d_\%H\%M`" >> /tmp/backups_cronjob.log 2>&1' | crontab -
# Restart the cron service (is this necessary?)
service cron start
The container will execute that script upon its startup, according to the "Initializing a fresh instance" section of the container image docs. |
@eecavanna who is this assigned to? Is it being worked on this week? |
Hi @ssarrafan, it isn't assigned to anyone currently. I'll assign it to myself. I don't expect to work on it any more this week. I'll move it to the next sprint, as I do plan to continue working on it again within the next couple weeks. At some point (depending upon what the remainder of my digging uncovers), I may reassign it or spin part of it off into a separate ticket. |
@eecavanna would you be ok with me moving anything not Berkeley refactor to the next sprint? Like this issues, seems like this could wait. |
Hi @ssarrafan, yes on this particular issue. I'll move it now. There are things I want to do that aren't Berkeley Schema Roll Out-related, next Wednesday-Friday. |
The web server application tries to run
mongodump
.nmdc-edge/webapp/server/crons/dbBackup.js
Line 11 in 7bcee5b
The container in which the web app is running does not include
mongodump
.Here's a snippet from the logs of the
app
container on Jetstream2:The text was updated successfully, but these errors were encountered: