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

Docker cronjob not working #1881

Closed
johncadengo opened this issue Mar 9, 2021 · 1 comment
Closed

Docker cronjob not working #1881

johncadengo opened this issue Mar 9, 2021 · 1 comment

Comments

@johncadengo
Copy link

Using defaults with the docker compose, and here are my error logs:

➜  seaweedfs docker logs seaweedfs_cronjob_1  
Running Crontab:
*/2 * * * * * echo "volume.fix.replication" | weed shell -master=master:9333
*/2 * * * * * echo "volume.balance -c ALL -force" | weed shell -master=master:9333
time="2021-03-09T23:45:03Z" level=info msg="read crontab: /crontab"
time="2021-03-09T23:46:00Z" level=info msg=starting iteration=0 job.command="echo \"volume.balance -c ALL -force\" | weed shell -master=master:9333" job.position=1 job.schedule="*/2 * * * * *"
time="2021-03-09T23:46:00Z" level=info msg=starting iteration=0 job.command="echo \"volume.fix.replication\" | weed shell -master=master:9333" job.position=0 job.schedule="*/2 * * * * *"
time="2021-03-09T23:46:00Z" level=info channel=stderr iteration=0 job.command="echo \"volume.balance -c ALL -force\" | weed shell -master=master:9333" job.position=1 job.schedule="*/2 * * * * *"
time="2021-03-09T23:46:00Z" level=info msg="Example: weed shell" channel=stderr iteration=0 job.command="echo \"volume.balance -c ALL -force\" | weed shell -master=master:9333" job.position=1 job.schedule="*/2 * * * * *"
time="2021-03-09T23:46:00Z" level=info msg="Default Usage:" channel=stderr iteration=0 job.command="echo \"volume.balance -c ALL -force\" | weed shell -master=master:9333" job.position=1 job.schedule="*/2 * * * * *"
time="2021-03-09T23:46:00Z" level=info msg="  -cluster string" channel=stderr iteration=0 job.command="echo \"volume.balance -c ALL -force\" | weed shell -master=master:9333" job.position=1 job.schedule="*/2 * * * * *"
time="2021-03-09T23:46:00Z" level=info msg="master: master:9333 filer: " channel=stdout iteration=0 job.command="echo \"volume.balance -c ALL -force\" | weed shell -master=master:9333" job.position=1 job.schedule="*/2 * * * * *"
time="2021-03-09T23:46:00Z" level=info msg="failed to parse filer : failed to parse " channel=stdout iteration=0 job.command="echo \"volume.balance -c ALL -force\" | weed shell -master=master:9333" job.position=1 job.schedule="*/2 * * * * *"
time="2021-03-09T23:46:00Z" level=info channel=stdout iteration=0 job.command="echo \"volume.balance -c ALL -force\" | weed shell -master=master:9333" job.position=1 job.schedule="*/2 * * * * *"
time="2021-03-09T23:46:00Z" level=info msg="    \tcluster defined in shell.toml" channel=stderr iteration=0 job.command="echo \"volume.balance -c ALL -force\" | weed shell -master=master:9333" job.position=1 job.schedule="*/2 * * * * *"
time="2021-03-09T23:46:00Z" level=info msg="  -filer string" channel=stderr iteration=0 job.command="echo \"volume.balance -c ALL -force\" | weed shell -master=master:9333" job.position=1 job.schedule="*/2 * * * * *"
time="2021-03-09T23:46:00Z" level=info msg="    \tfiler host and port, e.g. localhost:8888" channel=stderr iteration=0 job.command="echo \"volume.balance -c ALL -force\" | weed shell -master=master:9333" job.position=1 job.schedule="*/2 * * * * *"
time="2021-03-09T23:46:00Z" level=info msg="  -master string" channel=stderr iteration=0 job.command="echo \"volume.balance -c ALL -force\" | weed shell -master=master:9333" job.position=1 job.schedule="*/2 * * * * *"
time="2021-03-09T23:46:00Z" level=info msg="    \tcomma-separated master servers, e.g. localhost:9333" channel=stderr iteration=0 job.command="echo \"volume.balance -c ALL -force\" | weed shell -master=master:9333" job.position=1 job.schedule="*/2 * * * * *"
time="2021-03-09T23:46:00Z" level=info msg="Description:" channel=stderr iteration=0 job.command="echo \"volume.balance -c ALL -force\" | weed shell -master=master:9333" job.position=1 job.schedule="*/2 * * * * *"
time="2021-03-09T23:46:00Z" level=info msg="  run interactive administrative commands." channel=stderr iteration=0 job.command="echo \"volume.balance -c ALL -force\" | weed shell -master=master:9333" job.position=1 job.schedule="*/2 * * * * *"
time="2021-03-09T23:46:00Z" level=info channel=stderr iteration=0 job.command="echo \"volume.balance -c ALL -force\" | weed shell -master=master:9333" job.position=1 job.schedule="*/2 * * * * *"
time="2021-03-09T23:46:00Z" level=info msg="\tGenerate shell.toml via \"weed scaffold -config=shell\"" channel=stderr iteration=0 job.command="echo \"volume.balance -c ALL -force\" | weed shell -master=master:9333" job.position=1 job.schedule="*/2 * * * * *"
time="2021-03-09T23:46:00Z" level=error msg="error running command: exit status 2" iteration=0 job.command="echo \"volume.balance -c ALL -force\" | weed shell -master=master:9333" job.position=1 job.schedule="*/2 * * * * *"
time="2021-03-09T23:46:00Z" level=info channel=stderr iteration=0 job.command="echo \"volume.fix.replication\" | weed shell -master=master:9333" job.position=0 job.schedule="*/2 * * * * *"
time="2021-03-09T23:46:00Z" level=info msg="master: master:9333 filer: " channel=stdout iteration=0 job.command="echo \"volume.fix.replication\" | weed shell -master=master:9333" job.position=0 job.schedule="*/2 * * * * *"
time="2021-03-09T23:46:00Z" level=info msg="Example: weed shell" channel=stderr iteration=0 job.command="echo \"volume.fix.replication\" | weed shell -master=master:9333" job.position=0 job.schedule="*/2 * * * * *"
time="2021-03-09T23:46:00Z" level=info msg="Default Usage:" channel=stderr iteration=0 job.command="echo \"volume.fix.replication\" | weed shell -master=master:9333" job.position=0 job.schedule="*/2 * * * * *"
time="2021-03-09T23:46:00Z" level=info msg="  -cluster string" channel=stderr iteration=0 job.command="echo \"volume.fix.replication\" | weed shell -master=master:9333" job.position=0 job.schedule="*/2 * * * * *"
time="2021-03-09T23:46:00Z" level=info msg="    \tcluster defined in shell.toml" channel=stderr iteration=0 job.command="echo \"volume.fix.replication\" | weed shell -master=master:9333" job.position=0 job.schedule="*/2 * * * * *"
time="2021-03-09T23:46:00Z" level=info msg="  -filer string" channel=stderr iteration=0 job.command="echo \"volume.fix.replication\" | weed shell -master=master:9333" job.position=0 job.schedule="*/2 * * * * *"
time="2021-03-09T23:46:00Z" level=info msg="    \tfiler host and port, e.g. localhost:8888" channel=stderr iteration=0 job.command="echo \"volume.fix.replication\" | weed shell -master=master:9333" job.position=0 job.schedule="*/2 * * * * *"
time="2021-03-09T23:46:00Z" level=info msg="  -master string" channel=stderr iteration=0 job.command="echo \"volume.fix.replication\" | weed shell -master=master:9333" job.position=0 job.schedule="*/2 * * * * *"
time="2021-03-09T23:46:00Z" level=info msg="failed to parse filer : failed to parse " channel=stdout iteration=0 job.command="echo \"volume.fix.replication\" | weed shell -master=master:9333" job.position=0 job.schedule="*/2 * * * * *"
time="2021-03-09T23:46:00Z" level=info channel=stdout iteration=0 job.command="echo \"volume.fix.replication\" | weed shell -master=master:9333" job.position=0 job.schedule="*/2 * * * * *"
time="2021-03-09T23:46:00Z" level=info msg="    \tcomma-separated master servers, e.g. localhost:9333" channel=stderr iteration=0 job.command="echo \"volume.fix.replication\" | weed shell -master=master:9333" job.position=0 job.schedule="*/2 * * * * *"
time="2021-03-09T23:46:00Z" level=info msg="Description:" channel=stderr iteration=0 job.command="echo \"volume.fix.replication\" | weed shell -master=master:9333" job.position=0 job.schedule="*/2 * * * * *"
time="2021-03-09T23:46:00Z" level=info msg="  run interactive administrative commands." channel=stderr iteration=0 job.command="echo \"volume.fix.replication\" | weed shell -master=master:9333" job.position=0 job.schedule="*/2 * * * * *"
time="2021-03-09T23:46:00Z" level=info channel=stderr iteration=0 job.command="echo \"volume.fix.replication\" | weed shell -master=master:9333" job.position=0 job.schedule="*/2 * * * * *"
time="2021-03-09T23:46:00Z" level=info msg="\tGenerate shell.toml via \"weed scaffold -config=shell\"" channel=stderr iteration=0 job.command="echo \"volume.fix.replication\" | weed shell -master=master:9333" job.position=0 job.schedule="*/2 * * * * *"
time="2021-03-09T23:46:00Z" level=error msg="error running command: exit status 2" iteration=0 job.command="echo \"volume.fix.replication\" | weed shell -master=master:9333" job.position=0 job.schedule="*/2 * * * * *"
@chrislusf
Copy link
Collaborator

Thanks! Added a fix bf5b795

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