• 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 says" ... 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
  How to access netPI? firefly 6 39 May-16th-2019, 02:31 AM
Last Post: firefly
  Wi-Fi access problem MGharat 3 12 March-12th-2019, 09:27 AM
Last Post: Armin@netPI
  access to netPI MGharat 2 19 March-7th-2019, 07:16 AM
Last Post: Armin@netPI
  [SOLVED] Access problems Azzamjj 8 172 January-25th-2019, 07:43 AM
Last Post: Armin@netPI
  [INFO] RESTful API for Docker remote control Armin@netPI 0 93 December-17th-2018, 10:15 AM
Last Post: Armin@netPI
  Remote Access Jonas.Sellmann@outlook.de 12 456 September-20th-2018, 10:20 AM
Last Post: Armin@netPI
Information Managing netPI's Docker from remote via RESTful API for netPI versions < 1.1.4.0 Armin@netPI 4 283 September-7th-2018, 10:41 AM
Last Post: Armin@netPI
  [SOLVED] after WIFI enabled - no access paubau 7 263 August-30th-2018, 02:04 PM
Last Post: Armin@netPI
  Accessing Docker daemon through remote CLI adeeljsid 2 166 August-30th-2018, 12:32 PM
Last Post: Armin@netPI
  Access Denied to LED1 / LED2 crthomas1234 1 104 July-12th-2018, 04:36 PM
Last Post: Armin@netPI

Forum Jump:


Users browsing this thread: 1 Guest(s)