Jump to content
gfjardim

[DOCKER] ownCloud is here!

705 posts in this topic Last Reply

Recommended Posts

I disabled the bridge in my unRaid network settings, the OwnCloud docker doesn't work in either host or bridge mode though?

 

Assuming after install I goto https://192.168.1.2:8000/owncloud  ??

 

It will work on bridge mode, no need for /owncloud tho.

Share this post


Link to post

It will work on bridge mode, no need for /owncloud tho.

 

 

It won't work, going to these links comes up with a blank page:

http://192.168.1.2:8000/

https://192.168.1.2:8000/

 

Running it in bridged mode. No idea, sorry.

Incase you think you're crazy I couldn't get this to work either, however I figured it was something I did wrong.

I cannot connect and I end up with a folder for OwnCloud (where I put it) that has a config folder with nothing in it and a server.key file. I'm not sure if you're installation is the same or not.

Share this post


Link to post

I have gfjardim's owncloud running in bridge without any issues here's my XML if it helps the only difference between my template and gf's is no variables.

 

my-ownCloud.xml

<?xml version="1.0" encoding="utf-8"?>
<Container>
  <Name>ownCloud</Name>
  <Repository>gfjardim/owncloud</Repository>
  <BindTime>true</BindTime>
  <Privileged>false</Privileged>
  <Environment>
    <Variable>
      <Name></Name>
      <Value></Value>
    </Variable>
  </Environment>
  <Networking>
    <Mode>bridge</Mode>
    <Publish>
      <Port>
        <HostPort></HostPort>
        <ContainerPort></ContainerPort>
        <Protocol>tcp</Protocol>
      </Port>
      <Port>
        <HostPort>8000</HostPort>
        <ContainerPort>8000</ContainerPort>
        <Protocol>tcp</Protocol>
      </Port>
    </Publish>
  </Networking>
  <Data>
    <Volume>
      <HostDir>/mnt/cache/apps/www/owncloud/</HostDir>
      <ContainerDir>/var/www/owncloud/data</ContainerDir>
      <Mode>rw</Mode>
    </Volume>
  </Data>
</Container>

 

Share this post


Link to post

Here is what I get when I run the OwnCloud through the extended plugin:

root@localhost:# /usr/bin/docker run -d --name="ownCloud" --net="bridge" -e SUBJECT="/C=COUNTRY/ST=STATE/L=City/O=Organization/OU=Organization Unit/CN=yourhome.com" -p 8000:8000/tcp -v "/mnt/user/dockerdata/owncloud/":"/var/www/owncloud/data":rw -v "/etc/localtime":"/etc/localtime":ro gfjardim/owncloud

1cd6979e2d96c69a52ede2042c55cdbb0cf0407725e7a60d32cce9b83c32845a

 

The command finished successfully!

I cannot reach the server though.

Share this post


Link to post

Here is what I get when I run the OwnCloud through the extended plugin:

root@localhost:# /usr/bin/docker run -d --name="ownCloud" --net="bridge" -e SUBJECT="/C=COUNTRY/ST=STATE/L=City/O=Organization/OU=Organization Unit/CN=yourhome.com" -p 8000:8000/tcp -v "/mnt/user/dockerdata/owncloud/":"/var/www/owncloud/data":rw -v "/etc/localtime":"/etc/localtime":ro gfjardim/owncloud

1cd6979e2d96c69a52ede2042c55cdbb0cf0407725e7a60d32cce9b83c32845a

 

The command finished successfully!

I cannot reach the server though.

 

Take a look at the logs and post it here.

Share this post


Link to post

Here is what I get when I run the OwnCloud through the extended plugin:

root@localhost:# /usr/bin/docker run -d --name="ownCloud" --net="bridge" -e SUBJECT="/C=COUNTRY/ST=STATE/L=City/O=Organization/OU=Organization Unit/CN=yourhome.com" -p 8000:8000/tcp -v "/mnt/user/dockerdata/owncloud/":"/var/www/owncloud/data":rw -v "/etc/localtime":"/etc/localtime":ro gfjardim/owncloud

1cd6979e2d96c69a52ede2042c55cdbb0cf0407725e7a60d32cce9b83c32845a

 

The command finished successfully!

I cannot reach the server though.

 

Take a look at the logs and post it here.

 

Forgive me but is it that massive file name *.json.log?

 

