Owncloud installation fails at setup

Hello,

When run the script curl -s https://mailinabox.email/bootstrap.sh | sudo bash it fails to install Owncloud and the setup is aborted.

I see this:
installing ownCloud…
sha1sum: WARNING: 1 computed checksum did NOT match

Download of https://download.owncloud.org/community/owncloud-8.0.3.zip did not match expected checksum.
Found:
625b1c561ea51426047a3e79eda51ca05e9f978a /tmp/owncloud.zip

Expected:
3192f3d783f81247eaf2914df63afdd593def4e5 /tmp/owncloud.zip
root@box:~#

How can this be resolve?

ownCloud wrecked their download of the version we’re using. We’re waiting on them to fix this:

1 Like

I just edited the install script to match the key, and it worked :smile:

The error is in the zip, not in the key. You’re installing the wrong version. Proceed at your own peril!

oh I did not know that! I dont use Owncloud at all. Could it crash other services or do any harm further? Haven’t seen any problems yet

Probably not…

Hello Josh,

is there another way that I can install Mail-in-a-box?

I found a workaround, but do not know if it will mesh up with future updates from Mail-in-a-Box.
The workaround that I use is to edit owncloud.sh and replace the line with the owncloud_hash value.

#[old-line]
owncloud_hash=3192f3d783f81247eaf2914df63afdd593def4e5

#[new-line]
owncloud_hash=625b1c561ea51426047a3e79eda51ca05e9f978a

After saving, I ran mailinabox again and everything works fine.

@pbx_ramdas - Probably not the best idea in general. ownCloud is investigating because to them it appears that there could have been a security compromise of the ownCloud package (e.g. unauthorized attacker could have replaced ownCloud’s true release archive with a compromised one). Ignoring MD5/SHA sums can be dangerous.

It sounds like it could have just been an issue with their build process, but it’s good to heed warnings like these in general, rather than just making them work without verification of their integrity.

Any updates yet from OwnCloud?

1 Like

Hello,

have exactly the same problem:

installing ownCloud...
sha1sum: WARNING: 1 computed checksum did NOT match
------------------------------------------------------------
Download of https://download.owncloud.org/community/owncloud-8.0.3.zip did not match expected checksum.
Found:
625b1c561ea51426047a3e79eda51ca05e9f978a  /tmp/owncloud.zip

Expected:
3192f3d783f81247eaf2914df63afdd593def4e5  /tmp/owncloud.zip

Is it possible to skip the OwnCloud integration (don’t need this feature at all)?

Or if it’s fixed by the OwnCloud developers (hopefully in some days?), can I run

setup/start.sh

again and it will overwrite my settings?

Or should I better delete something before (because of the aborted/failed installation process)?

Thanks for help,
all the best,
Marcel

I pushed version 0.11 of Mail-in-a-Box which updates to ownCloud 8.0.4. Please try that everyone.

If you were on a new installation and got stuck half way through… I believe it is ok to try again (starting from the curl command in the MiaB setup instructions), but I am not really sure.

People that did replace the key in owncloud.sh need to DELETE the owncloud.sh in the /setup folder before updating. The setup will not continue if you have edited this, and deleting it works. (it will just redownload the original working file)

Confirmed that a brand new installation (where OwnCloud failed during first install) and re-running curl command working.

Was able to set up, configure and currently in-use MiaB!

Thanks @JoshData!