Version 0.21 is posted


#17

@deanzilla That’s the same issue as the one I mentioned at the top. Try the instructions in the original post?


#18

Ok, I’ve followed them, and all good :slight_smile:

Just wanted to be sure first.

Thanks for your support


OpenSSL error when running 'sudo mailinabox'
#19

I upgraded too and owncloud went fine. Only some munin error:

“Installing Munin (system monitoring)…
[FATAL ERROR] Lock already exists: /var/run/munin/munin-update.lock. Dying.
at /usr/share/perl5/Munin/Master/Update.pm line 128.”

So, reboot and Im going to test it.
Big thank You :slight_smile:


#20

The munin error happens every now and then.


#21

Whatever i try as described above. Nothing will do in order to get it to 0.21. What is going wrong?


#22

do you get an error message or anything?


#23

Mail-in-a-Box Version: v0.20

Updating system packages…
Installing system packages…
Initializing system random number generator…
Firewall is active and enabled on system startup
Installing nsd (DNS server)…
Installing Postfix (SMTP server)…
Installing Dovecot (IMAP server)…
Installing OpenDKIM/OpenDMARC…
Installing SpamAssassin…
Installing Nginx (web server)…
Installing Roundcube (webmail)…
Installing ownCloud (contacts/calendar)…
ownCloud is already latest version
Installing Z-Push (Exchange/ActiveSync server)…
Installing Mail-in-a-Box system management daemon…
Installing Munin (system monitoring)…
updated DNS: OpenDKIM configuration
Traceback (most recent call last):
File “management/ssl_certificates.py”, line 807, in
provision_certificates_cmdline()
File “management/ssl_certificates.py”, line 450, in provision_certificates_cmdline
status = provision_certificates(env, agree_to_tos_url=agree_to_tos_url, logger=my_logger, force_domains=force_domains, show_extended_problems=show_extended_problems)
File “management/ssl_certificates.py”, line 272, in provision_certificates
import acme.messages
File “/usr/local/lib/python3.4/dist-packages/acme/messages.py”, line 4, in
from acme import challenges
File “/usr/local/lib/python3.4/dist-packages/acme/challenges.py”, line 9, in
import OpenSSL
ImportError: No module named ‘OpenSSL’


Issues after upgrade to Latest MIAB - v0.20. to v0.21b
#24

seems like you are still missing the “python3-openssl” package, install it and try again (instructions below)


#25

Ok. ImportError is gone. Yet still stuck on 0.20 after whats seems a completed update.

A new version of Mail-in-a-Box is available. You are running version v0.20. The latest version is v0.21. For upgrade instructions, see https://mailinabox.email.


#26

Are you using curl to install or a cloned repo, if it’s a cloned repo you should do a git fetch && git pull


#27

not sure if it has any effect, but are you using the up to date setup script?

curl -s https://mailinabox.email/setup.sh | sudo bash

or did you just run the old script by just using

sudo mailinabox


#28

curl. I setted it up back than according to Josh his how to.

After git fetch - git pull I got this.

U CHANGELOG.md
U README.md
U conf/fail2ban/jail.local
U conf/zpush/backend_caldav.php
U conf/zpush/backend_carddav.php
U conf/zpush/backend_imap.php
U management/daemon.py
U management/dns_update.py
U management/email_administrator.py
U management/mailconfig.py
U management/ssl_certificates.py
U management/status_checks.py
U management/templates/custom-dns.html
U management/templates/index.html
U management/templates/ssl.html
U management/templates/system-status.html
U management/templates/web.html
U setup/bootstrap.sh
U setup/dkim.sh
U setup/mail-users.sh
U setup/munin.sh
U setup/owncloud.sh
U setup/preflight.sh
U setup/spamassassin.sh
U setup/start.sh
U setup/system.sh
U setup/webmail.sh
Pull is not possible because you have unmerged files.
Please, fix them up in the work tree, and then use 'git add/rm '
as appropriate to mark resolution, or use ‘git commit -a’.


#29

