NextcloudPi appstore cUrl error 6, can't install anything!

Hi!

I’ve set up Nextcloud 18.0.5 with Nextcloudpi 1.26.2 on Debian 10 (buster) x86_64. The instance is running as a VM in Proxmox.

Almost everything goes smoothly, and I am able to set up letsencrypt / duckdns and upload/download and edit files and all, but things fall apart when I try to install any apps. One error message does show its head in the initial install:

cURL error 6: Could not resolve host: github-production-release-asset-2e65be.s3.amazonaws.com (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)

Any app I try to install via WebUI gives me the same error message, and I suspect the original error message has to do with attempting to install the Calendar app. I’ve tried to wait and see if it is a momentary connection error, but it has persisted for a longer period of time now.

I was able to manually install the applications I wanted previously via CLI, but after a clean install even that seems to have failed as trying to install and enable the apps via OCC gives me the exact same error message once again.

I tried

host github-production-release-asset-2e65be.s3.amazonaws.com

Which said the URL was an alias for s3-1-w.amazonaws.com, which I was able to ping from the nextcloud instance shell, dont know if this info is of any use, but if theres a connection error somehow that confuses me further.

Is there any way to remedy this, or has anybody come across similar issues or a fix?

Here’s the output of my Nextcloud log in Admin > Logging:

