Docker - ownCloud 10.4.0 (Stable): domain name resolution not working

I installed ownCloud from Docker. I followed the instruction official instruction.
I can reach the server and add/remove/update files but when I try to access the Market I can’t.
I have a message at the top of the page Admin page that says something like I don’t have access to Internet.

I logged in the Docker and I tried to ping a Internet server and I can’t reach it with the Domain name but I can access it with its IP address.

So, I have access to Internet but without working domain name resolution (DNS).

I added the parameter “dns: -” to docker-compose YML file and that still not working.

What’s the problem and how to fix that?


can you show the ports of you container ?
0e5ad450a85f owncloud/server:10.4 “/usr/bin/entrypoint…” 9 hours ago Up 9 hours (healthy)>8080/tcp oc_owncloud_1

i dont think thinks this sounds like oc issue

Thanks for you fast reply.

So, yes I see the port of my container. The only difference is that I’m using 8099 instead of 8080.

CONTAINER ID        IMAGE                      COMMAND                  CREATED             STATUS                 PORTS                               NAMES
519c2c4e4a6c        owncloud/server:10.4       "/usr/bin/entrypoint…"   6 days ago          Up 5 hours (healthy)>8080/tcp              owncloudserver_owncloud_1

As far as I understand Docker (a beginner user), we can use any host port, it’s not supposed to affect the DNS.

how you paste in that manner were it shows option to scrool

I selected my text and click on the icon </> of the text editor.

1 Like

I found a solution.
I don’t know why, I reset all my .yml file and now that work!!!
Probably I had a wrong characters or something like that!!!

Thanks for your help!!! :slight_smile:

I have got the same pbm but replacing my old docker-compose.yml by the one from the web site (except volume definition) did not change anything. It still failed when trying to upgrade:

owncloud_1  | 2020-04-18T08:07:49.075133025Z 2020-04-18T08:07:49+00:00 Set log level to debug
owncloud_1  | 2020-04-18T08:07:49.134449504Z 2020-04-18T08:07:49+00:00 Repair step: Upgrade app code from the marketplace
owncloud_1  | 2020-04-18T08:07:49.439680948Z 2020-04-18T08:07:49+00:00 Repair info: Using market to update existing apps
owncloud_1  | 2020-04-18T08:07:49.439773424Z 2020-04-18T08:07:49+00:00 Repair info: Attempting to update the following missing apps from market: files_videoplayer
owncloud_1  | 2020-04-18T08:07:49.440009206Z 2020-04-18T08:07:49+00:00 Repair info: Fetching app from market: files_videoplayer
owncloud_1  | 2020-04-18T08:09:59.333491457Z 2020-04-18T08:09:59+00:00 Repair warning: No marketplace connection: cURL error 7: Failed to connect to port 443: Connection timed out
owncloud_1  | 2020-04-18T08:09:59.334024401Z 2020-04-18T08:09:59+00:00 Repair warning: You have incompatible or missing apps enabled that could not be found or updated via the marketplace.
owncloud_1  | 2020-04-18T08:09:59.334456560Z 2020-04-18T08:09:59+00:00 Repair warning: Please install or update the following apps manually or disable them with:
owncloud_1  | 2020-04-18T08:09:59.334543351Z occ app:disable files_videoplayer
owncloud_1  | 2020-04-18T08:09:59.334588426Z 2020-04-18T08:09:59+00:00 Repair warning: For manually updating, see
owncloud_1  | 2020-04-18T08:09:59.345178294Z 2020-04-18T08:09:59+00:00 OC\RepairException: Upgrade is not possible
owncloud_1  | 2020-04-18T08:09:59.345269870Z 2020-04-18T08:09:59+00:00 Update failed
owncloud_1  | 2020-04-18T08:09:59.345432420Z 2020-04-18T08:09:59+00:00 Maintenance mode is kept active

I disable this app (with occ app:disable files_videoplayer) to let the upgrade continue but there are many other apps needing upgrade :frowning:. It seems it was able to do partially the upgrade, but it still in maintenance mode:

