Raspberry pi 4. Error on start: "500" Internal Server Error

Afet install on raspberry, i select “I don’t have a domain name”, select domain name and next error:

Error 1
**Error**: `"500"`

**Action**: `"POST" /yunohost/api/postinstall`

**Error message:**

Unexpected server error

**Traceback**

Traceback (most recent call last):
File “/usr/lib/python3/dist-packages/moulinette/interfaces/api.py”, line 460, in process
ret = self.actionsmap.process(arguments, timeout=30, route=_route)
File “/usr/lib/python3/dist-packages/moulinette/actionsmap.py”, line 586, in process
return func(**arguments)
File “/usr/lib/python3/dist-packages/yunohost/log.py”, line 419, in func_wrapper
result = func(*args, **kwargs)
File “/usr/lib/python3/dist-packages/yunohost/tools.py”, line 250, in tools_postinstall
if available:
UnboundLocalError: local variable ‘available’ referenced before assignment

I try reinstall, but same error. But if i select “I already have a domain name…” and type any domain, i can proceed next step. But when i try install any app give next error:

Error 2

Error: "500"

Action: "GET" /yunohost/api/apps/catalog?full&with_categories&locale=en

Error message:

Unable to download the default app catalog: SSL error when connecting to https://app.yunohost.org/default/v2/apps.json

On virtual machines no problem…

The first error seems to be an indirect bug from the fact that your RPi has no internet connectivity (confirmed by the second issue you encountered)

Soooo I would try to debug why your RPi has no connectivity to obtain a usable system …

I found my problem. its incorrect time on my raspberry.
I have different more thant 2 months.
My Solution is:
sudo timedatectl set-time '2022:09:29 12:30:41'
and enable time sync

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