Error	index	OCP\App\AppPathNotFoundException: Could not find path for spreed	
2020-07-14T19:57:41+0000
Error	index	OCP\App\AppPathNotFoundException: Could not find path for spreed	
2020-07-14T19:57:35+0000
Error	settings	GuzzleHttp\Exception\ConnectException: cURL error 6: Could not resolve host: github-production-release-asset-2e65be.s3.amazonaws.com (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)	
2020-07-14T19:56:53+0000
Error	index	OCP\App\AppPathNotFoundException: Could not find path for spreed	
2020-07-14T19:56:38+0000
Error	index	OCP\App\AppPathNotFoundException: Could not find path for guests	
2020-07-14T19:56:30+0000
Error	index	OCP\App\AppPathNotFoundException: Could not find path for circles	
2020-07-14T19:56:30+0000
Error	index	OCP\App\AppPathNotFoundException: Could not find path for spreed	
2020-07-14T19:56:30+0000
Error	index	OCP\App\AppPathNotFoundException: Could not find path for spreed	
2020-07-14T19:56:29+0000
Error	settings	GuzzleHttp\Exception\ConnectException: cURL error 6: Could not resolve host: github-production-release-asset-2e65be.s3.amazonaws.com (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)	
2020-07-14T19:56:18+0000
Error	settings	GuzzleHttp\Exception\ConnectException: cURL error 6: Could not resolve host: github-production-release-asset-2e65be.s3.amazonaws.com (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)	
2020-07-14T19:52:44+0000
Error	settings	GuzzleHttp\Exception\ConnectException: cURL error 6: Could not resolve host: github-production-release-asset-2e65be.s3.amazonaws.com (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)	
2020-07-14T19:45:41+0000
Error	index	OCP\App\AppPathNotFoundException: Could not find path for spreed	
2020-07-14T19:45:36+0000
Error	core	can't remove app groupfolders. It is not installed.	
2020-07-14T19:45:19+0000
Error	settings	GuzzleHttp\Exception\ConnectException: cURL error 6: Could not resolve host: github-production-release-asset-2e65be.s3.amazonaws.com (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)	
2020-07-14T19:41:20+0000
Error	index	OCP\App\AppPathNotFoundException: Could not find path for spreed	
2020-07-14T19:41:15+0000
Error	settings	GuzzleHttp\Exception\ConnectException: cURL error 6: Could not resolve host: github-production-release-asset-2e65be.s3.amazonaws.com (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)	
2020-07-14T19:41:10+0000
Error	settings	GuzzleHttp\Exception\ConnectException: cURL error 6: Could not resolve host: github-production-release-asset-2e65be.s3.amazonaws.com (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)	
2020-07-14T19:40:34+0000
Error	settings	GuzzleHttp\Exception\ConnectException: cURL error 6: Could not resolve host: github-production-release-asset-2e65be.s3.amazonaws.com (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)	
2020-07-14T19:40:30+0000
Error	index	OCP\App\AppPathNotFoundException: Could not find path for spreed	
2020-07-14T19:40:04+0000
Error	index	OCP\App\AppPathNotFoundException: Could not find path for guests	
2020-07-14T19:39:59+0000
Error	index	OCP\App\AppPathNotFoundException: Could not find path for circles	
2020-07-14T19:39:59+0000
Error	index	OCP\App\AppPathNotFoundException: Could not find path for spreed	
2020-07-14T19:39:59+0000
Error	index	OCP\App\AppPathNotFoundException: Could not find path for spreed	
2020-07-14T19:39:58+0000
Error	settings	GuzzleHttp\Exception\ConnectException: cURL error 6: Could not resolve host: github-production-release-asset-2e65be.s3.amazonaws.com (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)	
2020-07-14T19:38:21+0000
Error	index	OCP\App\AppPathNotFoundException: Could not find path for spreed	
2020-07-14T19:37:56+0000
Error	index	OCP\App\AppPathNotFoundException: Could not find path for spreed	
2020-07-14T19:37:56+0000
Error	index	OCP\App\AppPathNotFoundException: Could not find path for spreed	
2020-07-14T19:37:34+0000
Error	index	OCP\App\AppPathNotFoundException: Could not find path for spreed	
2020-07-14T19:37:17+0000
Error	index	OCP\App\AppPathNotFoundException: Could not find path for spreed	
2020-07-14T19:37:10+0000
Error	index	OCP\App\AppPathNotFoundException: Could not find path for spreed	
2020-07-14T19:37:06+0000
Error	index	OCP\App\AppPathNotFoundException: Could not find path for spreed	
2020-07-14T19:37:05+0000
Error	index	OCP\Files\NotPermittedException: Could not create folder	
2020-07-14T19:37:04+0000
Error	index	OCP\Files\NotPermittedException: Could not create folder	
2020-07-14T19:37:04+0000
Error	index	OCP\App\AppPathNotFoundException: Could not find path for spreed	
2020-07-14T19:37:04+0000
Error	index	OCP\Files\NotPermittedException: Could not create folder	
2020-07-14T19:37:03+0000
Error	index	OCP\App\AppPathNotFoundException: Could not find path for spreed	
2020-07-14T19:37:03+0000
Error	index	OCP\App\AppPathNotFoundException: Could not find path for spreed	
2020-07-14T19:37:01+0000
Error	index	OCP\App\AppPathNotFoundException: Could not find path for spreed	
2020-07-14T19:36:53+0000
Error	index	OCP\App\AppPathNotFoundException: Could not find path for spreed	
2020-07-14T19:36:47+0000
Error	index	OCP\App\AppPathNotFoundException: Could not find path for spreed	
2020-07-14T19:36:41+0000
Error	index	OCP\App\AppPathNotFoundException: Could not find path for spreed	
2020-07-14T19:36:36+0000
Error	index	OCP\App\AppPathNotFoundException: Could not find path for spreed	
2020-07-14T19:36:22+0000
Error	index	OCP\App\AppPathNotFoundException: Could not find path for spreed	
2020-07-14T19:33:23+0000
Error	index	OCP\App\AppPathNotFoundException: Could not find path for spreed	
2020-07-14T19:33:19+0000
Error	index	OCP\App\AppPathNotFoundException: Could not find path for spreed	
2020-07-14T19:33:13+0000
Error	index	OCP\App\AppPathNotFoundException: Could not find path for spreed	
2020-07-14T19:32:57+0000
Error	index	OCP\App\AppPathNotFoundException: Could not find path for guests	
2020-07-14T19:32:29+0000
Error	index	OCP\App\AppPathNotFoundException: Could not find path for circles	
2020-07-14T19:32:29+0000
Error	index	OCP\App\AppPathNotFoundException: Could not find path for spreed	
2020-07-14T19:32:29+0000
Error	index	OCP\App\AppPathNotFoundException: Could not find path for spreed	
2020-07-14T19:32:29+0000
Error	index	OCP\Files\NotPermittedException: Could not create folder	
2020-07-14T19:32:22+0000
Error	index	OCP\Files\NotPermittedException: Could not create folder	
2020-07-14T19:32:22+0000
Error	settings	GuzzleHttp\Exception\ConnectException: cURL error 6: Could not resolve host: github-production-release-asset-2e65be.s3.amazonaws.com (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)	
2020-07-14T19:26:18+0000
Error	settings	GuzzleHttp\Exception\ConnectException: cURL error 6: Could not resolve host: github-production-release-asset-2e65be.s3.amazonaws.com (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)	
2020-07-14T19:25:50+0000
Error	index	OCP\App\AppPathNotFoundException: Could not find path for spreed	
2020-07-14T19:25:32+0000
Error	index	OCP\App\AppPathNotFoundException: Could not find path for circles	
2020-07-14T19:25:09+0000
Error	index	OCP\App\AppPathNotFoundException: Could not find path for guests	
2020-07-14T19:25:09+0000
Error	index	OCP\App\AppPathNotFoundException: Could not find path for spreed	
2020-07-14T19:25:09+0000
Error	index	OCP\App\AppPathNotFoundException: Could not find path for spreed	
2020-07-14T19:25:09+0000
Warning	no app in context	Login failed: ncp (Remote IP: 192.168.1.225)	
2020-07-14T19:20:09+0000
Error	cron	Exception: Not installed	
2020-07-14T19:15:03+0000

