• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Resart/Access NetPi from Remote
#1
Hello,

for a few days, I'm not able to access the website of the NetPi. The only output is: "502 Bad Gateway".
Is there an option for remote access?
The two container are still running.

Thanks in advance,

Jonas
  Reply
#2
Hi Jonas,

do you mean "for a few days" ... means a time period of multiple days? Or do you mean "a few days ago" ... means it happened once some days ago?

Does this error "502 Bad Gateway" come directly when you visit netPI's landing page? Or if you click for example to the Docker tile? What is happening if you repower the device? Does it recover?
You never fail until you stop trying.“, Albert Einstein (1879 - 1955)

  Reply
#3
Hi Armin,

I mean "for a few days". It comes up directly, when I visit netPI's landing page.
Yeah, thats the problem. The device is at one of our customers, so we have no access to the hardware directly.

  Reply
#4
Can you tell us how long the netPI was up and running fine before it starts indicating this error?

You said you are running two containers at a time. Do these containers output data on the console usually if you would run them on a Raspberry PI. Since on netPI under Docker there is no console output you can watch, with netPI firmware lower than 1.1.3.0 Docker stores all console logs into a log file that is growing and growing and can exceed the SD card memory size and then netPI gets instable. With 1.1.3.0 the log file is limted to 1Mbyte cyclic buffer only.

Can you please try to access to page https://<ip address netpi>/login. Maybe this page works.
You never fail until you stop trying.“, Albert Einstein (1879 - 1955)

  Reply
#5
The netPI was up and running for a month.
Yes, one of the containers creates outputs to the console.

When I try to access https://<ip address netpi>/login there also comes up the error "502 Bad Gateway".
  Reply
#6
Well the question is now how many output data the container writes in a certain time period ... respectively to the automatically generated logging file.

Back to your question if netPI can be reset from remote ... the only method to reset the device is accross the web interface ... which is not working any more with your netPI. So the only chance I see is to repower the device. I will ask the development team if they have an idea. I will be back to you.
You never fail until you stop trying.“, Albert Einstein (1879 - 1955)

  Reply
#7
Thats about one "output line" per second.

Ok, then I hope there will be an option.
  Reply
#8
Hello,

next week we have the chance to get direct access to the hardware. Can you tell me what we have to do to fix the problem? Is it enough, to simply restart the netPI or have we to delete the logfile with the outputs?
  Reply
#9
So I got a reply from our development team. There is no other solution than to reset the device physically.

I asked the support team as well if anybody has ever recognized that a netPI failed in that way and the answer was no, except uncertain behaviour in case the SD card is "full".

In order to prevent the large log file you have to update netPI with firmware V1.1.3.0RC3. The deploy your containers and everything should work fine. The log file can't get longer than 1 MByte then.

One common word to frequently high written data to the SD card. The SD card is an AND Flash with a defined number of erase/write cycles. I know writing to a log file is not high amount of data per day ... but in another topic in this forum I calculated the maximum amount of data per day to support 10 years lifetime. So if I were you, I would recompile the container that is doing console outputs like is it doing it today and stop it.
You never fail until you stop trying.“, Albert Einstein (1879 - 1955)

  Reply
#10
Ok, then we will reset the device physically and try to reduce our console outputs in the future.

Thank you for your help.
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Wi-fi in Access Point mode Renato75 7 4,649 June-3rd-2022, 12:59 PM
Last Post: Armin@netPI
  NetPI wifi access to WPA2-Enterprise MikeP 4 4,257 September-3rd-2021, 02:56 PM
Last Post: MikeP
  netPI RTE 3: access from several comm. masters tad 3 4,025 June-3rd-2021, 12:03 PM
Last Post: Armin@netPI
  Access to RTC from my own container application tad 1 3,521 March-19th-2021, 02:58 PM
Last Post: Armin@netPI
  Bluetooth Access MGharat 10 8,539 February-25th-2020, 12:58 PM
Last Post: DSongra
Wink How to access Root Directory Rajesh3128 8 5,069 October-16th-2019, 11:19 AM
Last Post: Armin@netPI
  netPI access for remote PLC confign MGharat 3 4,866 October-15th-2019, 09:12 AM
Last Post: Armin@netPI
  How to access netPI? firefly 6 6,121 May-16th-2019, 02:31 AM
Last Post: firefly
  Wi-Fi access problem MGharat 3 4,945 March-12th-2019, 09:27 AM
Last Post: Armin@netPI
  access to netPI MGharat 2 4,076 March-7th-2019, 07:16 AM
Last Post: Armin@netPI

Forum Jump:


Users browsing this thread: 1 Guest(s)