I am trying to install OwnCloud RockOn on 3.8-14.02 but the install fails with the following message:
[07/Jul/2016 14:28:15] DEBUG [storageadmin.views.rockon:84] Rockon(OwnCloud) is in pending state
[07/Jul/2016 14:28:15] DEBUG [storageadmin.views.rockon:84] Rockon(OwnCloud) is in pending state
[07/Jul/2016 14:28:31] DEBUG [storageadmin.views.rockon:84] Rockon(OwnCloud) is in pending state
I looked in the other thread [OwnCloud Rock-on - #8 by dilipsdil] but couldn´t find anything there that is applicable to my errors above.
I’m getting the same thing on 3.8-14.03, I’m not a docker expert, but it looks like the owncloud container is getting caught in some sort of reboot loop
[root@rockstor log]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
273948e54b12 pschmitt/owncloud "/usr/bin/run.sh" 2 minutes ago Restarting (1) 44 seconds ago 80/tcp, 443/tcp, 0.0.0.0:8085->8085/tcp owncloud
dfcc5c291950 postgres "/docker-entrypoint.s" 28 minutes ago Up 28 minutes 5432/tcp owncloud-postgres
So I’m not sure what’s going on there. The hosts journalctl is empty of any owncloud errors and rockstor.log only contains the message saying that it’s in a pending state. Trying to use docker’s logs I get
[root@rockstor mnt2]# docker logs owncloud
"logs" command is supported only for "json-file" and "journald" logging drivers (got: syslog)
So there’s got to be a way to view the syslog format of the logs coming out of there.
I know you mentioned that you looked into this in your original post, but it does look like the same error others and myself have had recently when trying to install the ownCloud Rock-on. I use the fix described below and it worked for me:
I am not really familiar how RS integrates docker daemon / calls the docker client; but you’ll have to add this as a mount command in the OwnCloud .json… which is stored where locally, when RS pulls it from the Rock-on hub?
You can try to copy the offical .json to /opt/rockstor/rockons-metastore/ and edit it there, then OwnCloud will show up as a local Rock-on. Will probably get some errors about “already exists” first, when you do not clean any references for the old one. EDIT: if that meta dir isn’t on your machine, just create it as root.
(Disclaimer: i do not use the RS Rock-on UI, i solely manage docker containers via cmdline.)
If I remember correctly, all the run.sh files found with grepping ‘owncloud’ were not the correct ones (although identical) either. But with the above command I could find and edit the files that did include the call to ‘localtime’ (it was close to the last lines of the given file). I don’t have access to my RS machine right now so I can’t give you the exact path to this file on my system right now but this should be enough for you to find it and fix it.
That being said, @f_l_a’s solution does seem a lot more robust to me and may even survive a reinstall of the Rock-on. My guess would be that the .json file is stored in the rock-ons root share (if created).
Let me know how it goes and if you need additional details and I’ll try to share with you how it is on my system later.
…maybe he can also edit the container’s config (actually the host config) like i described here. Just some minutes ago i altered one container’s restart policy accordingly.
The container should have been created via RS’ docker run ..., so all you need is to fix some bits via cmdline to get it up & running.
(And ui-for-docker is a good management UI, in the meantime, before our good RS contributors, maybe with some help from us more or less observing people, will have a solid plan forward at hand. And it will come, i’m sure.)