mailcow / mailcow-dockerized

mailcow: dockerized - 🐮 + 🐋 = 💕
https://mailcow.email
GNU General Public License v3.0
8.92k stars 1.17k forks source link

I do not get any updates? #1863

Closed xxtim42xx closed 6 years ago

xxtim42xx commented 6 years ago

After the Mailcow Update with ./update.sh there are still new versions available. I check this with ./update.sh --check

I think there is a failure when I use ./update.sh. Here is the Output:

Checking internet connection... OK
Checking for newer update script...
Are you sure you want to update mailcow: dockerized? All containers will be stopped. [y/N] y
Stopping mailcow...
WARNING: The WATCHDOG_NOTIFY_EMAIL variable is not set. Defaulting to a blank string.
Stopping mailcowdockerized_rspamd-mailcow_1    ... done
Stopping mailcowdockerized_acme-mailcow_1      ... done
Stopping mailcowdockerized_netfilter-mailcow_1 ... done
Stopping mailcowdockerized_nginx-mailcow_1     ... done
Stopping mailcowdockerized_php-fpm-mailcow_1   ... done
Stopping mailcowdockerized_unbound-mailcow_1   ... done
Stopping mailcowdockerized_watchdog-mailcow_1  ... done
Stopping mailcowdockerized_dockerapi-mailcow_1 ... done
Stopping mailcowdockerized_memcached-mailcow_1 ... done
Stopping mailcowdockerized_sogo-mailcow_1      ... done
Stopping mailcowdockerized_redis-mailcow_1     ... done
Stopping mailcowdockerized_postfix-mailcow_1   ... done
Stopping mailcowdockerized_clamd-mailcow_1     ... done
Stopping mailcowdockerized_ipv6nat_1           ... done
Stopping mailcowdockerized_dovecot-mailcow_1   ... done
Stopping mailcowdockerized_mysql-mailcow_1     ... done
Removing mailcowdockerized_rspamd-mailcow_1    ... done
Removing mailcowdockerized_acme-mailcow_1      ... done
Removing mailcowdockerized_netfilter-mailcow_1 ... done
Removing mailcowdockerized_nginx-mailcow_1     ... done
Removing mailcowdockerized_php-fpm-mailcow_1   ... done
Removing mailcowdockerized_unbound-mailcow_1   ... done
Removing mailcowdockerized_watchdog-mailcow_1  ... done
Removing mailcowdockerized_dockerapi-mailcow_1 ... done
Removing mailcowdockerized_memcached-mailcow_1 ... done
Removing mailcowdockerized_sogo-mailcow_1      ... done
Removing mailcowdockerized_redis-mailcow_1     ... done
Removing mailcowdockerized_postfix-mailcow_1   ... done
Removing mailcowdockerized_clamd-mailcow_1     ... done
Removing mailcowdockerized_ipv6nat_1           ... done
Removing mailcowdockerized_dovecot-mailcow_1   ... done
Removing mailcowdockerized_mysql-mailcow_1     ... done
Removing network mailcowdockerized_mailcow-network
Committing current status...

*** Please tell me who you are.

Run

  git config --global user.email "you@example.com"
  git config --global user.name "Your Name"

to set your account's default identity.
Omit --global to set the identity only in this repository.

