I have a Raspberry Pi connected to a mobile router at a remote place and host a server which I can access. The problem is this setup is not really reliable. Every 2 days there is like a problem, like the Raspberry Pi not responding anymore or refusing any connection, just randomly shutting off and so on.

Which tricks do you guys use to make a Raspberry Pi reliable to stay on for days without any problems?

Also I have set up a script to monitor if wlan is connected and if not write iwconfig to a file and restart wlan0. Seems not to happen often, atleast not as frequent as the total connecting problems I have

2 Answers 2


Based on what you've said in the comments section of Dwebtron's answer, your problem is definitely the power supply.

For one thing, your power supply is definitely on the weak side. It's generally recommended that your power supply be able to handle at least 1A. 700mA might power the device, but adding a wifi dongle, and overclocking the RPi would certainly strain it. Your 1A version will definitely help.

Secondly, an intermittent power-supply is definitely not a good thing. If the power supply dips enough that the lights are flickering, it's probably dipping enough that the RPi shuts down, or misbehaves unpredictably. This can lead to anything from software/kernel glitches to a corrupted file system.

I would recommend an uninterruptable power supply. Something like an external battery backup could help with that and not cost a fortune.

  • I will definitely switch psu and maybe also add a battery backup pack and see if that helps
    – qwertz
    Jul 28, 2015 at 5:07

I have noticed that a lot of problems with my Pi being unreliable have to do with the memory card used. Samsung's seems to work like crap, and the SanDisks I have can stay on for weeks / months (so far).

  • I am using a SanDisk right now, so that doesn't seem to be the problem
    – qwertz
    Jul 27, 2015 at 18:03
  • Do you have multiple pis to try? Maybe that one has some bad RAM or something. Have you tried memtest or another pi in that location? Have you tried this pi in a known-good location?
    – Dwebtron
    Jul 27, 2015 at 18:08
  • No I don't. I don't think it it a manufacturing problem as it works totally fine, just the problem is it gets disconnected from the network, nging refuses the connection (or the pi) and so on. It is not a hardware problem I think
    – qwertz
    Jul 27, 2015 at 18:10
  • When it's been 'disconnected', have you tried to access it physically? Does it work fine then? Could it be a network/router issue? I see you have this question tagged wifi.... There could be interference nearby causing a disconnected signal, perhaps? Raspian shouldn't randomly shut itself down, and *nix systems are typically rock-solid stability-wise, so I wouldn't be looking into software.... Unless you've messed with it ;)
    – Dwebtron
    Jul 27, 2015 at 18:15
  • Yeah I did, sometimes I get connection refused when I'm in the same network like the raspi via wlan or even eth0, or I get host is down sometimes too. Also there is not a single wifi signal in a 200m radius to the raspi so that's not the problem
    – qwertz
    Jul 27, 2015 at 18:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.