Trouble installing / starting Owncloud

Hi all,

I tried to install Owncloud on my up-to-date Rockstor.
Yesterday the installation process was successfull but I couldn’t start the plugin. I found in another thread here in this forum that there might be some issues with the /etc/localtime → OwnCloud Rock-on - #8 by dilipsdil

So I deleted the file. Had no luck…
Today I tried to install it again and the installer in the Web UI gives me an error.
So I checked the rockstor logs but I it’s not really helpful for me because I’m very new to linux at all.

So here it is:
`[13/Jun/2016 12:26:45] DEBUG [smart_manager.data_collector:682] Listening on port http://127.0.0.1:8080 and on port 10843 (flash policy server)
[13/Jun/2016 12:27:02] DEBUG [storageadmin.views.command:152] Bootstrap operations completed
[13/Jun/2016 12:28:04] DEBUG [storageadmin.views.rockon:84] Rockon(OwnCloud) is in pending state
[13/Jun/2016 12:28:04] DEBUG [storageadmin.views.rockon_helpers:70] Attempted to remove a container(owncloud-postgres). out: [‘owncloud-postgres’, ‘’] err: [‘’] rc: 0.
[13/Jun/2016 12:28:04] DEBUG [storageadmin.views.rockon_helpers:264] docker cmd = [‘/usr/bin/docker’, ‘run’, ‘–log-driver=syslog’, ‘-d’, ‘–restart=unless-stopped’, ‘–name’, u’owncloud-postgres’, ‘-e’, u’POSTGRES_USER=dbuserrockstor’, ‘-e’, u’POSTGRES_PASSWORD=49pZ9873337BBC3#fuqc’, ‘-v’, u’/mnt2/owncloud-db:/var/lib/postgresql/data’, ‘-v’, ‘/etc/localtime:/etc/localtime:ro’, u’postgres’]
[13/Jun/2016 12:28:04] DEBUG [storageadmin.views.rockon:84] Rockon(OwnCloud) is in pending state
[13/Jun/2016 12:28:05] DEBUG [storageadmin.views.rockon_helpers:127] exception while installing the Rockon(9)
[13/Jun/2016 12:28:05] ERROR [storageadmin.views.rockon_helpers:128] Error running a command. cmd = [‘/usr/bin/docker’, ‘run’, ‘–log-driver=syslog’, ‘-d’, ‘–restart=unless-stopped’, ‘–name’, ‘owncloud-postgres’, ‘-e’, ‘POSTGRES_USER=dbuserrockstor’, ‘-e’, ‘POSTGRES_PASSWORD=49pZ9873337BBC3#fuqc’, ‘-v’, ‘/mnt2/owncloud-db:/var/lib/postgresql/data’, ‘-v’, ‘/etc/localtime:/etc/localtime:ro’, ‘postgres’]. rc = 1. stdout = [‘3ab2471d593848547fc365cdc2b04550d14e1d3416416303b46b7a9d02462a23’, ‘’]. stderr = [‘Error response from daemon: Cannot start container 3ab2471d593848547fc365cdc2b04550d14e1d3416416303b46b7a9d02462a23: mkdir /etc/localtime: file exists’, ‘’]
Traceback (most recent call last):
File “/opt/rockstor/src/rockstor/storageadmin/views/rockon_helpers.py”, line 125, in install
globals().get(‘%s_install’ % rockon.name.lower(), generic_install)(rockon)
File “/opt/rockstor/src/rockstor/storageadmin/views/rockon_helpers.py”, line 265, in owncloud_install
run_command(cmd)
File “/opt/rockstor/src/rockstor/system/osi.py”, line 97, in run_command
raise CommandException(cmd, out, err, rc)
CommandException: Error running a command. cmd = [‘/usr/bin/docker’, ‘run’, ‘–log-driver=syslog’, ‘-d’, ‘–restart=unless-stopped’, ‘–name’, ‘owncloud-postgres’, ‘-e’, ‘POSTGRES_USER=dbuserrockstor’, ‘-e’, ‘POSTGRES_PASSWORD=49pZ9873337BBC3#fuqc’, ‘-v’, ‘/mnt2/owncloud-db:/var/lib/postgresql/data’, ‘-v’, ‘/etc/localtime:/etc/localtime:ro’, ‘postgres’]. rc = 1. stdout = [‘3ab2471d593848547fc365cdc2b04550d14e1d3416416303b46b7a9d02462a23’, ‘’]. stderr = [‘Error response from daemon: Cannot start container 3ab2471d593848547fc365cdc2b04550d14e1d3416416303b46b7a9d02462a23: mkdir /etc/localtime: file exists’, ‘’]
[13/Jun/2016 12:30:38] DEBUG [storageadmin.views.rockon_helpers:70] Attempted to remove a container(owncloud-postgres). out: [‘owncloud-postgres’, ‘’] err: [‘’] rc: 0.
[13/Jun/2016 12:30:38] DEBUG [storageadmin.views.rockon_helpers:264] docker cmd = [‘/usr/bin/docker’, ‘run’, ‘–log-driver=syslog’, ‘-d’, ‘–restart=unless-stopped’, ‘–name’, u’owncloud-postgres’, ‘-e’, u’POSTGRES_USER=dbuserrockstor’, ‘-e’, u’POSTGRES_PASSWORD=49pZ9873337BBC3#fuqc’, ‘-v’, u’/mnt2/owncloud-db:/var/lib/postgresql/data’, ‘-v’, ‘/etc/localtime:/etc/localtime:ro’, u’postgres’]
[13/Jun/2016 12:30:38] DEBUG [storageadmin.views.rockon:84] Rockon(OwnCloud) is in pending state
[13/Jun/2016 12:30:39] DEBUG [storageadmin.views.rockon:84] Rockon(OwnCloud) is in pending state
[13/Jun/2016 12:30:39] DEBUG [storageadmin.views.rockon_helpers:127] exception while installing the Rockon(9)
[13/Jun/2016 12:30:39] ERROR [storageadmin.views.rockon_helpers:128] Error running a command. cmd = [‘/usr/bin/docker’, ‘run’, ‘–log-driver=syslog’, ‘-d’, ‘–restart=unless-stopped’, ‘–name’, ‘owncloud-postgres’, ‘-e’, ‘POSTGRES_USER=dbuserrockstor’, ‘-e’, ‘POSTGRES_PASSWORD=49pZ9873337BBC3#fuqc’, ‘-v’, ‘/mnt2/owncloud-db:/var/lib/postgresql/data’, ‘-v’, ‘/etc/localtime:/etc/localtime:ro’, ‘postgres’]. rc = 1. stdout = [‘ec7fd92a69e84451b81d30e407993a1ede6bb9eacc1ff12deaf2a44f9749694b’, ‘’]. stderr = [‘Error response from daemon: Cannot start container ec7fd92a69e84451b81d30e407993a1ede6bb9eacc1ff12deaf2a44f9749694b: [8] System error: not a directory’, ‘’]
Traceback (most recent call last):
File “/opt/rockstor/src/rockstor/storageadmin/views/rockon_helpers.py”, line 125, in install
globals().get(‘%s_install’ % rockon.name.lower(), generic_install)(rockon)
File “/opt/rockstor/src/rockstor/storageadmin/views/rockon_helpers.py”, line 265, in owncloud_install
run_command(cmd)
File “/opt/rockstor/src/rockstor/system/osi.py”, line 97, in run_command
raise CommandException(cmd, out, err, rc)
CommandException: Error running a command. cmd = [‘/usr/bin/docker’, ‘run’, ‘–log-driver=syslog’, ‘-d’, ‘–restart=unless-stopped’, ‘–name’, ‘owncloud-postgres’, ‘-e’, ‘POSTGRES_USER=dbuserrockstor’, ‘-e’, ‘POSTGRES_PASSWORD=49pZ9873337BBC3#fuqc’, ‘-v’, ‘/mnt2/owncloud-db:/var/lib/postgresql/data’, ‘-v’, ‘/etc/localtime:/etc/localtime:ro’, ‘postgres’]. rc = 1. stdout = [‘ec7fd92a69e84451b81d30e407993a1ede6bb9eacc1ff12deaf2a44f9749694b’, ‘’]. stderr = [‘Error response from daemon: Cannot start container ec7fd92a69e84451b81d30e407993a1ede6bb9eacc1ff12deaf2a44f9749694b: [8] System error: not a directory’, ‘’]

`