Thanks!

The issue persisted even after updating Nextcloud to 18.0.6 in the WebUI.

I tried wget and git clone:ing the Github repos into my /var/www/nextcloud/apps, and enabling them with:

sudo -u www-data php occ app:enable calendar / groupfolders

As I was also unable to even enable them in the WebUI due to the same error message. I was initally able to get them enabled with the OCC command, but the usage was incredibly buggy (webUI blank screen on calendar, group folder icons missing etc.).

I then tried downloading the apps tar.gz from apps.nextcloud.com, rsyncd them via ssh to my nextcloud /var/www/nextcloud/apps folder and extracted them. After this, installing and configuring them via OCC yielded in fully functional installs!

I am still unable to install, or even enable installed apps in the webUI due to the same repeating error message. I tried disabling my firewall or PiHole DNS momentarily to see if I was somehow blocking my own requests, but none of them seemed to help, so I remain stumped, but anyhow here’s a workaround if anyone stumbles upon the identical issue and needs to find a way to resolve it!

I have something like that too

Could not connect to appstore: cURL error 6: Could not resolve host: api.nextcloud.com (see https://curl.haxx.se/libcurl/c/libcurl-errors.html)

Okay! Good to see I’m not alone in this boat.

I just posted my workaround in the above post as I was able to resolve this issue in CLI with the OCC configuration tool.

It was a bit new for me, but it was pretty simple in the end, let me know if you hit any walls and I can try and help and see if we can replicate the workaround :slight_smile:

where is the solution ?

I have the following errors. I can’t download or install anything

Could not connect to appstore: cURL error 6: Could not resolve host: api.nextcloud.com (see https://curl.haxx.se/libcurl/c/libcurl-errors.html)

GuzzleHttp\Exception\ClientException: Client error: GET https://apps.nextcloud.com/apps.json resulted in a 404 Not Found response: <meta name=“viewport” content="width=device-wid (truncated…)

  1. /var/www/html/nextcloud/3rdparty/guzzlehttp/guzzle/src/Middleware.php - line 65:GuzzleHttp\Exception\RequestException::create()
  2. /var/www/html/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php - line 203:GuzzleHttp\Middleware::GuzzleHttp{closure}("*** sensiti … *")
  3. /var/www/html/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php - line 156:GuzzleHttp\Promise\Promise::callHandler()
  4. /var/www/html/nextcloud/3rdparty/guzzlehttp/promises/src/TaskQueue.php - line 47:GuzzleHttp\Promise\Promise::GuzzleHttp\Promise{closure}("*** sensiti … *")
  5. /var/www/html/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php - line 246:GuzzleHttp\Promise\TaskQueue->run()
  6. /var/www/html/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php - line 223:GuzzleHttp\Promise\Promise->invokeWaitFn()
  7. /var/www/html/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php - line 267:GuzzleHttp\Promise\Promise->waitIfPending()
  8. /var/www/html/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php - line 225:GuzzleHttp\Promise\Promise->invokeWaitList()
  9. /var/www/html/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php - line 62:GuzzleHttp\Promise\Promise->waitIfPending()
  10. /var/www/html/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.php - line 183:GuzzleHttp\Promise\Promise->wait()
  11. /var/www/html/nextcloud/lib/private/Http/Client/Client.php - line 228:GuzzleHttp\Client->request()
  12. /var/www/html/nextcloud/lib/private/App/AppStore/Fetcher/Fetcher.php - line 109:OC\Http\Client\Client->get()
  13. /var/www/html/nextcloud/lib/private/App/AppStore/Fetcher/AppFetcher.php - line 86:OC\App\AppStore\Fetcher\Fetcher->fetch()
  14. /var/www/html/nextcloud/lib/private/App/AppStore/Fetcher/Fetcher.php - line 173:OC\App\AppStore\Fetcher\AppFetcher->fetch()
  15. /var/www/html/nextcloud/lib/private/Installer.php - line 408:OC\App\AppStore\Fetcher\Fetcher->get()
  16. /var/www/html/nextcloud/apps/settings/lib/Controller/AppSettingsController.php - line 255:OC\Installer->isUpdateAvailable()
  17. <>OCA\Settings\Controller\AppSettingsController->OCA\Settings\Controller{closure}("*** sensiti … *")
  18. /var/www/html/nextcloud/apps/settings/lib/Controller/AppSettingsController.php - line 248:array_map()
  19. /var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 170:OCA\Settings\Controller\AppSettingsController->listApps()
  20. /var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 100:OC\AppFramework\Http\Dispatcher->executeController()
  21. /var/www/html/nextcloud/lib/private/AppFramework/App.php - line 137:OC\AppFramework\Http\Dispatcher->dispatch()
  22. /var/www/html/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php - line 47:OC\AppFramework\App::main()
  23. <>OC\AppFramework\Routing\RouteActionHandler->__invoke()
  24. /var/www/html/nextcloud/lib/private/Route/Router.php - line 297:call_user_func()
  25. /var/www/html/nextcloud/lib/base.php - line 1007:OC\Route\Router->match()
  26. /var/www/html/nextcloud/index.php - line 37:OC::handleRequest() 2020-07-16T09:39:04+0200
    Warning appstoreFetcher GuzzleHttp\Exception\ClientException: Client error: GET https://apps.nextcloud.com/categories.json resulted in a 404 Not Found response: <meta name=“viewport” content="width=device-wid (truncated…)

does anyone have a solution?

I didn’t solve the resolving issue, so I would love to hear if someone understand it better / has a solution, but my workaround for installing was as follows.

  1. Download the tar.gz file for the app you want to install
  2. Extract it into your /var/www/nextcloud/apps/ directory
  3. cd into your /var/www/nextcloud/ directory
  4. sudo -u www-data php occ app:enable calendar (replace calendar with whatever app you want to install

This worked for me, and I was able to configure the installed apps with occ configuration tool as well.