[DOCKER] ownCloud is here!


Recommended Posts

not sure if it's better to just make /var/www/owncloud/apps persistent?

 

 

there is that, i don't use the thing so i couldn't really say.

 

personally i'd just pass the whole folder and have done with it, but that's just me.

 

 

 

 

It's not quite that simple.  ownCloud has many apps built that are pre-loaded in the apps directory.  User apps are added to that directory for additional functionality.  Both directories would have to combine to work properly.

 

When I load ownCloud, I just get into the docker with a cli and copy the apps from the appdata/owncloud directory and I'm good to go.  This only occurs when I update or make xml changes to the docker image.

 

 

passing the whole folder wouldn't affect that in any way whatsoever if you use either of the two methods i outline in an earlier post.

Link to comment

there are 2 way arounds for this, a quick glance at the docker install routine and it appears that the owncloud installation is a download of the base files rather than an install via ppa etc...

 

for persistance of plugins, calendars and contacts etc... you could pull the download block out of the main install, put it into a firstrun type file with an if routine for a file or folder that if not present triggers a download of the files.

 

then use the entire /var/www/owncloud folder as a volume for share.

 

 

the other way, which keeps everybody on the same version (better for support) is to keep the download block in the main image install but download to a temporary location and then use a similar firstrun scenario as above to move the files into their final place and again share the entire /var/www/owncloud folder.

 

there may be pitfalls i haven't foreseen, and it's not my decision to make, i'm just offering a potential.

 

 

 

either of these two methods would not affect any preloaded apps that owncloud ships with.

 

there would be some work for updaters though, but nothing too major.

Link to comment

there are 2 way arounds for this, a quick glance at the docker install routine and it appears that the owncloud installation is a download of the base files rather than an install via ppa etc...

 

for persistance of plugins, calendars and contacts etc... you could pull the download block out of the main install, put it into a firstrun type file with an if routine for a file or folder that if not present triggers a download of the files.

 

then use the entire /var/www/owncloud folder as a volume for share.

 

 

the other way, which keeps everybody on the same version (better for support) is to keep the download block in the main image install but download to a temporary location and then use a similar firstrun scenario as above to move the files into their final place and again share the entire /var/www/owncloud folder.

 

there may be pitfalls i haven't foreseen, and it's not my decision to make, i'm just offering a potential.

 

 

 

either of these two methods would not affect any preloaded apps that owncloud ships with.

 

there would be some work for updaters though, but nothing too major.

 

 

but it's all hypothetical anyway as it's not my container.

Link to comment

Any reason a config file isn't downloaded when I add this docker? I'm on Version 6 RC1 currently. It worked fine on an earlier version though I don't think it was unraid itself that made it work but actually having a config file.

Dockers don't really "download" a config file. The docker container has files, some of which are stored where you specify in your volume mappings. What are your volume mappings?
Link to comment

Any reason a config file isn't downloaded when I add this docker? I'm on Version 6 RC1 currently. It worked fine on an earlier version though I don't think it was unraid itself that made it work but actually having a config file.

Dockers don't really "download" a config file. The docker container has files, some of which are stored where you specify in your volume mappings. What are your volume mappings?

 

You will see the folders in the attached picture.

58aad7880f656_ss2015-05-31at10_37_27.png.2c90c5ebc335a77e65dc0d0d60837dc7.png

Link to comment
  • 2 weeks later...

Just noticed something interesting with the OwnCloud Docker. I get this msg in the OwnCloud GUI:

 

ownCloud 8.0.4 is available. Get more information on how to update.

 

I was surprised to see this as I have EDGE set to 1.

 

I thought - OK Ill force the issue and hit save on the Docker settings page to force it to look. Still nothing - doesn't seem to be updating?

 

So far CHBMB has confirmed this behaviour too. Can anyone else?

Link to comment

Had a look at the install.sh file, I don't completely understand it, but it's mighty clever....

 

there's a wget for the changelog I think and then the download for Owncloud is extrapolated from that I think.  Interestingly, the changelog only seems to include the latest release from major versions.

 

