Comments (7)
Anything in your docker logs? Are the containers stopped? Can you start them manually without errors?
You can check logs with
docker logs containername
And you can manually start them with
cd /your/mailcow/directory
docker-compose start containername
Has the script run in the past or is this the first time you are running it? Also, have you manually named your containers or are you using the defaults?
Finally, could you please give me the exact command you are using to invoke the script?
from mailcowbackup.
The first time I've used this script to backup the script dose manage to stop and start the containers it just returns a false error saying it couldn't since the output is also mentioning docker inspect" requires at least 1 argument.
The issue is probably caused by this line
MailcowBackup/root/scripts/backup.sh
Line 245 in a26bb36
The command I used to run is /root/backup/backup.sh -m "/root/mailcow/mailcow.conf" all the containers are the default name.
The script dose manage backup and start and stop everything I could just add >/dev/null 2>&1 to cronjob line to hide the output.
from mailcowbackup.
First of all, I would always run a cronjob with > /dev/null 2>&1
regardless, good call on that.
Give me a day to spin up the latest mailcow on a test server and have a look. I haven't updated in a few months so maybe something has changed in how the containers are named or something and that is causing the script to generate false errors.
Out of interest, if you run the script normally as root at the console do you get any errors? If you are only getting errors when running as a cronjob I have a whole different idea of why that could be happening -- let me know?
I'm glad it's at least getting your backups done! Thx for letting me know about this issue.
from mailcowbackup.
Just an update -- I managed to duplicate the error you are finding and it is indeed only on newer versions of mailcow. I'll track the issue down, just wanted to give you a heads up, haven't forgotten about you, @Ry3nlNaToR :-)
from mailcowbackup.
Ok, I was wrong, it was actually just a sloppy mistake I never noticed before. I was checking names of only running containers and, obviously, postfix and dovecot would not be running after they were stopped! Should be resolved now.
commit: 04bc748
from mailcowbackup.
New minor release Version 1.5.1 includes this fix. Just noting for anyone that finds this issue.
@Ry3nlNaToR please confirm this fixes your issue and I'll close this. Thanks again!
from mailcowbackup.
Just tested error now gone.
Thanks.
from mailcowbackup.
Related Issues (13)
- Cronjob failing due to missing PATH HOT 3
- Wrong formating in details file... HOT 1
- [Suggestion] add version of script in help HOT 2
- backup script not working with docker compose v2 HOT 3
- same issue as in #13 HOT 3
- Multiple mailcow.conf HOT 5
- What means "Line 1: Path to borg base directory" HOT 15
- Wiki is down? HOT 8
- howto restore from a backup HOT 9
- error with borg 1.0 HOT 3
- How to backup to local folder HOT 3
- Feature ideas and / or requests - Colours in log and SSH port config HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mailcowbackup.