• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[SOLVED] netPI stops working (502 - Bad Gateway)
Hey everyone,

I was facing the problem many times now, that my netPis stoped working. When I tried to reach the edge-gateway-manager than, the Error "502 - Bad Gateway" was shown. I've been using software version 1.1.4/1.1.5/1.1.6

It happened to me, when I ran a mariadb-database-server on the netPi and other containers tried to read/write data from/to it. (I know the database-sd-card-issue with 3000 w/e cycles). How can it happen, that the nginX-Server does not respond anymore? The "act"-LED keeps flashing, though.

I've attached the syslog from right before the freeze and right after it.

Best Regards,

Attached Files
.txt   syslog.txt (Size: 105.84 KB / Downloads: 0)
Hello Andi,

you already stated using a database on netPI could get critical caused by the limited read/write cycles. In Revision #2 (matrix code of netPI states a number in the lower right corner, this is a revision number) of netPI hardware we solved that problem that the SD card is no longer sealed and can be replaced by any other SD card of your choice. For example an SD card of type SLC with read/write 100.000w/e cycles per block which is 33 times more compared to the current preinstalled one or an SD card of bigger size of up to 128GByte for example which multiplies the endurance again to a nearly "undestroyable" value and a quality usually SSD drives are reaching. An issue we have seen with #REV1 SD cards that writing to a single file continously with small data packages smaller than 4kByte could crash the Linux system. Since you are using a database I could imagine this is the root cause of your problem. So I recommend to upgrade to revision #2 of netPI. 
You never fail until you stop trying.“, Albert Einstein (1879 - 1955)

Hey Armin,

I've got two netPi's of Revision 2 here, the new micro-sd-cars for them will arrive this week. I will be back to you, when I've tested them.

The new netPis of Revision 2 did not show this Problem anymore. Thanks for your help!


Possibly Related Threads...
Thread Author Replies Views Last Post
  Fieldbus Ports not working Schoko 13 78 June-29th-2020, 09:43 PM
Last Post: Armin@netPI
  DHCP server not working m-yoshikawa 19 118 June-26th-2020, 05:39 AM
Last Post: m-yoshikawa
  Node-Red "http in"-Node not working DWxPro 8 50 June-19th-2020, 01:12 AM
Last Post: DWxPro
  Node Red stop working DSongra 1 11 February-12th-2020, 08:19 AM
Last Post: Armin@netPI
  [SOLVED] netPI with Raspbian Desktop firefly 8 60 November-28th-2019, 06:01 PM
Last Post: Armin@netPI
  Default Gateway does not work lunz1 16 141 August-15th-2019, 02:01 PM
Last Post: Armin@netPI
  netPI & Edge Gateway differences MGharat 5 33 May-10th-2019, 10:48 AM
Last Post: Armin@netPI
  [SOLVED] WebConfig netpi-nodered-fieldbus JohnyD94 13 69 May-6th-2019, 12:20 AM
Last Post: JohnyD94
  [SOLVED] node-red Dashboard Docker Image for netPI? anrodriguez 1 38 February-7th-2019, 05:35 PM
Last Post: Armin@netPI
  [SOLVED] Azure IotEdge on netPI rene.divossen 7 74 January-29th-2019, 10:37 AM
Last Post: rene.divossen

Forum Jump:

Users browsing this thread: 1 Guest(s)