I deleted my container and redownloaded, still on 8.0.3

 

Going to try with EDGE off and see what happens, couldn't find how EDGE is implemented in the dockerfile or install.sh

 

gfjardim is a genius, I'm pretty sure of that....

Link to comment

Interesting, noticed this line about another client when trying to download, wonder if that has anything to do with it?

RUBble7.jpg

 

Interesting I just noticed that same line (different image ID though) when I updated smdion's Reverse-Proxy Docker just minutes ago. What do they have in common - Apache?

Link to comment

FWIW

 

Updated ownCloud via docker to 8.0.4 Stable. Unfortunately ownCloud got stuck in 'maintenance mode" for well over an hour. To remedy this persistent problem I did the following to correct this issue on my system:

 

1. SSH to unRAID

 

2. on the command line enter: docker exec -ti ownCloud /bin/bash

 

3. docker command line enter: sudo -u nobody php /var/www/owncloud/occ upgrade

 

wait a few seconds or minutes and all should be back to normal except for addons that will be disabled.

Link to comment

FWIW

 

Updated ownCloud via docker to 8.0.4 Stable. Unfortunately ownCloud got stuck in 'maintenance mode" for well over an hour. To remedy this persistent problem I did the following to correct this issue on my system:

 

1. SSH to unRAID

 

2. on the command line enter: docker exec -ti ownCloud /bin/bash

 

3. docker command line enter: sudo -u nobody php /var/www/owncloud/occ upgrade

 

wait a few seconds or minutes and all should be back to normal except for addons that will be disabled.

 

This info is already on the OP.

Link to comment

Just updated and all seemingly went well. I did need the use of the FAQ section of the original post:

 

Q: Whenever I try and do an update to the owncloud docker, it tries to update my database and just gets stuck on the page that says: "This ownCloud instance is currently being updated, which may take a while. This page will refresh itself when the ownCloud instance is available again."

 

A: Please try to upgrade from the command line:

Code: [select]

docker exec ownCloud sudo -u nobody -s /bin/bash -c "php /var/www/owncloud/occ upgrade"

 

The only difference in this update was the page. The text was a little different, it just asked me to "Click" here to update. When I clicked on it nothing happened.

 

No matter, once I dropped to the command line and executed the above command. Worked great.

 

Thank you!

Link to comment

Does anyone have a reverse proxy working for OwnCloud? I've edited config.php as per OwnCloud's suggestions but no luck with my Apache Reverse Proxy.

 

 'overwritehost' => 'domain.com:5880',
  'overwriteprotocol' => 'https',
  'overwritewebroot' => '/owncloud',
  "overwritecondaddr" => "^192\.168\.0\.2$",

 

So I then tried to do it via good old port forwarding and it works but I can't upload my domain's certificate. Is there a way you can expose the Apache/NGINX config for Owncloud so I can setup my own certificates? Thank you!

 

EDIT

Ended up renaming the certs to match the default certificates of server.key & server.pem. That seems to have worked.

Link to comment

Here's the entry in my proxyconfig.conf

 

<VirtualHost *:80>
ServerName server.com
ServerAdmin webmaster@localhost

<Location />
Order deny,allow
Deny from all
</Location>
RewriteEngine On
RewriteRule ^/?(.*) https://server.com/$1 [R=301,L]
</VirtualHost>

<VirtualHost *:443>
ServerName server.com
ServerAdmin webmaster@localhost
DocumentRoot /var/www


SSLEngine on
SSLProtocol All -SSLv2 -SSLv3
SSLCipherSuite AES128+EECDH:AES128+EDH
SSLCertificateFile /config/root/ssl.crt
SSLCertificateKeyFile /config/root/decryptedssl.key
SSLCertificateChainFile /config/root/sub.class1.server.ca.pem
SSLProxyEngine On
SSLProxyVerify none 
SSLProxyCheckPeerCN off
SSLProxyCheckPeerName off
        ProxyRequests off

<Location /owncloud>
ProxyPass https://192.168.0.1:8000
ProxyPassReverse https://192.168.0.1:8000
</Location>

 