fatal: unable to auto-detect email address (got 'root@srv1-smyletec.(none)')
Fetching updated code from remote...
Merging local with remote code (recursive, strategy: "theirs", options: "patience"...
Updating 2ee983c1..699c9a73
error: Your local changes to the following files would be overwritten by merge:
        docker-compose.yml
Please commit your changes or stash them before you merge.
Aborting
Potenial conflict, trying to fix...
rm: missing operand
Try 'rm --help' for more information.

*** Please tell me who you are.

Run

  git config --global user.email "you@example.com"
  git config --global user.name "Your Name"

to set your account's default identity.
Omit --global to set the identity only in this repository.

fatal: unable to auto-detect email address (got 'root@SERVER.(none)')
Removed and recreated files if necessary.
Fetching new docker-compose version...
######################################################################## 100.0%
Fetching new images, if any...
WARNING: The WATCHDOG_NOTIFY_EMAIL variable is not set. Defaulting to a blank string.
Pulling unbound-mailcow   ... done
Pulling mysql-mailcow     ... done
Pulling redis-mailcow     ... done
Pulling clamd-mailcow     ... done
Pulling php-fpm-mailcow   ... done
Pulling sogo-mailcow      ... done
Pulling dovecot-mailcow   ... done
Pulling postfix-mailcow   ... done
Pulling memcached-mailcow ... done
Pulling nginx-mailcow     ... done
Pulling rspamd-mailcow    ... done
Pulling acme-mailcow      ... done
Pulling netfilter-mailcow ... done
Pulling watchdog-mailcow  ... done
Pulling dockerapi-mailcow ... done
Pulling ipv6nat           ... done
Checking IPv6 settings...
Fixing project name...
Fixing PHP-FPM worker ports for Nginx sites...
Starting mailcow...
WARNING: The WATCHDOG_NOTIFY_EMAIL variable is not set. Defaulting to a blank string.
Creating network "mailcowdockerized_mailcow-network" with driver "bridge"
Creating mailcowdockerized_redis-mailcow_1     ... done
Creating mailcowdockerized_dovecot-mailcow_1   ... done
Creating mailcowdockerized_postfix-mailcow_1   ... done
Creating mailcowdockerized_watchdog-mailcow_1  ... done
Creating mailcowdockerized_sogo-mailcow_1      ... done
Creating mailcowdockerized_mysql-mailcow_1     ... done
Creating mailcowdockerized_ipv6nat_1           ... done
Creating mailcowdockerized_unbound-mailcow_1   ... done
Creating mailcowdockerized_dockerapi-mailcow_1 ... done
Creating mailcowdockerized_clamd-mailcow_1     ... done
Creating mailcowdockerized_memcached-mailcow_1 ... done
Creating mailcowdockerized_php-fpm-mailcow_1   ... done
Creating mailcowdockerized_nginx-mailcow_1     ... done
Creating mailcowdockerized_acme-mailcow_1      ... done
Creating mailcowdockerized_rspamd-mailcow_1    ... done
Creating mailcowdockerized_netfilter-mailcow_1 ... done
Collecting garbage...
Further cleanup...
If you want to cleanup further garbage collected by Docker, please make sure all containers are up and running before cleaning your system by executing "docker system prune"

Thanks for an answer.

Braintelligence commented 6 years ago

Did you always run update.sh with umask 0022?

xxtim42xx commented 6 years ago

No can you please Explain?

Braintelligence commented 6 years ago

Try sudo -i and then umask. If it says 0022 you're good to go using update.sh as root via sudo -i. If you used update.sh without the appropriate umask before, your folders might have had inappropriate permission settings which led to a broken update path.

EDIT: You also should have come in touch with this topic in the docs: https://mailcow.github.io/mailcow-dockerized-docs/install/

xxtim42xx commented 6 years ago

It returns 0022 so I think its ok?

Braintelligence commented 6 years ago

Well the point is: Did you run the installation and update.sh as root via sudo -i / umask 0022 before? If not, you may have borked your instance; this happened to me on two instances of which one I had to completely reinstall after some updates in the process.

EDIT: Good catch by @MAGICCC 😼.

MAGICCC commented 6 years ago

It seems you changed some lines in docker-compose.yml. Do you know which ones?

xxtim42xx commented 6 years ago

Yes, I think MTU value from the Network bridge. Is that the problem?

Braintelligence commented 6 years ago

It's worth a try I'd say, do you agree @MAGICCC ? You could git stash your changes or try a git checkout on the docker-compose.yml and then update again.

xxtim42xx commented 6 years ago

I think git stash worked.