error on NanoPi Topic is solved

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Post Reply
Carbonara
Posts: 2
Joined: Thu Aug 19, 2021 5:56 pm

error on NanoPi

Post by Carbonara »

hi guys, I'm stuck here (I'm a novice user). I use a nano pi neo, how can I fix it?
Image
Attachments
errore dietpi.PNG
User avatar
Joulinar
Posts: 5935
Joined: Sat Nov 16, 2019 12:49 am

Re: error on NanoPi

Post by Joulinar »

What are you trying to do and did you already changed something?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Carbonara
Posts: 2
Joined: Thu Aug 19, 2021 5:56 pm

Re: error on NanoPi

Post by Carbonara »

no, it appears after the first boot
User avatar
Joulinar
Posts: 5935
Joined: Sat Nov 16, 2019 12:49 am

Re: error on NanoPi

Post by Joulinar »

linking the related GitHub issue https://github.com/MichaIng/DietPi/issues/4663
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
MichaIng
Site Admin
Posts: 3350
Joined: Sat Nov 18, 2017 6:21 pm

Re: error on NanoPi

Post by MichaIng »

It has been fixed in the meantime by Armbian :).
non-ice
Posts: 1
Joined: Wed Sep 22, 2021 12:09 am

Re: error on NanoPi

Post by non-ice »

Hi.
I am still having this issue.

However this fix from github saved me:

https://github.com/MichaIng/DietPi/issues/4663

"solved in this way: select subshell from menu, edit /etc/apt/sources.list.d/armbian.list , change from https to http
I hope it will be useful to someone in the future."
User avatar
Joulinar
Posts: 5935
Joined: Sat Nov 16, 2019 12:49 am

Re: error on NanoPi

Post by Joulinar »

Not sure how often this has been fixed by Armbian guys :roll:
Looks like it's reoccurring again and again.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
MichaIng
Site Admin
Posts: 3350
Joined: Sat Nov 18, 2017 6:21 pm

Re: error on NanoPi

Post by MichaIng »

We are still investigating the issue. It seems to be some sort of response caching that kicks in after a while. The implementation of the router has several layers: Nginx proxy on the host, terminating HTTPS, forwarding to an uWSGI Docker container which again includes an Nginx uWSGI proxy, forwarding to the uWSGI server which wraps the final Flask app. I tried to replicate it (same setup): Even without the recently included final proxy header recognition, the Flask app detects the request scheme/protocol correctly, so the container seems to do a header translation already which made our recent change irrelevant. Locally, even with a long running request loop I couldn't replicate the case that the scheme is after a while wrong in the redirect. Also a dedicated status page keeps returning the correct scheme also on Armbian, even that it's exactly the same script which handles the status page and the redirect with the same function.

We always thought that a change fixed it because reloading the uWSGI server fixes it for a while, and the last change with the proxy headers detection seemed so logic, but I should have been sceptic as also before it worked for a while already, which would have been impossible if the headers were not respected/translated before.

We need to find out where this caching happens and either disable it or assure that it respects the request scheme and/or the proxy headers set by the host's Nginx instance.
User avatar
Joulinar
Posts: 5935
Joined: Sat Nov 16, 2019 12:49 am

Re: error on NanoPi

Post by Joulinar »

sounds like someone from Armbian guys is hosting the package repository locally at home :)
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
MichaIng
Site Admin
Posts: 3350
Joined: Sat Nov 18, 2017 6:21 pm

Re: error on NanoPi

Post by MichaIng »

Or it is a VPS. It shows that sometimes the additional complexity and layers that come with packed containers are not always the best solution. It is a black box for everyone who does not have a deep look into it to understand the internals, so that it is hard to identify issues within and solve them.
Post Reply