And my owncloud config.php

 

$CONFIG = array (
  'instanceid' => 'INSTANCEID',
  'passwordsalt' => 'PASSWORD',
  'secret' => 'SECRET',
  'trusted_domains' => 
  array (
    0 => '192.168.0.1',
    1 => 'server.com',
  ),
  'datadirectory' => '/var/www/owncloud/data',
  'overwritewebroot' => '/owncloud',
  'overwrite.cli.url' => 'https://server.com',
  'overwritehost' => 'server.com',
  'overwriteprotocol' => 'https',
  'dbtype' => 'mysql',
  'version' => '8.0.3.4',
  'dbname' => 'owncloud',
  'dbhost' => '192.168.0.1',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'oc_USER',
  'dbpassword' => 'PASSWORD',
  'installed' => true,
  'forcessl' => true,
  'forceSSLforSubdomains' => true,
  'mail_smtpmode' => 'smtp',
  'mail_smtpsecure' => 'ssl',

 

Other than the config.php didn't change anything else in Owncloud.  No messing around with certificates or anything..

 

Hope it helps.  :D

Link to comment

Here's the entry in my proxyconfig.conf

 

<VirtualHost *:80>
ServerName server.com
ServerAdmin webmaster@localhost

<Location />
Order deny,allow
Deny from all
</Location>
RewriteEngine On
RewriteRule ^/?(.*) https://server.com/$1 [R=301,L]
</VirtualHost>

<VirtualHost *:443>
ServerName server.com
ServerAdmin webmaster@localhost
DocumentRoot /var/www


SSLEngine on
SSLProtocol All -SSLv2 -SSLv3
SSLCipherSuite AES128+EECDH:AES128+EDH
SSLCertificateFile /config/root/ssl.crt
SSLCertificateKeyFile /config/root/decryptedssl.key
SSLCertificateChainFile /config/root/sub.class1.server.ca.pem
SSLProxyEngine On
SSLProxyVerify none 
SSLProxyCheckPeerCN off
SSLProxyCheckPeerName off
        ProxyRequests off

<Location /owncloud>
ProxyPass https://192.168.0.1:8000
ProxyPassReverse https://192.168.0.1:8000
</Location>

 

And my owncloud config.php

 

$CONFIG = array (
  'instanceid' => 'INSTANCEID',
  'passwordsalt' => 'PASSWORD',
  'secret' => 'SECRET',
  'trusted_domains' => 
  array (
    0 => '192.168.0.1',
    1 => 'server.com',
  ),
  'datadirectory' => '/var/www/owncloud/data',
  'overwritewebroot' => '/owncloud',
  'overwrite.cli.url' => 'https://server.com',
  'overwritehost' => 'server.com',
  'overwriteprotocol' => 'https',
  'dbtype' => 'mysql',
  'version' => '8.0.3.4',
  'dbname' => 'owncloud',
  'dbhost' => '192.168.0.1',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'oc_USER',
  'dbpassword' => 'PASSWORD',
  'installed' => true,
  'forcessl' => true,
  'forceSSLforSubdomains' => true,
  'mail_smtpmode' => 'smtp',
  'mail_smtpsecure' => 'ssl',

 

Other than the config.php didn't change anything else in Owncloud.  No messing around with certificates or anything..

 

Hope it helps.  :D

 

I used CHBMB's help as documented above and it works great!

 

While I am on it - @CHBMB - have you noticed that OwnCloud has stopped "Recommending" their mail application?

 

When I updated I noticed that it had been removed (which of course is probably because it was "saved" to the docker file system itself and was not persisted BUT when I went to add it again I noticed it had stopped being recommended. Certainly doesn't seem like they have developed it for some time.

Link to comment

 

Hope it helps.  :D

 

Thank you! I am going to try this now.

 

I also saw that even though I have EDGE = 1 I can only install ownCloud 8.0.4 not the newest 8.1. Anyone able to install 8.1?

 

It doesn't have EDGE feature, and I see no reference to 8.1 on https://www.owncloud.org/changelog/

 

the developer is currently imagining version 10, can you please offer an upgrade to version 10.

Link to comment

Here's the entry in my proxyconfig.conf

 

<VirtualHost *:80>
ServerName server.com
ServerAdmin webmaster@localhost

<Location />
Order deny,allow
Deny from all
</Location>
RewriteEngine On
RewriteRule ^/?(.*) https://server.com/$1 [R=301,L]
</VirtualHost>

<VirtualHost *:443>
ServerName server.com
ServerAdmin webmaster@localhost
DocumentRoot /var/www


SSLEngine on
SSLProtocol All -SSLv2 -SSLv3
SSLCipherSuite AES128+EECDH:AES128+EDH
SSLCertificateFile /config/root/ssl.crt
SSLCertificateKeyFile /config/root/decryptedssl.key
SSLCertificateChainFile /config/root/sub.class1.server.ca.pem
SSLProxyEngine On
SSLProxyVerify none 
SSLProxyCheckPeerCN off
SSLProxyCheckPeerName off
        ProxyRequests off

<Location /owncloud>
ProxyPass https://192.168.0.1:8000
ProxyPassReverse https://192.168.0.1:8000
</Location>

 

And my owncloud config.php

 

$CONFIG = array (
  'instanceid' => 'INSTANCEID',
  'passwordsalt' => 'PASSWORD',
  'secret' => 'SECRET',
  'trusted_domains' => 
  array (
    0 => '192.168.0.1',
    1 => 'server.com',
  ),
  'datadirectory' => '/var/www/owncloud/data',
  'overwritewebroot' => '/owncloud',
  'overwrite.cli.url' => 'https://server.com',
  'overwritehost' => 'server.com',
  'overwriteprotocol' => 'https',
  'dbtype' => 'mysql',
  'version' => '8.0.3.4',
  'dbname' => 'owncloud',
  'dbhost' => '192.168.0.1',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'oc_USER',
  'dbpassword' => 'PASSWORD',
  'installed' => true,
  'forcessl' => true,
  'forceSSLforSubdomains' => true,
  'mail_smtpmode' => 'smtp',
  'mail_smtpsecure' => 'ssl',

 

Other than the config.php didn't change anything else in Owncloud.  No messing around with certificates or anything..

 

Hope it helps.  :D

 

I used CHBMB's help as documented above and it works great!

 

While I am on it - @CHBMB - have you noticed that OwnCloud has stopped "Recommending" their mail application?

 

When I updated I noticed that it had been removed (which of course is probably because it was "saved" to the docker file system itself and was not persisted BUT when I went to add it again I noticed it had stopped being recommended. Certainly doesn't seem like they have developed it for some time.

 

I hadn't noticed the email application.  To be honest I'm not a massive Owncloud user, mainly use the android client, but set it up for the wife.  I do think it's brilliant though.  I use SyncThing to, well, sync, the wife's laptop to Unraid automatically and then share that folder in Owncloud so she can access her stuff when she's out and about.  Fantastic, and because she's been a good girl I've granted her unlimited storage, but not admin rights! :)

Link to comment

 

Hope it helps.  :D

 

Thank you! I am going to try this now.

 

I also saw that even though I have EDGE = 1 I can only install ownCloud 8.0.4 not the newest 8.1. Anyone able to install 8.1?

 

It doesn't have EDGE feature, and I see no reference to 8.1 on https://www.owncloud.org/changelog/

 

https://doc.owncloud.org/server/8.1/user_manual/

 

They mention 8.1 all over the manual. Weird.

They're anticipating a future release.

Link to comment

 

Hope it helps.  :D

 

Thank you! I am going to try this now.

 

I also saw that even though I have EDGE = 1 I can only install ownCloud 8.0.4 not the newest 8.1. Anyone able to install 8.1?

 

It doesn't have EDGE feature, and I see no reference to 8.1 on https://www.owncloud.org/changelog/

 

https://doc.owncloud.org/server/8.1/user_manual/

 

They mention 8.1 all over the manual. Weird.

They're anticipating a future release.

 

Ok sorry for the confusion!

Link to comment

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.