You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Updated from an older ownCloud or fresh install:
7.0.X
List of activated apps:
nothing/defaults
The content of config/config.php:
Insert your config.php content here
(Without the database password, passwordsalt and secret)
Are you using external storage, if yes which one: local/smb/sftp/...
Are you using encryption: yes/no
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
LDAP configuration (delete this part if not used)
run: sqlite3 data/owncloud.db
then execute: select * from oc_appconfig where appid='user_ldap';
Eventually replace sensitive data as the name/IP-address of your LDAP server or groups.
Client configuration
Browser:
chrome
Operating system:
win/fedora21
Logs
Web server error log
Insert your webserver log here
ownCloud log (data/owncloud.log)
{"reqId":"6904790b403e371bf4085202f73bc485","remoteAddr":"130.226.142.243","app":"PHP","message":"ZipArchive::extractTo(): Invalid or uninitialized Zip object at \/var\/www\/html\/owncloud\/lib\/private\/archive\/zip.php#135","level":3,"time":"2015-03-12T18:15:28+00:00"}
{"reqId":"6904790b403e371bf4085202f73bc485","remoteAddr":"130.226.142.243","app":"core","message":"App does not provide an info.xml file","level":3,"time":"2015-03-12T18:15:28+00:00"}
Browser log
Insert your browser log here, this could for example include:
a) The javascript console log
b) The network log
c) ...
I am having the same issue here is what I have in my owncloud log:
Error core App does not provide an info.xml file 2015-03-12T18:27:14+00:00
Error PHP ZipArchive::extractTo(): Invalid or uninitialized Zip object at /var/www/html/owncloud/lib/private/archive/zip.php#135 2015-03-12T18:27:14+00:00
Error core App does not provide an info.xml file
Any apps in "Recommended that I try to enable display this error. Yes I have curl installed.
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>400 Bad Request</title> </head><body> <h1>Bad Request</h1> <p>Your browser sent a request that this server could not understand.<br /> </p> </body></html>
$data['href'] is for example: http://apps.owncloud.com/CONTENT/content-files/168711-documents.zip
Get file with wget from server is working. It redirects to https://apps.owncloud.com/CONTENT/content-files/168711-documents.zip
SSL setup looks good to me. Best bet: @R1tschY is using a distribution that ships an outdated or none certificate bundle at all.
In my opinion it's the administrators' task to ensure that the cURL certificate bundle is properly configured. It's not like you would expect an usual desktop software to come with all certificates on their own.
That said, as there really seem to be a lot of distributions and people doing it wrong a possibility for us would be to make the HTTPHelper use a bundled set of all root certificates. However, this obviously requires us to keep track of the newest bundles 🙈
It prints the status code 200 (OK) and not the status code 400 (Bad Request). @LukasReschke local curl installation seems good. What does owncloud different?
@R1tschY If you add curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, true); does it work then with your test script? – Also what setup is that? Which distribution / PHP version? Would be probably easier if I fire up a VM with the same settings.
Just wanted to confirm that the solution @nhymxu posted above worked for me, and I'm using CentOS 6.6 with the php54w item from the webtatic repo. File is /var/www/html/owncloud/lib/private/httphelper.php for those who arrive via Google.
Turning off certificate validation will break the code validity chain. That's not a solution and people should not insert the line into the code running on their servers.
owncloud should also switch from returning a non-verifiable HTTP URL to the apps repository to an HTTPS URL that can be verified without redirection. That would solve this problem correctly.
There is something more going on here. I'm also using CentOS 7 with the stock PHP 5.4.16. I have installed the GoDaddy root certificates and validated that they are being used, but the same errors are being spit out:
Error core App does not provide an info.xml
Error PHP ZipArchive::extractTo(): Invalid or uninitialized Zip object at /var/www/html/owncloud/lib/private/archive/zip.php#135
Error core App does not provide an info.xml file
Disabling certificate validation is not the way. You've made a great product, but do you really want people to think that you solve issues by making your product less secure? If you feel the issue is that CentOS / RHEL isn't shipping a recent enough set of CA provide the steps for for augmenting those. But I'm here to tell you that isn't the problem.
BTW, here's the way to add the GoDaddy certificates to EL7:
Activity
LukasReschke commentedon Mar 12, 2015
Do you have the PHP cURL extension installed?
agherzan commentedon Mar 12, 2015
Yes:
; Enable curl extension module
extension=curl.so
kneiser commentedon Mar 12, 2015
I am having the same issue here is what I have in my owncloud log:
Error core App does not provide an info.xml file 2015-03-12T18:27:14+00:00
Error PHP ZipArchive::extractTo(): Invalid or uninitialized Zip object at /var/www/html/owncloud/lib/private/archive/zip.php#135 2015-03-12T18:27:14+00:00
Error core App does not provide an info.xml file
Any apps in "Recommended that I try to enable display this error. Yes I have curl installed.
StephanMeijer commentedon Mar 12, 2015
Same issue here, cURL installed as well.
R1tschY commentedon Mar 12, 2015
Same here. I investigated: In https://github.com/owncloud/core/blob/master/lib/private/installer.php#L247:
\OC_Util::getUrlContent($data['href'])returns:$data['href']is for example:http://apps.owncloud.com/CONTENT/content-files/168711-documents.zipGet file with
wgetfrom server is working. It redirects tohttps://apps.owncloud.com/CONTENT/content-files/168711-documents.zipDeepDiver1975 commentedon Mar 12, 2015
@R1tschY thanks - this is actually pretty helpful. Looks like the http->https redirect is not working on your installation.
karlitschek commentedon Mar 12, 2015
@R1tschY Can you try again please? I think we just fixed a bug there.
R1tschY commentedon Mar 12, 2015
Adding
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);in https://github.com/owncloud/core/blob/master/lib/private/httphelper.php#L73 solved it for me. SettingCURLOPT_CAINFOwith downloaded certificates like it is described in http://stackoverflow.com/a/12293898/1188453 did not work.Also using the alternative in https://github.com/owncloud/core/blob/master/lib/private/httphelper.php#L126-137 works.
@karlitschek Did you mean 00f5025? cURL module is installed.
DeepDiver1975 commentedon Mar 12, 2015
@LukasReschke @karlitschek something wrong again with our ssl cert? 🙊
LukasReschke commentedon Mar 12, 2015
SSL setup looks good to me. Best bet: @R1tschY is using a distribution that ships an outdated or none certificate bundle at all.
In my opinion it's the administrators' task to ensure that the cURL certificate bundle is properly configured. It's not like you would expect an usual desktop software to come with all certificates on their own.
That said, as there really seem to be a lot of distributions and people doing it wrong a possibility for us would be to make the HTTPHelper use a bundled set of all root certificates. However, this obviously requires us to keep track of the newest bundles 🙈
I can take a look tomorrow…
karlitschek commentedon Mar 12, 2015
Just to be clear. What I fixed is that the app store returns an https download url now.
R1tschY commentedon Mar 12, 2015
It is very mysterious. I used following php script on the server:
It prints the status code 200 (OK) and not the status code 400 (Bad Request). @LukasReschke local curl installation seems good. What does owncloud different?
Before downloading the app, owncloud for example requests https://api.owncloud.com/v1/content/download/168711/1 with status code 200. Okay, https requests to api.owncloud.com are working.
Sometimes the view with recommended apps is blank: Calls to for example https://api.owncloud.com/v1/content/data/166043 fails with status code 400. Error messages in log:
Trying to get property of non-object at /var/www/virtual/captian7/html/o6d/lib/private/ocsclient.php#180two times andInvalid OCS content returned for app 166043. I don't known for what reason it fails sometimes with status code 400. But https://apps.owncloud.com/CONTENT/content-files/168711-documents.zip always gets status code 400 from within owncloud (besidescurl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);is used).LukasReschke commentedon Mar 13, 2015
@R1tschY If you add
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, true);does it work then with your test script? – Also what setup is that? Which distribution / PHP version? Would be probably easier if I fire up a VM with the same settings.20 remaining items
DeepDiver1975 commentedon Mar 30, 2015
in this case we cannot - in case the issue is still popping up for our users running 8.0 - customer patching is required - #14840 (comment)
closing therefore
davidtacheny commentedon Mar 31, 2015
Yup this worked for me: New Install, CentOS 7, with https redirect:
Adding curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); in https://github.com/owncloud/core/blob/master/lib/private/httphelper.php#L73 solved it for me.
nhymxu commentedon Apr 10, 2015
Adding curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); in https://github.com/owncloud/core/blob/master/lib/private/httphelper.php#L73 solved it for me.
Thanks
tomck commentedon Apr 20, 2015
Just wanted to confirm that the solution @nhymxu posted above worked for me, and I'm using CentOS 6.6 with the php54w item from the webtatic repo. File is /var/www/html/owncloud/lib/private/httphelper.php for those who arrive via Google.
nexflo commentedon May 7, 2015
@DeepDiver1975
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
also fixed it for me on CentOS 6.6
ConsciousUniverse commentedon May 26, 2015
Ditto; adding curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false) to /[installation_root]/lib/private/httphelper.php is a workaround on
ownCloud 8.0.3 (stable), CentOS 7.1.1503, PHP 5.4.16, curl 7.29.0, Nginx 1.8.0
jolorant commentedon Jun 9, 2015
Turning off certificate validation will break the code validity chain. That's not a solution and people should not insert the line into the code running on their servers.
jolorant commentedon Jun 9, 2015
owncloud should also switch from returning a non-verifiable HTTP URL to the apps repository to an HTTPS URL that can be verified without redirection. That would solve this problem correctly.
jbnance commentedon Jun 28, 2015
There is something more going on here. I'm also using CentOS 7 with the stock PHP 5.4.16. I have installed the GoDaddy root certificates and validated that they are being used, but the same errors are being spit out:
Disabling certificate validation is not the way. You've made a great product, but do you really want people to think that you solve issues by making your product less secure? If you feel the issue is that CentOS / RHEL isn't shipping a recent enough set of CA provide the steps for for augmenting those. But I'm here to tell you that isn't the problem.
BTW, here's the way to add the GoDaddy certificates to EL7:
From https://certs.godaddy.com/repository, download:
Place those files in:
Execute the following:
Restart Apache:
As I said, however, this doesn't solve the problem. I'm more than happy to help debug this further but need your instructions.