ownCloud install fails.

535 views
Skip to first unread message

kKimmell

unread,
Nov 21, 2016, 1:16:34 PM11/21/16
to Alt-F
I'm using a DNS-327L/0.1RC5. Tried to install from the Alt-F Packages interface which failed so from the cli I type:

 ipkg install owncloud

and get:

Package owncloud (7.0.2) installed in /Alt-F is up to date.
Configuring owncloud
Downloading https://download.owncloud.org/community/owncloud-7.0.2.tar.bz2...
--2016-11-21 18:13:01--  https://download.owncloud.org/community/owncloud-7.0.2.tar.bz2
Resolving download.owncloud.org... 2a01:4f8:190:21ad::3, 213.239.207.26, 46.4.80.187, ...
Connecting to download.owncloud.org|2a01:4f8:190:21ad::3|:443... failed: Address family not supported by protocol.
Connecting to download.owncloud.org|213.239.207.26|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2016-11-21 18:13:01 ERROR 404: Not Found.


******************************************************
* Downloading of ownCloud from its home site failed. *
******************************************************

postinst script returned status 1
ERROR: owncloud.postinst returned 1
Nothing to be done
Successfully terminated.

João Cardoso

unread,
Nov 21, 2016, 2:08:13 PM11/21/16
to Alt-F


On Monday, 21 November 2016 18:16:34 UTC, kKimmell wrote:
I'm using a DNS-327L/0.1RC5. Tried to install from the Alt-F Packages interface which failed so from the cli I type:

 ipkg install owncloud

and get:

Package owncloud (7.0.2) installed in /Alt-F is up to date.
Configuring owncloud
Downloading https://download.owncloud.org/community/owncloud-7.0.2.tar.bz2...
--2016-11-21 18:13:01--  https://download.owncloud.org/community/owncloud-7.0.2.tar.bz2
Resolving download.owncloud.org... 2a01:4f8:190:21ad::3, 213.239.207.26, 46.4.80.187, ...
Connecting to download.owncloud.org|2a01:4f8:190:21ad::3|:443... failed: Address family not supported by protocol.
Connecting to download.owncloud.org|213.239.207.26|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2016-11-21 18:13:01 ERROR 404: Not Found.

Yes, I have to update that, last 7.x release is 7.0.15, don't know if the last version will have new requiremenets (https://owncloud.org/changelog/)

There is already an open ticket on that subject: https://sourceforge.net/p/alt-f/packagerequest/75/

Thanks

kKimmell

unread,
Nov 21, 2016, 2:54:30 PM11/21/16
to Alt-F
Looks like 7.x is no longer supported according to your link.

I'd be willing to tool around with that last 7.x version if it helps... or even the latest 8.x or 9.x. Just might need a quick primer or link to one to explain how to build/debug :)

kKimmell

unread,
Nov 21, 2016, 2:58:51 PM11/21/16
to Alt-F
Looking at the manual linux install page:

Prerequisites

The ownCloud .tar archive contains all of the required PHP modules. This section lists all required and optional PHP modules. Consult the PHP manual for more information on modules. Your Linux distribution should have packages for all required modules. You can check the presence of a module by typing php -m | grep -i <module_name>. If you get a result, the module is present.

Required:

  • php5 (>= 5.4)
  • PHP module ctype
  • PHP module dom
  • PHP module GD
  • PHP module iconv
  • PHP module JSON
  • PHP module libxml (Linux package libxml2 must be >=2.7.0)
  • PHP module mb multibyte
  • PHP module posix
  • PHP module SimpleXML
  • PHP module XMLWriter
  • PHP module zip
  • PHP module zlib

Database connectors (pick the one for your database:)

  • PHP module sqlite (>= 3, usually not recommended for performance reasons)
  • PHP module pdo_mysql (MySQL/MariaDB)
  • PHP module pgsql (requires PostgreSQL >= 9.0)

Recommended packages:

  • PHP module curl (highly recommended, some functionality, e.g. HTTP user authentication, depends on this)
  • PHP module fileinfo (highly recommended, enhances file analysis performance)
  • PHP module bz2 (recommended, required for extraction of apps)
  • PHP module intl (increases language translation performance and fixes sorting of non-ASCII characters)
  • PHP module mcrypt (increases file encryption performance)
  • PHP module openssl (required for accessing HTTPS resources)

Required for specific apps:

  • PHP module ldap (for LDAP integration)
  • PHP module ftp (for FTP storage / external user authentication)
  • PHP module imap (for external user authentication)
  • PHP module smbclient (SMB/CIFS integration)

João Cardoso

