-
Notifications
You must be signed in to change notification settings - Fork 185
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
cron "15 1 * * *" triggers twice a day at 0100 and 0115 #219
Comments
incase log is helpful
|
Something is broken about the cron calculation, specifically in that scenario. Those cron calculations in shell have been enormously painful since the very beginning. |
yeah, it was very surprisingly for me to see the whole cron stuff implemented by shell scripts. |
Haha, try maintaining it! 😆 I have an implementation in go, it is pretty close to ready. Hoping to switch soon. |
Oh searching github because i have the same problem ! Thanks, will turn DB_DUMP_BEGIN and DB_DUMP_FREQ settings too ! |
Tried several routines (environment variables: CRON_SCHEDULE, DB_DUMP_CRON; config file), to get build in scheduler working, but none gives success, no output file! |
Highly recommend the go-based on |
Dear Avi,
dump does not work with rc4:
Attaching to database-backup-1
database-backup-1 | time="2024-07-15T13:08:30+02:00" level=info msg="beginning dump 2024-07-15T13:08:30+02:00"
database-backup-1 | Error: error running command: error running command: error running dump: failed to dump database: failed to dump database pimcore: template: mysqldumpTable:9:3: executing "mysqldumpTable" at <.CreateL>: error calling CreateSQL: sql: expected 4 destination arguments in Scan, not 2
database-backup-1 | time="2024-07-15T13:09:11+02:00" level=fatal msg="error running command: error running command: error running dump: failed to dump database: failed to dump database pimcore: template: mysqldumpTable:3: executing \"mysqldumpTable\" at <.CreateSQL>: error calling CreateSQL: sql: expected 4 destination arguments in Scan, not 2"
database-backup-1 exited with code 0
whereas restore does not work with master:
time="2024-07-12T12:51:39Z" level=info msg="beginning restore" run=f2cbc128-f9d5-4776-a13a-27fd77bce8b9
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x20 pc=0xb1efb6]
goroutine 1 [running]:
github.com/databacker/mysql-backup/cmd.restoreCmd.func2(0xc0001fc300, {0xc0001e7560, 0x1, 0xc837a2?})
/src/mysql-backup/cmd/restore.go:118 +0x836
github.com/spf13/cobra.(*Command).execute(0xc0001fc300, {0xc0001e7500, 0x3, 0x3})
***@***.***/command.go:983 +0xabc
github.com/spf13/cobra.(*Command).ExecuteC(0xc000005b00)
***@***.***/command.go:1115 +0x3ff
github.com/spf13/cobra.(*Command).Execute(...)
***@***.***/command.go:1039
github.com/databacker/mysql-backup/cmd.Execute()
/src/mysql-backup/cmd/root.go:225 +0x65
main.main()
/src/mysql-backup/main.go:8 +0xf
So for dumping I have to use master and for restoring v1.0.0-rc4
Best regards, Holger
Von: Avi Deitcher ***@***.***>
Gesendet: Freitag, 12. Juli 2024 14:30
An: databacker/mysql-backup ***@***.***>
Cc: topsnet-holgerd ***@***.***>; Comment ***@***.***>
Betreff: Re: [databacker/mysql-backup] cron "15 1 * * *" triggers twice a day at 0100 and 0115 (Issue #219)
Highly recommend the go-based on 1.0.0-rc* (take the latest) over the shell based. The shell based one is not being supported any more. The only thing holding back from making the 1.0.0 GA is some of the config file reading via openapi3.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
@topsnet-holgerd if you are having specific dump or restore issues, please open separate issues for each one. Based on what you are saying, dump works on master, which means that whatever it was in rc4 has since been fixed. If you can reproduce it, please open a new issue describing exactly how to recreate it. For the restore, that looks like a real issue. Please open a new one, describe exactly how to reproduce it. |
i did a test on cron="15 13 * * *", now="1675915800" or "Thu Feb 09 2023 12:10:00 GMT+0800"
function
wait_for_cron '15 13 * * *' 1675915800 0
returns 3000, which is 50mins
65mins is expected.
issue occurs on both v0.11.0 and master.
The text was updated successfully, but these errors were encountered: