# error on NanoPi

**URL:** https://dietpi.com/forum/t/error-on-nanopi/5611
**Category:** General Discussion
**Created:** [19 August 2021 15:59 UTC](https://dietpi.com/forum/t/error-on-nanopi/5611 "2021-08-19T15:59:47Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![Carbonara](https://dietpi.com/forum/user_avatar/dietpi.com/carbonara/32/2708_2.png) [@Carbonara](https://dietpi.com/forum/u/Carbonara)
#### Post date: [19 August 2021 15:59 UTC](https://dietpi.com/forum/t/error-on-nanopi/5611/1 "2021-08-19T15:59:47Z")

</div>

hi guys, I’m stuck here (I’m a novice user). I use a nano pi neo, how can I fix it?

![]()

 ![errore dietpi.PNG](https://dietpi.com/forum/uploads/default/original/2X/3/33857c1176d3cf89bc18ac854e856fd66b6b63fc.png)

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [19 August 2021 16:11 UTC](https://dietpi.com/forum/t/error-on-nanopi/5611/2 "2021-08-19T16:11:13Z")

</div>

What are you trying to do and did you already changed something?

---

<div class="post-metadata">

### Author: ![Carbonara](https://dietpi.com/forum/user_avatar/dietpi.com/carbonara/32/2708_2.png) [@Carbonara](https://dietpi.com/forum/u/Carbonara)
#### Post date: [19 August 2021 16:14 UTC](https://dietpi.com/forum/t/error-on-nanopi/5611/3 "2021-08-19T16:14:10Z")

</div>

no, it appears after the first boot

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [19 August 2021 18:15 UTC](https://dietpi.com/forum/t/error-on-nanopi/5611/4 "2021-08-19T18:15:17Z")

</div>

linking the related GitHub issue [https://github.com/MichaIng/DietPi/issues/4663](https://github.com/MichaIng/DietPi/issues/4663)

---

<div class="post-metadata">

### Author: ![MichaIng](https://dietpi.com/forum/user_avatar/dietpi.com/michaing/32/7_2.png) [@MichaIng](https://dietpi.com/forum/u/MichaIng)
#### Post date: [20 August 2021 10:52 UTC](https://dietpi.com/forum/t/error-on-nanopi/5611/5 "2021-08-20T10:52:13Z")

</div>

It has been fixed in the meantime by Armbian 🙂.

---

<div class="post-metadata">

### Author: ![non-ice](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/n/e480ec/32.png) [@non-ice](https://dietpi.com/forum/u/non-ice)
#### Post date: [21 September 2021 22:14 UTC](https://dietpi.com/forum/t/error-on-nanopi/5611/6 "2021-09-21T22:14:00Z")

</div>

Hi.  
I am still having this issue.

However this fix from github saved me:

[https://github.com/MichaIng/DietPi/issues/4663](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.”

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [22 September 2021 09:35 UTC](https://dietpi.com/forum/t/error-on-nanopi/5611/7 "2021-09-22T09:35:36Z")

</div>

Not sure how often this has been fixed by Armbian guys 🙄  
Looks like it’s reoccurring again and again.

---

<div class="post-metadata">

### Author: ![MichaIng](https://dietpi.com/forum/user_avatar/dietpi.com/michaing/32/7_2.png) [@MichaIng](https://dietpi.com/forum/u/MichaIng)
#### Post date: [22 September 2021 09:56 UTC](https://dietpi.com/forum/t/error-on-nanopi/5611/8 "2021-09-22T09:56:27Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [22 September 2021 10:31 UTC](https://dietpi.com/forum/t/error-on-nanopi/5611/9 "2021-09-22T10:31:27Z")

</div>

sounds like someone from Armbian guys is hosting the package repository locally at home 🙂

---

<div class="post-metadata">

### Author: ![MichaIng](https://dietpi.com/forum/user_avatar/dietpi.com/michaing/32/7_2.png) [@MichaIng](https://dietpi.com/forum/u/MichaIng)
#### Post date: [24 September 2021 14:23 UTC](https://dietpi.com/forum/t/error-on-nanopi/5611/10 "2021-09-24T14:23:26Z")

</div>

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.