unread,
Nov 21, 2016, 3:25:15 PM11/21/16
to Alt-F


On Monday, 21 November 2016 19:54:30 UTC, kKimmell wrote:
Looks like 7.x is no longer supported according to your link.

I'd be willing to tool around with that last 7.x version if it helps... or even the latest 8.x or 9.x. Just might need a quick primer or link to one to explain how to build/debug :)

Owncloud is a "meta" package, it is only a couple of scripts that verify the current setup, downloads and install the tarball.
You need first to install php and lighttpd and setup a running lighttpd -- you can do that from the webUI. Then you have to run the owncloud.preinst script and if there are no errors run the owncloud.postinst. You have to change in owncloud.postinst 'VERSION=7.0.2' for 'VERSION=7.0.15' and it will most surely run OK. For latter versions only trying.

I attach the three install scripts that needs to be run from the command line, the preinst (pre install) and the postinst (post-install, in really it does the install), and the owncloud.postrm (post remove)

owncloud.postinst
owncloud.postrm
owncloud.preinst

kKimmell

unread,
Nov 21, 2016, 4:38:22 PM11/21/16
to Alt-F
I do have mysql, lighttpd, and php running... do these need to be run from any specific area? I threw them in my RAIDs /opt directory and gave them 744 permissions and get this:

# ./owncloud.preinst
-sh: ./owncloud.preinst: not fou
nd

João Cardoso

unread,
Nov 22, 2016, 11:48:39 AM11/22/16
to Alt-F

I updated owncloud package to 7.0.15 (untested). Update feeds and try installing.

kKimmell

unread,
Nov 22, 2016, 1:54:25 PM11/22/16
to Alt-F


On Tuesday, November 22, 2016 at 11:48:39 AM UTC-5, João Cardoso wrote:

I updated owncloud package to 7.0.15 (untested). Update feeds and try installing.


Can't seem to get mysql to start back up now... reboot after saves didn't correct. Could this have somehow goofed mysql install up?

kKimmell

unread,
Nov 22, 2016, 4:55:51 PM11/22/16
to Alt-F
As it stands after having to manually setup mysql again and manually start it again ownCloud 7.0.15 is running. Everything so far seem to work... Admin screen complains about a UTF problem:

Locale not working

System locale can not be set to a one which supports UTF-8.
This means that there might be problems with certain characters in file names.
We strongly suggest to install the required packages on your system to support one of the following locales: en_US.UTF-8/fr_FR.UTF-8/es_ES.UTF-8/de_DE.UTF-8/ru_RU.UTF-8/pt_BR.UTF-8/it_IT.UTF-8/ja_JP.UTF-8/zh_CN.UTF-8.

Still not sure why adding new stuff would have stopped some services from remembering to autostart.

kKimmell

unread,
Dec 1, 2016, 10:00:43 AM12/1/16
to Alt-F
Ok... so after the "clean" install of Alt-F and confirming that lighttpd and mysql were setup and restarting on reboot I am back to this. The 7.0.15 version of owncloud installed fine from the cli (probably would have from the gui too). I've setup the database and connected and the basics work. Still getting the UTF errors but I can live with it.

7.x is obviously very outdated at this point. I've downloaded 8.2.9 and am going to attempt to install it manually since I've got no real time into the oC setup yet. From what I can tell, the only thing that's out of the ordinary in this setup are the data and config links in /opt/owncloud.

Is that correct? Am I able to simply move the current /opt/owncloud directory elsewhere and put the new one in place and replace those two links or are there more things outside of my vision that would need done to test this? Also, if this test shows that it can run (at least on the 327L) would we be able to change the Alt-F repo or would it present problems on other versions?

I don't think 9.x would work becasue it's mysql and php requirements aren't yet met by Alt-F's versions.

Thanks,
kK

kKimmell

unread,
Dec 1, 2016, 10:17:29 AM12/1/16
to Alt-F
Ok... so I did what I said above and maybe it's working? :)

Problem is, when I restart lighttpd and try to hit the /owncloud directory I get stopped by that UTF error. Apparently I can't even get in without that working in 8.x where as it was just an "annoyance" in 7.x. Message as follows reported at login screen:

Setting locale to en_US.UTF-8/fr_FR.UTF-8/es_ES.UTF-8/de_DE.UTF-8/ru_RU.UTF-8/pt_BR.UTF-8/it_IT.UTF-8/ja_JP.UTF-8/zh_CN.UTF-8 failed

Please install one of these locales on your system and restart your webserver.


Is there an easy way to rectifiy this to see if 8.x is viable?


TY,
kK

João Cardoso

unread,
Dec 1, 2016, 10:22:46 AM12/1/16
to Alt-F


