New Installation App Store missing

[details=“Support intro”]

Hello guy I have a new installation on ubuntu but I can’t install a new app in the app store, any help is appreciated.

Nextcloud version (eg, 20.0.5): 27.0.2
Operating system and version (eg, Ubuntu 20.04): Ubuntu 22.04
Apache or nginx version (eg, Apache 2.4.25): 2.4.52
PHP version (eg, 7.4): 8.1

The output of your Nextcloud log in Admin > Logging:

{"reqId":"3bvB5oUGKnikPpo0aXN2","level":2,"time":"2023-08-27T16:13:15+00:00","remoteAddr":"192.168.2.247","user":"admin","app":"appstoreFetcher","method":"GET",
"url":"/index.php/apps/serverinfo/update","message":"Host violates local access rules","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 
Firefox/116.0","version":"27.0.2.1","exception":{"Exception":"OCP\\Http\\Client\\LocalServerException","Message":"Host violates local access rules","Code":0,"Trace"
:[{"file":"/var/www/html/nextcloud/3rdparty/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php","line":35,"function":"OC\\Http\\Client\\{closure}","class":"OC\\Http\\
Client\\DnsPinMiddleware","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/nextcloud/3rdparty/guzzlehttp/guzzle/src/Middleware.php",
"line":31,"function":"__invoke","class":"GuzzleHttp\\PrepareBodyMiddleware","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/guzzlehttp/guzzle/src/RedirectMiddleware.php"
,"line":71,"function":"GuzzleHttp\\{closure}","class":"GuzzleHttp\\Middleware","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html
/nextcloud/3rdparty/guzzlehttp/guzzle/src/Middleware.php","line":63,"function":"__invoke","class":"GuzzleHttp\\RedirectMiddleware","type":"->"},{"file":"/var/www/
html/nextcloud/3rdparty/guzzlehttp/guzzle/src/HandlerStack.php","line":75,"function":"GuzzleHttp\\{closure}","class":"GuzzleHttp\\Middleware","type":"::","args":
["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.php","line":331,"function":"__invoke","class":
"GuzzleHttp\\HandlerStack","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.php","line":168,"function":"transfer","class":
"GuzzleHttp\\Client","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.php","line":187,"function":"requestAsync","class":"GuzzleHttp\\Client",
"type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/nextcloud/lib/private/Http/Client/Client.php","line":226,"function":"request","class
":"GuzzleHttp\\Client","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/App/AppStore/Fetcher/Fetcher.php","line":120,"function":"get","class":"OC\\Http\\Client
\\Client","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/App/AppStore/Fetcher/AppFetcher.php","line":86,"function":"fetch","class":"OC\\App\\AppStore\\Fetcher
\\Fetcher","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/App/AppStore/Fetcher/Fetcher.php","line":190,"function":"fetch","class":"OC\\App\\AppStore\\Fetcher
\\AppFetcher","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/App/AppStore/Fetcher/AppFetcher.php","line":187,"function":"get","class":"OC\\App\\AppStore
\\Fetcher\\Fetcher","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Installer.php","line":421,"function":"get","class":"OC\\App\\AppStore\\Fetcher
\\AppFetcher","type":"->"},{"file":"/var/www/html/nextcloud/apps/serverinfo/lib/SystemStatistics.php","line":97,"function":"isUpdateAvailable","class":
"OC\\Installer","type":"->"},{"file":"/var/www/html/nextcloud/apps/serverinfo/lib/SystemStatistics.php","line":73,"function":"getAppsInfo","class":"OCA\\ServerInfo
\\SystemStatistics","type":"->"},{"file":"/var/www/html/nextcloud/apps/serverinfo/lib/Controller/PageController.php","line":52,"function":"getSystemStatistics",
"class":"OCA\\ServerInfo\\SystemStatistics","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":230,"function":
"update","class":"OCA\\ServerInfo\\Controller\\PageController","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/nextcloud/lib
/private/AppFramework/Http/Dispatcher.php","line":137,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www
/html/nextcloud/lib/private/AppFramework/App.php","line":183,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/html
/nextcloud/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/html/nextcloud/lib/base.php",
"line":1071,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/html/nextcloud/index.php","line":36,"function":"handleRequest","class":
"OC","type":"::"}],"File":"/var/www/html/nextcloud/lib/private/Http/Client/DnsPinMiddleware.php","Line":139,"message":"Host violates local access rules","exception":
{},"CustomMessage":"Host violates local access rules"}}


