Error installing apps: No DNS record found for github.com

Support intro

Sorry to hear you’re facing problems. :slightly_frowning_face:

The community help forum (help.nextcloud.com) is for home and non-enterprise users. Support is provided by other community members on a best effort / “as available” basis. All of those responding are volunteering their time to help you.

If you’re using Nextcloud in a business/critical setting, paid and SLA-based support services can be accessed via portal.nextcloud.com where Nextcloud engineers can help ensure your business keeps running smoothly.

Getting help

In order to help you as efficiently (and quickly!) as possible, please fill in as much of the below requested information as you can.

Before clicking submit: Please check if your query is already addressed via the following resources:

(Utilizing these existing resources is typically faster. It also helps reduce the load on our generous volunteers while elevating the signal to noise ratio of the forums otherwise arising from the same queries being posted repeatedly).

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can. :heart:

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • 30.0.6
  • Operating system and version (e.g., Ubuntu 24.04):
    • Ubuntu LTS 24.04
  • Web server and version (e.g, Apache 2.4.25):
    • Nginx 1.24.0
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • nginx 1.24.0
  • PHP version (e.g, 8.3):
    • 8.3
  • Is this the first time you’ve seen this error? (Yes / No):
    • Yes
  • When did this problem seem to first start?
    • After upgrading to 30.0.6
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • wget nextcloud-29.0.1.zip
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • No

Summary of the issue you are facing:

[Whenever I try to install an app, I get an error message saying “No DNS record found for github.com”]

Steps to replicate it (hint: details matter!):

  1. Log in to Nextcloud
  2. Open “Apps”
  3. Choose an app and click “Download and enable”

Log entries

Nextcloud

Please provide the log entries from your Nextcloud log that are generated during the time of problem (via the Copy raw option from Administration settings->Logging screen or from your nextcloud.log located in your data directory). Feel free to use a pastebin/gist service if necessary.

{"reqId":"SmMF7aXWQtSgQ8unLBdJ","level":0,"time":"2025-03-02T01:02:27+00:00","remoteAddr":"192.168.1.1","user":"Ken","app":"no app in context","method":"GET","url":"/ocs/v2.php/apps/notifications/api/v2/notifications","message":"dirty table reads: SELECT `name` FROM `*PREFIX*authtoken` WHERE (`uid` = :dcValue1) AND (`last_activity` >= :dcValue2)","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:135.0) Gecko/20100101 Firefox/135.0","version":"30.0.6.2","exception":{"Exception":"Exception","Message":"dirty table reads: SELECT `name` FROM `*PREFIX*authtoken` WHERE (`uid` = :dcValue1) AND (`last_activity` >= :dcValue2)","Code":0,"Trace":[{"file":"/usr/share/nginx/nextcloud/lib/private/DB/ConnectionAdapter.php","line":50,"function":"executeQuery","class":"OC\\DB\\Connection","type":"->"},{"file":"/usr/share/nginx/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php","line":289,"function":"executeQuery","class":"OC\\DB\\ConnectionAdapter","type":"->"},{"file":"/usr/share/nginx/nextcloud/apps/notifications/lib/Service/ClientService.php","line":37,"function":"executeQuery","class":"OC\\DB\\QueryBuilder\\QueryBuilder","type":"->"},{"file":"/usr/share/nginx/nextcloud/apps/notifications/lib/Controller/EndpointController.php","line":92,"function":"hasTalkDesktop","class":"OCA\\Notifications\\Service\\ClientService","type":"->"},{"file":"/usr/share/nginx/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":208,"function":"listNotifications","class":"OCA\\Notifications\\Controller\\EndpointController","type":"->"},{"file":"/usr/share/nginx/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":114,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/usr/share/nginx/nextcloud/lib/private/AppFramework/App.php","line":161,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/usr/share/nginx/nextcloud/lib/private/Route/Router.php","line":302,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/usr/share/nginx/nextcloud/ocs/v1.php","line":43,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/usr/share/nginx/nextcloud/ocs/v2.php","line":7,"args":["/usr/share/nginx/nextcloud/ocs/v1.php"],"function":"require_once"}],"File":"/usr/share/nginx/nextcloud/lib/private/DB/Connection.php","Line":402,"message":"dirty table reads: SELECT `name` FROM `*PREFIX*authtoken` WHERE (`uid` = :dcValue1) AND (`last_activity` >= :dcValue2)","tables":["oc_authtoken"],"reads":["oc_authtoken"],"exception":{},"CustomMessage":"dirty table reads: SELECT `name` FROM `*PREFIX*authtoken` WHERE (`uid` = :dcValue1) AND (`last_activity` >= :dcValue2)"}}