On Thursday, 1 December 2016 15:00:43 UTC, kKimmell wrote:
Ok... so after the "clean" install of Alt-F and confirming that lighttpd and mysql were setup and restarting on reboot I am back to this. The 7.0.15 version of owncloud installed fine from the cli (probably would have from the gui too). I've setup the database and connected and the basics work. Still getting the UTF errors but I can live with it.

Yes, that is an old topic. Alt-F doesn't has "locales"
 

7.x is obviously very outdated at this point. I've downloaded 8.2.9 and am going to attempt to install it manually since I've got no real time into the oC setup yet. From what I can tell, the only thing that's out of the ordinary in this setup are the data and config links in /opt/owncloud.

The details are in the previously posted/attached owncloud.postinst script. The idea is to install owncloud out of the httpd server area, to allow owncloud upgrading simpler, and to also keep the data area out of the install area. If I remember correctly.
But for a simpler feasibility test you can just install owncloud in the https server htdocs, change the files ownership to lighttpd:network and if it works refine the install.
For security reasons you might not open owncloud within the Alt-F webU; again, that can be refined latter


Is that correct? Am I able to simply move the current /opt/owncloud directory elsewhere and put the new one in place and replace those two links or are there more things outside of my vision that would need done to test this? Also, if this test shows that it can run (at least on the 327L) would we be able to change the Alt-F repo or would it present problems on other versions?

I don't think 9.x would work becasue it's mysql and php requirements aren't yet met by Alt-F's versions.

You might have to enable further PHP extensions, again, read the postinst script. Currently json session sqlite3 xml mbstring zip zlib gd curl ctype simplexml hash dom pdo pdo_sqlite fileinfo iconv are enabled.
mysql also is supported by PHP -- the mysql and/or pdo_mysql extensions.

Let me know if that works and if you had to enable others, or if others are needed. And no more than just the ones needed.
 

Thanks,
kK

João Cardoso

unread,
Dec 1, 2016, 10:27:15 AM12/1/16
to Alt-F


On Thursday, 1 December 2016 15:17:29 UTC, kKimmell wrote:
Ok... so I did what I said above and maybe it's working? :)

Problem is, when I restart lighttpd and try to hit the /owncloud directory I get stopped by that UTF error. Apparently I can't even get in without that working in 8.x where as it was just an "annoyance" in 7.x.

Again, the postinst script "fixes" that for 7.x:

# disable owncloud locale checking
sed -i '/OC_Util::isSetLocaleWorking/,/}/s|.*|#&|' $OC_DIR/lib/private/util.php