Would be great if anybody have some ideas for me.
Thanks :slight_smile:

I received similar issues several months back when I setup my owncloud rockon. I discovered my problem by running “top -d 1” and noticing that either the owncloud or linked postgre-sql container was running a chown (change owner) operation on of the data on my owncloud shares. After making sure that I had created entirely new shares for my owncloud rockon and starting it up, my issue was resolved.

Hi. Thanks for your answer. This didn’t work for me.
I deleted the three shares and created them again.
The issue remains the same. When the rockon is installing it shows the following:

Ok… I finally did a reinstall of Rockstor.
Now everything works fine.

I’ve been playing with the official owncloud docker image from the hub. It’s time we switch to it, what do you say? I’ll be testing it out for a bit. You can get it here if you like to test and provide your feedback.

I tried it, but I get an error:

Errors occurred while processing updates for following Rock-ons. OwnCloud-Official: ‘launch_order’

Traceback (most recent call last):
File “/opt/rockstor/src/rockstor/storageadmin/views/rockon.py”, line 105, in post
self._create_update_meta(r, rockons[r])
File “/opt/rockstor/eggs/Django-1.6.11-py2.7.egg/django/db/transaction.py”, line 371, in inner
return func(*args, **kwargs)
File “/opt/rockstor/src/rockstor/storageadmin/views/rockon.py”, line 200, in _create_update_meta
co.launch_order = c_d[‘launch_order’]
KeyError: ‘launch_order’

So finally I got it…
in the owncloud-offical.json file following statement was missing:

“launch_order”: 2,

Now I’m running the official docker image. So let’s see how it works. Untill now everythings looks good!

1 Like

@suman or anybody who is testing the official owncloud images
Do you know how I can run this docker with https?
I get “SSL_ERROR_RX_RECORD_TOO_LONG” when trying to access it.
With google I didn’t really find something that’s working for me…

Would be great

Still having trouble with the SSL Error… Could anybody help me please?

I’m having the same problem I think. ownCloud is installed, but the UI doesn’t open, I get connection refused.
BTW, I see that the default port in some of the docs is 8080, and it actually installed with 8084.
tried both, uninstalled and tried 8080 in the installation. didn’t help

@Mark93 Sorry I’m not really up on this aspect I’m afraid. But in time I expect someone how is should step in (hopefully).

Ok at the moment it’s not so important for me to use it via Https, but I’ll give it another try…

I’ve fixed the bug in the json file and merged these changes. Owncloud doesn’t make it easy to configure https from the web-ui AFAIK. They do have instructions here that may interest you. To summarize, you need to update the apache config file. docker cp and docker exec -i -t owncloud-official /bin/bash are your friends.

I am planning to keep this simple for now and focus on evaluating the stability and reliability of the app.