Docker ownCloud "No marketplace connection: cURL error 60: SSL certificate problem: certificate has expired"

Steps to reproduce

  1. Using Windows 10 laptop, following [instructions here, run docker run -d -p 80:80 owncloud
  2. Open owncloud on localhost:80 , setup the admin username and password, navigate to marketplace

Expected behaviour

Can reach marketplace

Actual behaviour

Marketplace throws error:

No marketplace connection: cURL error 60: SSL certificate problem: certificate has expired

Server configuration

Operating system:
Windows 10 Pro Version 22H2
(Intel(R) Core™ i5-6200U CPU @ 2.30GHz 2.40 GHz)

Web server:
Database:
PHP version:
Whatever comes with Docker?

ownCloud version: (see ownCloud admin page)
version 10.0.10.4

Updated from an older ownCloud or fresh install:

Where did you install ownCloud from:

Signing status (ownCloud 9.0 and above):

Login as admin user into your ownCloud and access 

“No errors have been found.”

The content of config/config.php:

<?php
$CONFIG = array (
  'instanceid' => '...',
  'passwordsalt' => '...',
  'secret' => '...',
  'trusted_domains' => 
  array (
    0 => 'localhost',
  ),
  'datadirectory' => '/var/www/html/data',
  'overwrite.cli.url' => 'http://localhost',
  'dbtype' => 'sqlite3',
  'version' => '10.0.10.4',
  'logtimezone' => 'UTC',
  'installed' => true,
);

The docker logs say:

2023-05-29 15:43:31 172.17.0.1 - - [29/May/2023:21:43:30 +0000] "GET /index.php/apps/market/categories HTTP/1.1" 503 815 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36"

I ran the command suggested [here:

Please post the output from curl -LI https://marketplace.owncloud.com executed on the host as well as from inside of the container.

When I run that command from docker, I get:

# curl -LI https://marketplace.owncloud.com
curl: (60) SSL certificate problem: certificate has expired
More details here: https://curl.haxx.se/docs/sslcerts.html

When I run that command from git bash on my computer directly:

$ curl -LI https://marketplace.owncloud.com
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0  1196    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
HTTP/1.1 200 OK

I see that the [docker website says

DEPRECATED; use “owncloud/server” instead

When I try the same docker command with owncloud/server, the localhost:80 won’t run at all:

docker run -d -p 80:80 owncloud/server

I tried [this recommendation

  • Edit the file resources/config/ca-bundle.crt
  • Search for the certificate “DST Root CA X3”
  • Delete this certificate from the file

I tried that, but I still get the same error:

No marketplace connection: cURL error 60: SSL certificate problem: certificate has expired

I can’t include links, so my markdown is a bit weird… Here I made a gist with markdown that includes links

gist dot github dot com slash theredpea/7dd102f11a50249a41dd5bb9b0d6abde

Hey,

this version looks heavily outdated to me (it was released on 2018-09-18). Maybe something changed in the meantime related to the marketplace connection and this could be solved by using a more recent ownCloud version (current is 10.12.1)?

1 Like

Thank you @tom42! I agree my version is probably outdated, I guess that’s why Docker website says “DEPRECATED use owncloud/server instead”

I see owncloud/server has more recent tags/versions

But I also had issues with owncloud/server

hub.docker.com /r /owncloud /server /tags

I may try again, thanks for your advice!

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.