Skip to content

cannot backup config on FreeBSD #1060

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

Open
biGdada opened this issue Nov 12, 2018 · 1 comment · May be fixed by #1616
Open

cannot backup config on FreeBSD #1060

biGdada opened this issue Nov 12, 2018 · 1 comment · May be fixed by #1616
Labels

Comments

@biGdada
Copy link

biGdada commented Nov 12, 2018

when i press the backup button, nothing happens;
2018-11-12 19:32:15: [motioneye] ERROR: backup failed: Command '['tar', 'zc', '.']' returned non-zero exit status 1 Traceback (most recent call last): File "/usr/local/lib/python2.7/site-packages/motioneye/config.py", line 1680, in backup content = subprocess.check_output(['tar', 'zc', '.'], cwd=settings.CONF_PATH ) File "/usr/local/lib/python2.7/subprocess.py", line 223, in check_output raise CalledProcessError(retcode, cmd, output=output) CalledProcessError: Command '['tar', 'zc', '.']' returned non-zero exit status 1 2018-11-12 19:32:15: [motioneye] ERROR: failed to create backup file Traceback (most recent call last): File "/usr/local/lib/python2.7/site-packages/tornado/web.py", line 1548, in _s tack_context_handle_exception raise_exc_info((type, value, traceback)) File "/usr/local/lib/python2.7/site-packages/tornado/web.py", line 1756, in wr apper result = method(self, *args, **kwargs) File "/usr/local/lib/python2.7/site-packages/motioneye/handlers.py", line 278, in get self.backup() File "/usr/local/lib/python2.7/site-packages/motioneye/handlers.py", line 205, in wrapper return func(self, *args, **kwargs) File "/usr/local/lib/python2.7/site-packages/motioneye/handlers.py", line 802, in backup raise Exception('failed to create backup file') Exception: failed to create backup file

@biGdada
Copy link
Author

biGdada commented Dec 2, 2018

changing
content = subprocess.check_output(['tar', 'zc', '.'], cwd=settings.CONF_PATH)
to
content = subprocess.check_output(['tar', 'zcf','-', '.'], cwd=settings.CONF_PATH)
in config.py, line 1680 fixes the problem for me

@MichaIng MichaIng linked a pull request Mar 22, 2022 that will close this issue
@MichaIng MichaIng linked a pull request Mar 22, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging a pull request may close this issue.

2 participants