{"log":"*** Running /etc/my_init.d/00_regen_ssh_host_keys.sh...\n","stream":"std
out","time":"2014-07-20T09:31:05.641079274Z"}
{"log":"No SSH host key available. Generating one...\n","stream":"stdout","time"
:"2014-07-20T09:31:05.678902365Z"}
{"log":"Creating SSH2 RSA key; this may take some time ...\n","stream":"stderr",
"time":"2014-07-20T09:31:06.266263011Z"}
{"log":"Creating SSH2 DSA key; this may take some time ...\n","stream":"stderr",
"time":"2014-07-20T09:31:06.346075364Z"}
{"log":"Creating SSH2 ECDSA key; this may take some time ...\n","stream":"stderr
","time":"2014-07-20T09:31:06.348207349Z"}
{"log":"Creating SSH2 ED25519 key; this may take some time ...\n","stream":"stde
rr","time":"2014-07-20T09:31:06.351279706Z"}
{"log":"invoke-rc.d: policy-rc.d denied execution of restart.\n","stream":"stder
r","time":"2014-07-20T09:31:06.6768386Z"}
{"log":"*** Running /etc/my_init.d/config.sh...\n","stream":"stdout","time":"201
4-07-20T09:31:06.699674992Z"}
{"log":"*** Running /etc/rc.local...\n","stream":"stdout","time":"2014-07-20T09:
31:06.723849632Z"}
{"log":"*** Booting runit daemon...\n","stream":"stdout","time":"2014-07-20T09:3
1:06.724899856Z"}
{"log":"*** Runit started as PID 106\n","stream":"stdout","time":"2014-07-20T09:
31:06.725038034Z"}
~

Share this post


Link to post

If you use the Extended Plugin, just click on the link in the STATUS column.

 

root@localhost:# /usr/bin/docker logs CrashPlan
*** Running /etc/my_init.d/00_regen_ssh_host_keys.sh...
No SSH host key available. Generating one...
Creating SSH2 RSA key; this may take some time ...
Creating SSH2 DSA key; this may take some time ...
Creating SSH2 ECDSA key; this may take some time ...
Creating SSH2 ED25519 key; this may take some time ...
invoke-rc.d: policy-rc.d denied execution of restart.
*** Running /etc/my_init.d/config.sh...
*** Running /etc/rc.local...
*** Booting runit daemon...
*** Runit started as PID 106

The command finished successfully!

 

??

Share this post


Link to post

If you use the Extended Plugin, just click on the link in the STATUS column.

 

root@localhost:# /usr/bin/docker logs CrashPlan
*** Running /etc/my_init.d/00_regen_ssh_host_keys.sh...
No SSH host key available. Generating one...
Creating SSH2 RSA key; this may take some time ...
Creating SSH2 DSA key; this may take some time ...
Creating SSH2 ECDSA key; this may take some time ...
Creating SSH2 ED25519 key; this may take some time ...
invoke-rc.d: policy-rc.d denied execution of restart.
*** Running /etc/my_init.d/config.sh...
*** Running /etc/rc.local...
*** Booting runit daemon...
*** Runit started as PID 106

The command finished successfully!

 

??

 

STATUS column, ownCloud row.

Share this post


Link to post

OMG, i'm so sorry. I feel so stupid.

 

Attached is the log.

 

You're not the first with this problem. I will try to nail it.

Share this post


Link to post

OMG, i'm so sorry. I feel so stupid.

 

Attached is the log.

 

You're not the first with this problem. I will try to nail it.

 

Ok, this was a problem when generating ssl certificates. The default template used a long country designation, COUNTRY. I've updated the built in template to set US instead. Please update the extended docker plugin, remove the my-ownCloud template, and start again.

 

PS: don't forget to prior remove the container and image too!

Share this post


Link to post

OMG, i'm so sorry. I feel so stupid.

 

Attached is the log.

 

You're not the first with this problem. I will try to nail it.

 

Ok, this was a problem when generating ssl certificates. The default template used a long country designation, COUNTRY. I've updated the built in template to set US instead. Please update the extended docker plugin, remove the my-ownCloud template, and start again.

 

PS: don't forget to prior remove the container and image too!

 

So i removed the OwnCloud docker. Updated the plugin.

Removed the my-OwnCloud template. Setup the docker with default settings except for the location of my data and it hasn't worked.

 

root@localhost:# /usr/bin/docker logs ownCloud
*** Running /etc/my_init.d/00_regen_ssh_host_keys.sh...
No SSH host key available. Generating one...
Creating SSH2 RSA key; this may take some time ...
Creating SSH2 DSA key; this may take some time ...
Creating SSH2 ECDSA key; this may take some time ...
Creating SSH2 ED25519 key; this may take some time ...
invoke-rc.d: policy-rc.d denied execution of restart.
*** Running /etc/my_init.d/config.sh...

The command finished successfully!

 

Let me know if you need anymore information from me. Cheers. :)

Share this post


Link to post

OMG, i'm so sorry. I feel so stupid.

 

Attached is the log.

 

You're not the first with this problem. I will try to nail it.

 

Ok, this was a problem when generating ssl certificates. The default template used a long country designation, COUNTRY. I've updated the built in template to set US instead. Please update the extended docker plugin, remove the my-ownCloud template, and start again.

 

PS: don't forget to prior remove the container and image too!

 

So i removed the OwnCloud docker. Updated the plugin.

Removed the my-OwnCloud template. Setup the docker with default settings except for the location of my data and it hasn't worked.

 

root@localhost:# /usr/bin/docker logs ownCloud
*** Running /etc/my_init.d/00_regen_ssh_host_keys.sh...
No SSH host key available. Generating one...
Creating SSH2 RSA key; this may take some time ...
Creating SSH2 DSA key; this may take some time ...
Creating SSH2 ECDSA key; this may take some time ...
Creating SSH2 ED25519 key; this may take some time ...
invoke-rc.d: policy-rc.d denied execution of restart.
*** Running /etc/my_init.d/config.sh...

The command finished successfully!

 

Let me know if you need anymore information from me. Cheers. :)

 

I just used the new template to reinstall gfjardim's ownCloud docker and used my original data location:

ownCloud Log:

root@localhost:# /usr/bin/docker logs ownCloud

*** Running /etc/my_init.d/00_regen_ssh_host_keys.sh...
No SSH host key available. Generating one...
Creating SSH2 RSA key; this may take some time ...
Creating SSH2 DSA key; this may take some time ...
Creating SSH2 ECDSA key; this may take some time ...
Creating SSH2 ED25519 key; this may take some time ...
invoke-rc.d: policy-rc.d denied execution of restart.
*** Running /etc/my_init.d/config.sh...
Found pre-existing certificate, using it.
*** Running /etc/rc.local...
*** Booting runit daemon...
*** Runit started as PID 1008
The command finished successfully!

 

But once the container starts, it is not instantly accessible - I had to wait about two minutes for the config.sh to finish...

Share this post


Link to post

Whatever you did worked for me, came right up....Thanks!

 

It was just a minor fix. I had a busy day, just migrated my 50GB Dropbox account to ownCloud because of this:

 

http://www.businessinsider.com/edward-snowden-dropbox-2014-7

 

I know, it's paranoia, I don't have anything secret there, but I don't like 22 year old private contractor spies sniffing my stuff.

 

Now, it's ownCloud + CrashPlan for backups.

Share this post


Link to post

Thinking about using owncloud as well.  Do we have to input location stuff in the variable section?  SUBJECT="/C=COUTRY/ST=STATE/L=CITY/O=ORGANIZATION/OU=UNIT/CN=myhome.com

 

Thanks

Share this post


Link to post

Thinking about using owncloud as well.  Do we have to input location stuff in the variable section?  SUBJECT="/C=COUTRY/ST=STATE/L=CITY/O=ORGANIZATION/OU=UNIT/CN=myhome.com

 

Thanks

 

Only if you want. "/C=" only takes two letters.

Share this post


Link to post

Whatever you did worked for me, came right up....Thanks!

 

Do you run the network in bridge or host mode?

Share this post


Link to post

Whatever you did worked for me, came right up....Thanks!

 

Do you run the network in bridge or host mode?

In bridge mode.

Share this post


Link to post

Whatever you did worked for me, came right up....Thanks!

 

Do you run the network in bridge or host mode?

In bridge mode.

 

Ok, so I completely removed the container. Cleared the data folder and tried again from the default template.

I can now reach it via https://192.168.1.2:8000/

 

gfjardim, I am impressed by your assistance with this and the community impresses me once again. Hopefully you setup a full time donation link one day. For now I am just very grateful, so thank you. :)

Share this post


Link to post

Whatever you did worked for me, came right up....Thanks!

 

Do you run the network in bridge or host mode?

In bridge mode.

 

Ok, so I completely removed the container. Cleared the data folder and tried again from the default template.

I can now reach it via https://192.168.1.2:8000/

 

gfjardim, I am impressed by your assistance with this and the community impresses me once again. Hopefully you setup a full time donation link one day. For now I am just very grateful, so thank you. :)

 

I'm glad you figure it out how to fix it, sometimes it's better to start from scratch, because it's difficult to debug a specific setup.

 

This forum alone worth the license fee, IMHO. I've learned a LOT from people like Joe L, RobJ, Tom and others. People here are always helpful, no matter what is your difficulty.

Share this post


Link to post

How are people finding performance? I added a 20GB folder on Windows 8 through the Sync Client and the perfomance of the sync and the web interface has slowed to a crawl. Is just simply resources?

Share this post


Link to post

Do you know how to add apps to the docker?  It seems from the install stuff I found you have to untar the app into a directory under owncloud, but I am not real familure with dockers or owncloud.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.