Missing app store

I cant access the app store on one of my nextcloud servers.

I have 2 Webserver with nextcloud that access a maria db - galera cluster. Data Directory is on a Fileserver thats accessible via NFS.
Things work out that way but on one Server I enable certain apps (calendar, contacs). I just dont see them in the Apps menu. The other one is working as intended and I have those apps enabled there. And its not like all apps are missing. LDAP Integration and external storage are working fine on both.

Tried adding appstoreurl and appstoreenabled to the config.php but no change.

This is no longer a valid config variable.

Yes, remove every app store related entry from config.php. Non of them is necessary anymore use the Nextcloud App Store and some even break it.
If the problem still exist, the problem need to be investigated at different place.

But do I understand it right that enabled apps are not usable anymore? Or is just the app store not reachable?

Also provide possible Nextcloud log entries, produced during access attempt, as well as those from webserver and in case database.

Adding those variables was just a try to fix the issue. Removed them again.
And enabled apps are usable. Its just that on one webserver I cant enable those apps as they are simply missing. I only have enabled and disabled available there. The categories for apps are missing. Thats why I assume I lack connection to the app store.

Here is an extract of the recent nextcloud log entries.

Sabre\HTTP\ClientHttpException: Unauthorized 2017-06-23T09:07:05+0200
Error PHP Invalid argument supplied for foreach() at /var/www/nextcloud/lib/private/Installer.php#360 2017-06-23T09:06:57+0200
Error PHP fclose() expects parameter 1 to be resource, boolean given at /var/www/nextcloud/lib/private/Files/Storage/Local.php#218 2017-06-23T09:06:57+0200
Error PHP fread() expects parameter 1 to be resource, boolean given at /var/www/nextcloud/lib/private/Files/Storage/Local.php#217 2017-06-23T09:06:57+0200
Error PHP fopen(/nc-data/appdata_ocukryt2ztzg/appstore/apps.json): failed to open stream: No such file or directory at /var/www/nextcloud/lib/private/Files/Storage/Local.php#216 2017-06-23T09:06:57+0200
Error PHP filesize(): stat failed for /nc-data/appdata_ocukryt2ztzg/appstore/apps.json at /var/www/nextcloud/lib/private/Files/Storage/Local.php#211 2017-06-23T09:06:57+0200
Error PHP fopen(/nc-data/appdata_ocukryt2ztzg/appstore/apps.json): failed to open stream: No such file or directory at /var/www/nextcloud/lib/private/Files/Storage/Local.php#287 2017-06-23T09:06:57+0200
Error PHP fclose() expects parameter 1 to be resource, boolean given at /var/www/nextcloud/lib/private/Files/Storage/Local.php#218 2017-06-23T09:06:56+0200
Error PHP fread() expects parameter 1 to be resource, boolean given at /var/www/nextcloud/lib/private/Files/Storage/Local.php#217 2017-06-23T09:06:56+0200
Error PHP fopen(/nc-data/appdata_ocukryt2ztzg/appstore/apps.json): failed to open stream: No such file or directory at /var/www/nextcloud/lib/private/Files/Storage/Local.php#216 2017-06-23T09:06:56+0200
Error PHP filesize(): stat failed for /nc-data/appdata_ocukryt2ztzg/appstore/apps.json at /var/www/nextcloud/lib/private/Files/Storage/Local.php#211 2017-06-23T09:06:56+0200
Error PHP Invalid argument supplied for foreach() at /var/www/nextcloud/lib/private/Installer.php#360 2017-06-23T09:06:56+0200
Error PHP fclose() expects parameter 1 to be resource, boolean given at /var/www/nextcloud/lib/private/Files/Storage/Local.php#218 2017-06-23T09:06:56+0200
Error PHP fread() expects parameter 1 to be resource, boolean given at /var/www/nextcloud/lib/private/Files/Storage/Local.php#217 2017-06-23T09:06:56+0200
Error PHP fopen(/nc-data/appdata_ocukryt2ztzg/appstore/apps.json): failed to open stream: No such file or directory at /var/www/nextcloud/lib/private/Files/Storage/Local.php#216

Webserver logs look ok. Theres nothing suspicious. Couldnt find anything for db either.

There it is, related to all the other errors (beside first).

Found that one, where solution was to remove apps.json from oc_filecache database table, if the file is really not there: App Store not working anymore - #5 by bastoGrande
I guess since everything else is working as you say, access permission will not be the problem.

Do of course a database dump, at least from oc_filecache, put nextcloud into maintenance mode and then in mysql it would be delete from oc_filecache where name='apps.json'; to delete all entries with that filename.
select * from oc_filecache where name='apps.json'; is good to find the right entry first, also because you have two instances and only want to delete the entry for one of them.

1 Like

Thanks for the help. Managed to find the issue.

Checked the path and files were missing due to the second server not having the nfs drive for userdata mounted where the appstore was located. First one had it mounted so there was no issue. Made me feel really dumb :D.