![image|433x500](upload://zYtoTbNBKQNDfvvgrMXhMZaqEJR.png)

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

  GNU nano 6.2                                                          config.php                                                                   
<?php
$CONFIG = array (
  'instanceid' => 'XXXXXXXXXXXXX',
  'passwordsalt' => 'XXXXXXXXXXXXXXXXXXXXXXXXXX',
  'secret' => 'XXXXXXXXXXXXXXXXXXXXXXXXXXX',
  'trusted_domains' => 
  array (
    0 => 'cloud.jaar-services.com',
    1 => '192.168.2.239',
),
  'datadirectory' => '/var/www/html/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '27.0.2.1',
  'overwrite.cli.url' => 'http://clud.jaar-services.com',
  'dbname' => 'clouddb',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'cloudadmin',
  'dbpassword' => 'XXXXXXXXXXXX',
  'installed' => true,
);

Spelling error

I would say you are missing

‘appstoreenabled’ => ‘true’

In your config.php

Thanks, guy, for your answer but i still have the same problem.

I add in the config file: ‘appstoreenabled’ => ‘true’ and change ‘overwrite.cli.url’ => ‘http://clud.jaar-services.com’, to ‘overwrite.cli.url’ => ‘http://cloud.jaar-services.com’, but i haved the same problems.

Have you restsrted your webserver afterwards?

'appstoreenabled' defaults to true, so no need to set it. It is a boolean value, so if you place it in the config.php, you must set it like this:

  'appstoreenabled' => true,

instead of

  'appstoreenabled' => 'true',

but I don’t think that it is your problem.


Why is this mentioned? Is it outside of your nextcloud installation-path or is Nextcloud installed in /var/www/html/nextcloud ?

Is that directory owned by www-data?

Does exist a folder

/var/www/html/nextcloud/data/appdata_ocplrujqv6n4/appstore ?

and if yes, does it contain the files apps.json, categories.json and future-apps.json ?

Is this the only thing that does not work or do you miss other functionalities as well?

Much luck!

Try restarting your webserver.

I have this same problem. Just installed Nextcloud 27. All looks good. But no App Store even though it recommends I install Group Folders and I want to. How can a clean install be broken?

I added this to config.php

'appstoreenabled' => true,

and restarted the web server.

I checked the data folder and see an empty folder appdata_oc5700cdiyqj/appstore last modified today.

What I have done is pointed the new install at an old data folder, and I see another folder (last modified a long while ago) `appdata_oc5700cdiyqj/appstore’ which has some json files in it.

I wonder if the problem is that I pointed it at an old data folder hoping to inherit stuff and I may be better off pointing it at an empty folder.

Just started with anew database an unpack of the zip and an empty data folder, went through the web install and let it install recommended apps. But go to the app store and there aren’t any but those already installed there. In the log file though:

Could not connect to appstore: cURL error 28: Operation timed out after 60000 milliseconds with 2392064 out of 5599570 bytes received (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://apps.nextcloud.com/api/v1/apps.json
Could not connect to appstore: cURL error 28: Operation timed out after 60000 milliseconds with 2285568 out of 5599570 bytes received (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://apps.nextcloud.com/api/v1/apps.json

I can surf there in my browser and it’s downloading a lot of JSON. I imagine that appstoreFetcher needs a more generous timeout.

And, I found this (IMHO ridiculous) bug:

And so in /var/www/html/nextcloud/lib/private/App/AppStore/Fetcher/Fetcher.php I set timeout to 600 and now it worked.

That sounds flaky to me, as if your server has unstable internet connection?

Opening the “serverinfo” tab in the admin section leads to a server ban by IP by the appstore:

You can take my workaround from there until this get solved.

Much luck,
ernolf