Can you read sh(sed? The above comments the line containing 'OC_Util::isSetLocaleWorking' in file /opt/owncloud/lib/private/util.php

Don't know if it will work for latter versions

kKimmell

unread,
Dec 1, 2016, 10:29:17 AM12/1/16
to Alt-F


On Thursday, December 1, 2016 at 10:22:46 AM UTC-5, João Cardoso wrote:


On Thursday, 1 December 2016 15:00:43 UTC, kKimmell wrote:
Ok... so after the "clean" install of Alt-F and confirming that lighttpd and mysql were setup and restarting on reboot I am back to this. The 7.0.15 version of owncloud installed fine from the cli (probably would have from the gui too). I've setup the database and connected and the basics work. Still getting the UTF errors but I can live with it.

Yes, that is an old topic. Alt-F doesn't has "locales"


Well this seems to be the stopping point then. Everything seems to be working but the locales is an issue. I can't even login to owncloud if one of the UTF8 locales isn't available as of now. I'm looking at owncloud forums to see if there's any way to bypass it. In the 7.x version you updated last month it let me in but gave a warning about filenames but now it won't even show that actual login prompt until the UTF8 issue is solved.

So there's no easy way to even fake this? It's reporting that it's failing at it's attempt to set the locale.

Otherwise, all I did to "upgrade" was download and unxip/rar the latest 8.x version into a different directory. Then I copied all content from /opt/owncloud to a backup location and moved the new contents to /opt/owncloud and relinked ./data and ./config to where you have them placed.

I'm happy to test and will keep digging for a solution. I believe that I've got all of the necessary php extensions in place and the php and mysql version are "ok" for 8.x so this UTF thing is the current hurdle.

kKimmell

unread,
Dec 1, 2016, 10:38:37 AM12/1/16
to Alt-F
This article get's close: https://forum.owncloud.org/viewtopic.php?t=26289

I tried editing php.ini and uncommenting the utf-8 line and tried it both as UTF-8 and utf-8 with restarts of lighttpd but no luck... is there anywhere else in the Alt-f structure that I'd find any php settings that might creep into the lighttpd settings?

kKimmell

unread,
Dec 1, 2016, 10:40:10 AM12/1/16
to Alt-F


On Thursday, December 1, 2016 at 10:27:15 AM UTC-5, João Cardoso wrote:


On Thursday, 1 December 2016 15:17:29 UTC, kKimmell wrote:
Ok... so I did what I said above and maybe it's working? :)

Problem is, when I restart lighttpd and try to hit the /owncloud directory I get stopped by that UTF error. Apparently I can't even get in without that working in 8.x where as it was just an "annoyance" in 7.x.

Again, the postinst script "fixes" that for 7.x:

# disable owncloud locale checking
sed -i '/OC_Util::isSetLocaleWorking/,/}/s|.*|#&|' $OC_DIR/lib/private/util.php

Can you read sh(sed? The above comments the line containing 'OC_Util::isSetLocaleWorking' in file /opt/owncloud/lib/private/util.php

Don't know if it will work for latter versions


Just caught this... no, i can't interpret that. Are you thinking that I should try to run that at cli to see if it works here?

kKimmell

unread,
Dec 1, 2016, 10:45:03 AM12/1/16
to Alt-F
Eureka!!!!  :)

So I backed util.php up and ran

sed -i '/OC_Util::isSetLocaleWorking/,/}/s|.*|#&|' ./util.php

from the directory that it lives in and I'm now at an upgrade screen... will report after.

Thanks!

kKimmell

unread,
Dec 1, 2016, 1:01:41 PM12/1/16
to Alt-F
So the update wouldn't happen becasue I was hopping to many "point" upgrades. I have stepped through three upgrades now to the latest version of 8.x which is working... but something's not quite right... I think maybe graphics (gd/imagemagik) or something is not quite right... I don't see checkboxes but if I click close enough the action is accepted and saved via AJAX.

It is complaining on the main admin screen with the following warnings:

  • Same UTF warning -- and the sed command did work on all three versions in my upgrade path
  • The "Strict-Transport-Security" HTTP header is not configured to least "15768000" seconds. For enhanced security we recommend enabling HSTS as described in our security tips.
  • No memory cache has been configured. To enhance your performance please configure a memcache if available. Further information can be found in our documentation.
  • Your PHP version (5.4.34) is no longer supported by PHP. We encourage you to upgrade your PHP version to take advantage of performance and security updates provided by PHP.


So while the version of php we have is acceptable, it's complaining about it being out of support.


Next I will try to do a clean install of the prior 8.x version to see if things look right. But is there any hope of updating php to something more recent, if not the latest in version 5?


kKimmell

unread,
Dec 1, 2016, 1:46:37 PM12/1/16
to Alt-F
Ok... so verifying that a clean install of ownCloud 8.1.11 seems to be working without the graphical wonkiness.

I cleaned out what I had done so if this were being done be another user my steps would be:

  • get all of the lighttpd/php settings right and restart lighttod
  • ipkg install owncloud
  • download ownCloud 8.1.11 and unzip/tar it somewhere
  • recursively chmod the apps directory to lighttpd:network
  • rename the config directory
  • copy the crt file from the renamed config directory into the Alt-F created owncloud-config directory
  • rename the owncloud-config/config.php to config.php.bak so it will run the setup wizard
  • create your mysql database and user
  • recursively delete /opt/owncloud/*
  • move your new version into /opt/owncloud/
  • create the ./data and ./config links to
  • browse to http://[YOUR.IP.ADDR]/owncloud and walk through the setup

As it stands it is working and looking fine with these warning on the admin screen:


  • System locale can not be set to a one which supports UTF-8.
    This means that there might be problems with certain characters in file names.
  • We strongly suggest installing the required packages on your system to support one of the following locales: en_US.UTF-8/fr_FR.UTF-8/es_ES.UTF-8/de_DE.UTF-8/ru_RU.UTF-8/pt_BR.UTF-8/it_IT.UTF-8/ja_JP.UTF-8/zh_CN.UTF-8.
  • No memory cache has been configured. To enhance your performance please configure a memcache if available. Further information can be found in our documentation.
  • The "Strict-Transport-Security" HTTP header is not configured to least "15768000" seconds. For enhanced security we recommend enabling HSTS as described in our security tips.

I assume a lot of what I did is what you do in your pre and post install scripts?? I'll continue toying with this version to confirm that it is the newest version that we can run on the current repo enabled version of rc0.5.


Can you detail if mysql and/or php versions in 0.6 will be any newer? I'll be happy to test rc0.6 for you :)

João Cardoso

unread,
Dec 1, 2016, 2:45:26 PM12/1/16
to Alt-F


On Thursday, 1 December 2016 18:46:37 UTC, kKimmell wrote:
Ok... so verifying that a clean install of ownCloud 8.1.11 seems to be working without the graphical wonkiness.

I cleaned out what I had done so if this were being done be another user my steps would be:

  • get all of the lighttpd/php settings right and restart lighttod
  • ipkg install owncloud
  • download ownCloud 8.1.11 and unzip/tar it somewhere
  • recursively chmod the apps directory to lighttpd:network
  • rename the config directory
  • copy the crt file from the renamed config directory into the Alt-F created owncloud-config directory
  • rename the owncloud-config/config.php to config.php.bak so it will run the setup wizard
  • create your mysql database and user
  • recursively delete /opt/owncloud/*
  • move your new version into /opt/owncloud/
  • create the ./data and ./config links to
  • browse to http://[YOUR.IP.ADDR]/owncloud and walk through the setup

As it stands it is working and looking fine with these warning on the admin screen:


  • System locale can not be set to a one which supports UTF-8.
    This means that there might be problems with certain characters in file names.
    We strongly suggest installing the required packages on your system to support one of the following locales: en_US.UTF-8/fr_FR.UTF-8/es_ES.UTF-8/de_DE.UTF-8/ru_RU.UTF-8/pt_BR.UTF-8/it_IT.UTF-8/ja_JP.UTF-8/zh_CN.UTF-8.
  • No memory cache has been configured. To enhance your performance please configure a memcache if available. Further information can be found in our documentation.
  • The "Strict-Transport-Security" HTTP header is not configured to least "15768000" seconds. For enhanced security we recommend enabling HSTS as described in our security tips.

I assume a lot of what I did is what you do in your pre and post install scripts??


Yes, mostly
 

I'll continue toying with this version to confirm that it is the newest version that we can run on the current repo enabled version of rc0.5.


I will then release a owncloud-8.1.11 package for you to try (from a clean state, if possible).

Do you think that one has to/should use mysql? I know that for "performance" reason that is recommended, but I think that it puts an additional burden on our low powered boxes. And what is mean with "performance"? On a single user light usage?

sqlite is already on the lighttpd dependencies list, should mysql-server be put on the owncloud dependencies list?
sqlite has no initial user setup, but mysql might need manual intervention. Doesn't starting mysql ('rcmysqld start') is enough to make it available to owncloud or special user intervention is needed?

 


Can you detail if mysql and/or php versions in 0.6 will be any newer?


I'm afraid they will mostly be the same or eventually only minor versions (such as php-5.4.45)
 

I'll be happy to test rc0.6 for you :)


Thanks
 

kKimmell

unread,
Dec 1, 2016, 2:53:12 PM12/1/16
to Alt-F

On Thursday, December 1, 2016 at 2:45:26 PM UTC-5, João Cardoso wrote:
I will then release a owncloud-8.1.11 package for you to try (from a clean state, if possible).

Do you think that one has to/should use mysql? I know that for "performance" reason that is recommended, but I think that it puts an additional burden on our low powered boxes. And what is mean with "performance"? On a single user light usage?

sqlite is already on the lighttpd dependencies list, should mysql-server be put on the owncloud dependencies list?
sqlite has no initial user setup, but mysql might need manual intervention. Doesn't starting mysql ('rcmysqld start') is enough to make it available to owncloud or special user intervention is needed?

Oh no, I'm sure sqlite would be fine for most instances... you had commented that the 327L was "beefier" in another one of my threads so I was trialing it that way. I will try a clean install and leave it as sqlite. I am having a problem getting the smtp email notifications working now that I didn't have before so you may want to hold off until I verify if the problem is mine.

 
 

Can you detail if mysql and/or php versions in 0.6 will be any newer?


I'm afraid they will mostly be the same or eventually only minor versions (such as php-5.4.45)

Awww... that's sad. Even 5.5 brought a lot to the table in terms of speed and security. Oh well - I'm getting more out of this little box that I thought I would. Just need to figure out how to compile my own stuff now without hurting the hybrid nature of it.

kKimmell

unread,
Dec 5, 2016, 11:40:34 AM12/5/16
to Alt-F
I'm going to have to say hold off... I've tested all versions of 8.0 in sqlite mode and a few in mysql mode and can't get the email notifications to work in any format. Still trouble shooting. I know it was working with the 7.x version you have in the repo now. Hopefully it's fixable becasue the package support is what I think a lot of oC users will be looking for and at least version 8 has *some* that still work. Will report back here.
Reply all
Reply to author
Forward
0 new messages