owncloud-archive / vm

Scripts to build an ownCloud community production VM - this was in use until 9.1.x releases. Since 10.0.1 we build appliances with Univention
https://www.univention.de/produkte/univention-app-center/app-katalog/owncloud/
23 stars 14 forks source link

Startup screen each reboot, lose trusted domains. #28

Closed bnairb closed 8 years ago

bnairb commented 8 years ago

I downloaded virtualbox and owncloud 8.2.0 ova for the 1st time yesterday and got it up and running. However on each restart of the owncloud vm,I get the initial startup screen and the trusted domain entries made no longer work.

this is where my ova file came from: http://download.owncloud.org/community/production/vm/xUbuntu_14.04-owncloud-8.2.0-2.1-201510201921.ova.zip

Brian

githubnewbie1 commented 8 years ago

same here...

owncloud-8.1.3-1.1 virtualbox image downloaded from offensive security

/var/www/owncloud/config/config.php loses settings upon reboot

need to have a configured trusted domain to allow connection from www

Is there a workaround? How do we configure trusted domain in owncloud?

enoch85 commented 8 years ago

@githubnewbie1 This guide is not for this VM, but look at step 5 in this guide: https://www.en0ch.se/complete-install-instructions-owncloud/ on how to set trusted domains.

githubnewbie1 commented 8 years ago

@enoch85 - Thanks, but your suggestion on how to set trusted domains is exactly how I have done it.

The problem is, the /var/www/owncloud/config/config.php resets to default upon reboot.

I thought there might be another way of doing it, while we wait for this bug to get resolved.

tflidd commented 8 years ago

There are numerous reports on the forum: https://forum.owncloud.org/viewtopic.php?f=31&t=30635 https://forum.owncloud.org/viewtopic.php?f=31&t=31079 https://forum.owncloud.org/viewtopic.php?f=36&t=31214

FredericMa commented 8 years ago

Hi all,

I've found a solution to this problem in the folowing file: https://github.com/owncloud/vm/blob/master/vagrant/oc8ce/check-init.sh#L69

If you comment out that specific line (69) your trusted domains will not be overwritten anymore at startup. The file is located at /var/scripts/check-init.sh.

Hope this helps you guys!

Greetings, Frederic

enoch85 commented 8 years ago

Thanks @FredericMa, this issue will be fixed in the next release.

enoch85 commented 8 years ago

@jnweiger Can we set trusted domians in build-ubuntu-vm.sh instead? Check-init.sh is run every time the VM boots, that's why we have this issue.

Or maybe make an if argument. Like if trusted domain exist, do nothing.

enoch85 commented 8 years ago

Fixed it with another solution.

enoch85 commented 8 years ago

Added IF argument: https://github.com/owncloud/vm/commit/13684df66f63153b0a84d7afb015cb2518dbcbf9