Web Browser

If the problem is related to the Web interface, open your browser inspector Console and Network tabs while refreshing (reloading) and reproducing the problem. Provide any relevant output/errors here that appear.

PASTE

Web server / Reverse Proxy

The output of your Apache/nginx/system log in /var/log/____:

Not applicable

Configuration

Nextcloud

The output of occ config:list system or similar is best, but, if not possible, the contents of your config.php file from /path/to/nextcloud is fine (make sure to remove any identifiable information!):

<?php
$CONFIG = array (
  'instanceid' => '***REDACTED***',
  'passwordsalt' => '***REDACTED***',
  'secret' => '***REDACTED***',
  'trusted_domains' => 
  array (
    0 => 'nextcloud.mydomain.com',
  ),
  'datadirectory' => '/usr/share/nginx/nextcloud-data',
  'dbtype' => 'mysql',
  'version' => '30.0.6.2',
  'overwrite.cli.url' => 'https://nextcloud.mydomain.com',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'myusername',
  'dbpassword' => 'mypassword',
  'default_phone_region' => 'US',
  'installed' => true,
  'maintenance_window_start' => 6,
  'mail_smtpmode' => 'sendmail',
  'mail_sendmailmode' => 'smtp',
  'mail_from_address' => 'nextcloud',
  'mail_domain' => 'mydomain.com',
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' => 
  array (
    'host' => 'localhost',
    'port' => 6379,
  ),
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 0,
);

Apps

The output of occ app:list (if possible).

Tips for increasing the likelihood of a response

  • Use the preformatted text formatting option in the editor for all log entries and configuration output.
  • If screenshots are useful, feel free to include them.
    • If possible, also include key error output in text form so it can be searched for.
  • Try to edit log output only minimally (if at all) so that it can be ran through analyzers / formatters by those trying to help you.

Does it work again meanwhile?

I remarked a “downtime” of github yesterday - while configuring my matrix-synapse server. As well as for nextcloud the most important files for matrix lay on github, but it wasn’t reachable.

Maybe maintenance on github?

Today all seems to be ok again.

Just checked. No joy.

then maybe this is helpful for your case

I saw that last night, but I’m afraid I don’t understand any of it.

If you type host github.com on your system terminal, you should see the ip address from github.com (for me 140.82.121.4). If there is an error, it is a problem with your DNS resolver.

If that works, anything in your webserver logs?

They were all fixed and merged into the code, so by now in current versions this should be fixed… (but it is likely the place where the problem starts, so you can try to track back the function that tries to resolve the hostname).
It might be something in the php configuration, not sure if you can disable dns name resolving there…

ah, ok →
yes i agree with the local dns check if the nextcloud server uses a dns server that is able to (re-)solve github.com

curl https://github.com in the terminal on the nextcloud server also shouldn’t deliver a 404 !

On ubuntu based nextcloud server it is also possible to check in a admin shell

sudo resolvectl status

should deliver an output of used and configured dns servers on the local server

host github.com returned the IP address 140.82.114.4 and a few communications timeouts. The curl command returned the github index.html file.

I just had a thought: could this be a problem caused by my Wireguard VPN?

For me that is really fast and there are no timeouts. So it returns just a part and a part times out. Or sometimes it works sometimes there is a timeout?

Ideally, it should not. But yes, when VPNs run the DNS commands through the tunnel and something is not set up right or delays it by a lot, it might create such issues.

not sure if this fits to your needs but there is a WireGuard Option with that you can route DNS traffic through a specific IP.

Perhaps too obvious, but since DNS seems to be generally working on your system, have you tried restarting the PHP-FPM service or rebooting your server?

Restarted php8.3-fpm. No joy.

Have you ever checked if your NC → DNS timeouts occur, if you use the NC without WireGuard tunnel established?
Just for test purposes!

If then all is well, then you could take further investigations in wireguard config.

I found this one and you may find it helpful to investigate wireguard → dns probs if it is really your wireguard that is responsible for your dns lacks.

In the php manual, there is an example to test dns resolution via php script:

Success! I restarted the VPN and now I can install apps. Thanks to everyone who offered assistance.

1 Like

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