owncloud_1  | 2020-04-18T08:22:47.014230812Z 2020-04-18T08:22:47+00:00 Repair step: Upgrade app code from the marketplace
owncloud_1  | 2020-04-18T08:22:47.148684280Z 2020-04-18T08:22:47+00:00 Repair info: Using market to update existing apps
owncloud_1  | 2020-04-18T08:22:47.148792388Z 2020-04-18T08:22:47+00:00 Repair info: Attempting to update the following existing compatible apps from market: comments, configreport, dav, federatedfilesharing, federation, files, files_external, files_sharing, files_trashbin, files_versions, firstrunwizard, market, notifications, provisioning_api, systemtags, updatenotification
owncloud_1  | 2020-04-18T08:22:47.148867956Z 2020-04-18T08:22:47+00:00 Repair info: Fetching app from market: comments
owncloud_1  | 2020-04-18T08:24:58.401034332Z 2020-04-18T08:24:58+00:00 Repair warning: No marketplace connection: cURL error 7: Failed to connect to port 443: Connection timed out
owncloud_1  | 2020-04-18T08:24:58.513541098Z 2020-04-18T08:24:58+00:00 Repair step: Repair MySQL database engine
owncloud_1  | 2020-04-18T08:24:58.862802081Z 2020-04-18T08:24:58+00:00 Repair step: Repair MySQL collation
owncloud_1  | 2020-04-18T08:24:58.877744102Z 2020-04-18T08:24:58+00:00 Repair info: Change collation for oc_migrations ...
owncloud_1  | 2020-04-18T08:25:00.160425570Z 2020-04-18T08:25:00+00:00 Repair step: Repair SQLite autoincrement
owncloud_1  | 2020-04-18T08:25:00.160782513Z 2020-04-18T08:25:00+00:00 Repair step: Repair orphaned reshare
owncloud_1  | 2020-04-18T08:25:00.204670702Z 2020-04-18T08:25:00+00:00 Repair step: Repair duplicate entries in oc_lucene_status
owncloud_1  | 2020-04-18T08:25:00.215345582Z 2020-04-18T08:25:00+00:00 Repair info: lucene_status table does not exist -> nothing to do
owncloud_1  | 2020-04-18T08:25:00.216190558Z 2020-04-18T08:25:00+00:00 Updating database schema
owncloud_1  | 2020-04-18T08:25:07.975877446Z 2020-04-18T08:25:07+00:00 Updated database
owncloud_1  | 2020-04-18T08:25:07.988431242Z 2020-04-18T08:25:07+00:00 Updating <firstrunwizard> ...
owncloud_1  | 2020-04-18T08:25:08.024742990Z 2020-04-18T08:25:08+00:00 Updated <firstrunwizard> to 1.2.0
owncloud_1  | 2020-04-18T08:25:08.029149193Z 2020-04-18T08:25:08+00:00 Updating <market> ...
owncloud_1  | 2020-04-18T08:25:08.066198598Z 2020-04-18T08:25:08+00:00 Updated <market> to 0.5.0
owncloud_1  | 2020-04-18T08:25:08.153157877Z 2020-04-18T08:25:08+00:00 Updating <configreport> ...
owncloud_1  | 2020-04-18T08:25:08.189014286Z 2020-04-18T08:25:08+00:00 Updated <configreport> to 0.2.0
owncloud_1  | 2020-04-18T08:25:08.192666811Z 2020-04-18T08:25:08+00:00 Updating <dav> ...
owncloud_1  | 2020-04-18T08:25:17.303028011Z 2020-04-18T08:25:17+00:00 Repair step: Remove invalid calendar and addressbook shares
owncloud_1  | 2020-04-18T08:25:17.366500964Z 2020-04-18T08:25:17+00:00 Updated <dav> to 0.5.0
owncloud_1  | 2020-04-18T08:25:17.369294687Z 2020-04-18T08:25:17+00:00 Updating <federatedfilesharing> ...
owncloud_1  | 2020-04-18T08:25:18.827995289Z 2020-04-18T08:25:18+00:00 Updated <federatedfilesharing> to 0.5.0
owncloud_1  | 2020-04-18T08:25:18.900043977Z 2020-04-18T08:25:18+00:00 Updating <files_sharing> ...
owncloud_1  | 2020-04-18T08:25:20.540369923Z 2020-04-18T08:25:20+00:00 Updated <files_sharing> to 0.12.0
owncloud_1  | 2020-04-18T08:25:20.565753018Z 2020-04-18T08:25:20+00:00 Updating <notifications> ...
owncloud_1  | 2020-04-18T08:25:20.624110823Z 2020-04-18T08:25:20+00:00 Updated <notifications> to 0.5.0
owncloud_1  | 2020-04-18T08:25:20.831072642Z 2020-04-18T08:25:20+00:00 Repair step: Repair mime types
owncloud_1  | 2020-04-18T08:25:20.831548947Z 2020-04-18T08:25:20+00:00 Repair step: Detect file cache entries with path that does not match parent-child relationships
owncloud_1  | 2020-04-18T08:25:20.832175869Z 2020-04-18T08:25:20+00:00 Repair step: Generate ETags for file where no ETag is present.
owncloud_1  | 2020-04-18T08:25:20.834723484Z 2020-04-18T08:25:20+00:00 Repair info: ETags have been fixed for 0 files/folders.
owncloud_1  | 2020-04-18T08:25:20.834915818Z 2020-04-18T08:25:20+00:00 Repair step: Clean tags and favorites
owncloud_1  | 2020-04-18T08:25:20.837108867Z 2020-04-18T08:25:20+00:00 Repair info: 0 tags of deleted users have been removed.
owncloud_1  | 2020-04-18T08:25:20.840502122Z 2020-04-18T08:25:20+00:00 Repair info: 0 tags for delete files have been removed.
owncloud_1  | 2020-04-18T08:25:20.843570096Z 2020-04-18T08:25:20+00:00 Repair info: 0 tag entries for deleted tags have been removed.
owncloud_1  | 2020-04-18T08:25:20.846133309Z 2020-04-18T08:25:20+00:00 Repair info: 0 tags with no entries have been removed.
owncloud_1  | 2020-04-18T08:25:20.847314605Z 2020-04-18T08:25:20+00:00 Repair step: Drop old database tables
owncloud_1  | 2020-04-18T08:25:20.847679029Z 2020-04-18T08:25:20+00:00 Drop old database tables
owncloud_1  | 2020-04-18T08:25:20.847735695Z 2020-04-18T08:25:20+00:00 
owncloud_1  | 2020-04-18T08:25:20.849535593Z 2020-04-18T08:25:20+00:00  Starting ...
owncloud_1  | 2020-04-18T08:25:20.938470496Z   0/29 [>-]   0%2020-04-18T08:25:20+00:00 
owncloud_1  | 2020-04-18T08:25:20.938563977Z  Drop old database table: contacts_cards_properties
owncloud_1  | 2020-04-18T08:25:20.938756030Z 2020-04-18T08:25:20+00:00 
owncloud_1  | 2020-04-18T08:25:20.939337506Z 2020-04-18T08:25:20+00:00 Repair step: Drop old background jobs
owncloud_1  | 2020-04-18T08:25:20.951317116Z 2020-04-18T08:25:20+00:00 Repair step: Remove getetag entries in properties table
owncloud_1  | 2020-04-18T08:25:20.953105093Z 2020-04-18T08:25:20+00:00 Repair info: Removed 0 unneeded "{DAV:}getetag" entries from properties table.
owncloud_1  | 2020-04-18T08:25:20.954335270Z 2020-04-18T08:25:20+00:00 Repair step: Repair invalid shares
owncloud_1  | 2020-04-18T08:25:20.958499801Z 2020-04-18T08:25:20+00:00 Repair step: Repair sub shares
owncloud_1  | 2020-04-18T08:25:20.961127179Z 2020-04-18T08:25:20+00:00 Repair step: Remove old share propagation app entries
owncloud_1  | 2020-04-18T08:25:20.961368826Z 2020-04-18T08:25:20+00:00 Repair step: Move user avatars outside the homes to the new location
owncloud_1  | 2020-04-18T08:25:20.961613967Z 2020-04-18T08:25:20+00:00 Repair info: No action required
owncloud_1  | 2020-04-18T08:25:20.962188458Z 2020-04-18T08:25:20+00:00 Repair step: Fix user avatars location
owncloud_1  | 2020-04-18T08:25:20.962276258Z 2020-04-18T08:25:20+00:00 Repair info: No action required
owncloud_1  | 2020-04-18T08:25:20.962855581Z 2020-04-18T08:25:20+00:00 Repair step: Remove shares of a users root folder
owncloud_1  | 2020-04-18T08:25:20.971360354Z 2020-04-18T08:25:20+00:00 Repair step: Repair unmerged shares
owncloud_1  | 2020-04-18T08:25:20.971592244Z 2020-04-18T08:25:20+00:00 Repair step: Disable extra themes
owncloud_1  | 2020-04-18T08:25:21.000103946Z 2020-04-18T08:25:20+00:00 Starting code integrity check...
owncloud_1  | 2020-04-18T08:25:33.192622182Z 2020-04-18T08:25:33+00:00 Finished code integrity check
owncloud_1  | 2020-04-18T08:25:33.303723582Z 2020-04-18T08:25:33+00:00 Update successful
owncloud_1  | 2020-04-18T08:25:33.304423594Z 2020-04-18T08:25:33+00:00 Maintenance mode is kept active
owncloud_1  | 2020-04-18T08:25:33.304593989Z 2020-04-18T08:25:33+00:00 Reset log level
owncloud_1  | 2020-04-18T08:25:35.081625405Z  29/29 [============================] 100%ownCloud is in maintenance mode - no app have been loaded
owncloud_1  | 2020-04-18T08:25:35.081861259Z 
owncloud_1  | 2020-04-18T08:25:35.883226078Z ownCloud is in maintenance mode - no app have been loaded
owncloud_1  | 2020-04-18T08:25:35.883312411Z 
owncloud_1  | 2020-04-18T08:25:35.923590577Z <warning>ownCloud is in maintenance mode</warning>
owncloud_1  | 2020-04-18T08:25:35.923688565Z Maybe an upgrade is already in process. Please check the logfile (data/owncloud.log). If you want to re-run the upgrade procedure, remove the "maintenance mode" from config.php and call this script again.
owncloud_1  | 2020-04-18T08:25:35.960061996Z Writing objectstore config...
owncloud_1  | 2020-04-18T08:25:37.237811340Z Writing php config...
owncloud_1  | 2020-04-18T08:25:39.172239986Z ownCloud is in maintenance mode - no app have been loaded
owncloud_1  | 2020-04-18T08:25:39.172332383Z 
owncloud_1  | 2020-04-18T08:25:39.258897859Z Updating htaccess config...
owncloud_1  | 2020-04-18T08:25:39.917768768Z ownCloud is in maintenance mode - no app have been loaded
owncloud_1  | 2020-04-18T08:25:39.917861603Z 
owncloud_1  | 2020-04-18T08:25:40.002491651Z .htaccess has been updated
owncloud_1  | 2020-04-18T08:25:40.039810468Z Writing apache config...
owncloud_1  | 2020-04-18T08:25:41.312878636Z Enabling cron background...
owncloud_1  | 2020-04-18T08:25:41.997641315Z ownCloud is in maintenance mode - no app have been loaded
owncloud_1  | 2020-04-18T08:25:41.997765134Z 
owncloud_1  | 2020-04-18T08:25:42.051927709Z Set mode for background jobs to 'cron'
owncloud_1  | 2020-04-18T08:25:42.090331403Z Touching cron configs...
owncloud_1  | 2020-04-18T08:25:42.229377218Z Starting cron daemon...
owncloud_1  | 2020-04-18T08:25:42.309775641Z Starting apache daemon...
owncloud_1  | 2020-04-18T08:25:42.992133281Z [Sat Apr 18 08:25:42.991707 2020] [mpm_prefork:notice] [pid 276] AH00163: Apache/2.4.41 (Ubuntu) configured -- resuming normal operations
owncloud_1  | 2020-04-18T08:25:42.992228092Z [Sat Apr 18 08:25:42.991949 2020] [core:notice] [pid 276] AH00094: Command line: '/usr/sbin/apache2 -f /etc/apache2/apache2.conf -D FOREGROUND'
owncloud_1  | 2020-04-18T08:25:43.867584786Z - - [18/Apr/2020:08:25:43 +0000] "GET /status.php HTTP/1.1" 200 1061 "-" "curl/7.65.3"

As the apps are not upgraded, is it safe to switch off maintenance mode in this state? Will it broke my previous backup and user accounts?


I’m really not a super user with ownCloud but I fixed my DNS issue with this line in my docker-compose.yml file.
The following is only the begin of my yml file:

version: ‘2.1’
image: owncloud/server:${OWNCLOUD_VERSION}
restart: always
hostname: owncloud



Only have to add the dns: parameter under the services --> owncloud section.
This parameter has fixed my issue.
Following this setting I was be able to access the Market.
If that not fixed your Market issue, I won’t be able to help much…


1 Like