How to solve if there is no apps available in nextcloud?

nextcloud

Reading Time: 3 minutes

I sometimes cannot see any apps on Apps page in nextcloud…
Why is it?

This article helps you to resolve it.

This is the error

This screen capture is my environment.
– Left pane has fewer items than usual.



This is normal case.
We can realize left pane has more items than above.



I encountered this problem when I intended to install TOTP which is for 2 factor authentication.

You can see the detail of TOTP by this article.

Root cause and countermeasure 1.

Root cause is happening timeout when nextcloud intends to get the list of application to nextcloud.com .
– Timeout is 60 seconds.

You may be able to see the detail from log.
– Logging in by administrator account and go to Log.



You can find below log which indicates timeout happened.

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



This error happened by traffic condition or nextcloud.com was busy at that time.
– Just saying “I am unlucky 😉

We cannot do anything by our side so let’s have break with a cup of tea.

Code of timeout

This timeout value 60 seconds is in source code.
So we cannot configure unless we directly change source code.

See, there is timeout definition.

lib/private/App/AppStore/Fetcher/Fetcher.php
 fetch($ETag, $content)
画像に alt 属性が指定されていません。ファイル名: image.png



Root cause and countermeasure 2. – 11/02/2021 –

I got advice by comment to this article(Japanese edition) from hiro-matsumoto.

There might be the same error because certificate chain verification error happens during obtaining contents from apps.nextcloud.com by curl in Nextcloud.



Original discussion are there.
As mentioned as below,

The idea of two chains: one is valid and the other remain for higher compatibility with older android devices (older android devices do not check the expiration date of the root certificate if the intermedia is still valid)
But older Linux distros are bothered (with newer ones this is no longer a problem) when a chain leads to an expired root although another chain leads to a correct root. In this case, you can simply remove the expired root certificate.

Older Linux distribution or other older devices may happen this error because they treats as error if 1 of certificate chain is not valid even if at least 1 certificate chain is valid.

To solve this easily simply remove expired certificate by this command.
– If you use hosting service and owned by others you need to request to do it.

rm /etc/ssl/certs/DST_Root_CA_X3.pem

Conclusion

How was it?

This error doesn’t happen many times.
But if you face please confirm these root causes!

If you are interested in nextcloud, this article is best for you!



Are you looking for making container of nextcloud?
Yeah, below article perfectly matches to you!

Author
yatch

I am Japanese software engineer having over 15 years career in embedded system software.
I have worked for designing/quality assurance products which has embedded linux.
I love Raspberry Pi.
I am also interested in stock market.
I married Hong Konger as international marriage.

Please follow me
nextcloud
Please follow me
The World's Linux Journal

Comments

タイトルとURLをコピーしました