root@box:/home//mailinabox# curl -s https://mailinabox.email/setup.sh | sudo bash
Updating Mail-in-a-Box to v0.21 . . .
remote: Counting objects: 30, done.
remote: Compressing objects: 100% (22/22), done.
remote: Total 30 (delta 27), reused 11 (delta 8), pack-reused 0
Unpacking objects: 100% (30/30), done.
From https://github.com/mail-in-a-box/mailinabox

  • [new tag] v0.21 -> v0.21
    error: Your local changes to the following files would be overwritten by checkout:
    management/dns_update.py
    Please, commit your changes or stash them before you can switch branches.
    Aborting
    Update failed. Did you modify something in /root/mailinabox?

#30

You changed that file: management/dns_update.py

You can check with git status and then revert it.


#31

Dammit! I see it already. dns_update.py I tried to get TLSA for the other domains hosted by the box.


#32

I tried this on Josh his advice.

Didn’t seem to work out for some reason.


#33

crud @JoshData — So I ran the git commands and now I get all these unexpected token errors & can’t even login to the admin panel either… Never ran git commands on my server :confused: Any way to fix? Error below and my commands i ran after encountering the same problem on this board. My server is/was completely default and no customizations prior. Thank you. …and yes, annoyingly, I don’t know why i ran those full commands first - my browser or discourse made it look like it was from the same post so I trusted them all when prob should’ve just ran your post’s commands. Mail seems to work fine, nginx sites, owncloud contacts login, etc. just the admin front-end seems to be borked and whatever is in those error messages. Thank you and apologies all. Help would be appreciated.

Updating system packages...
Installing system packages...
setup/system.sh: line 122: syntax error near unexpected token `<<<'
setup/system.sh: line 122: `<<<<<<< HEAD'
Installing nsd (DNS server)...
Installing Postfix (SMTP server)...
setup/mail-postfix.sh: line 94: syntax error near unexpected token `<<<'
setup/mail-postfix.sh: line 94: `<<<<<<< HEAD'
Installing Dovecot (IMAP server)...
Installing OpenDKIM/OpenDMARC...
Installing SpamAssassin...
setup/spamassassin.sh: line 87: syntax error near unexpected token `<<<'
setup/spamassassin.sh: line 87: `<<<<<<< HEAD'
Installing Nginx (web server)...
Installing Roundcube (webmail)...
setup/webmail.sh: line 163: syntax error near unexpected token `<<<'
setup/webmail.sh: line 163: `<<<<<<< HEAD'
Installing ownCloud (contacts/calendar)...
setup/owncloud.sh: line 19: syntax error near unexpected token `<<<'
setup/owncloud.sh: line 19: `<<<<<<< HEAD'
Installing Z-Push (Exchange/ActiveSync server)...
setup/zpush.sh: line 56: syntax error near unexpected token `<<<'
setup/zpush.sh: line 56: `<<<<<<< HEAD'
Installing Mail-in-a-Box system management daemon...
Installing Munin (system monitoring)...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<title>500 Internal Server Error</title>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error and was unable to complete your request.  Either the server is overloaded or there is an error in the application.</p>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<title>500 Internal Server Error</title>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error and was unable to complete your request.  Either the server is overloaded or there is an error in the application.</p>
  File "management/ssl_certificates.py", line 241
    <<<<<<< HEAD
     ^
SyntaxError: invalid syntax

-----------------------------------------------

Your Mail-in-a-Box is running.

Please log in to the control panel for further instructions at:

  File "management/status_checks.py", line 172
    <<<<<<< HEAD
     ^
IndentationError: expected an indented block
https://ip.add.ress/admin

You will be alerted that the website has an invalid certificate. Check that
the certificate fingerprint matches:

5D:37:31:B........................F:27:7D:C7

Then you can confirm the security exception and continue

^^^end of ERROR


Unable to run "mailinabox"command
#34

I just moved user-data to a new box & started over for my small instance. No clue about all above though.


#35

New error for now:

`Installing ownCloud (contacts/calendar)…

FAILED: sudo -u www-data php /usr/local/lib/owncloud/console.php app:disable firstrunwizard

An unhandled exception has been thrown:
OC\HintException: [0]: Downgrading is not supported and is likely to cause unpredictable issues (from 9.1.2.5 to 9.1.1.3) ()
`


#36

This topic was automatically closed 6 days after the last reply. New replies are no longer allowed.