I have OpenWrt installed on a Raspberry Pi4 with 8G of ram and 64Gb SD Card.
It worked flawlessley for two weeks.
I came home last night and the router would not connect to my phone, which it has always done, even before I get to my house down the drive my phone will show one device connected, that was the router.
Abolutely changed nothing, was not logged into it at all, and now basically bricked.
Connected it to my laptop with an ethernet cable, assigned my laptop an IP net mask and gateway. No connection, just an error stating no route to device on port 22.
I can not now access the device in order to troubleshoot or look up logs.
I could put the card in a reader and have a look, but I don't even know what am looking for.
adguardhome was running fine too, I restarted it evey four days and this set the data visible in the UI back to zero, and this had no effect on the router as it was running perfectly up until it would not connect to my phone.
There's not a ton that we can determine without configs or at least a bit more detail.
The good news is that a Raspberry Pi is generally unbrickable... pull out the card and reflash it if you need. But even better is that you can connect a keyboard and display.
Do you have two ethernet ports on your Pi (i.e. the built-in one + a usb dongle)? If not, what does that ethernet port usually do -- is it assigned as a lan port or do you use it to connect to an upstream modem/network?
What IP address and subnet mask did you assign? Or was it DHCP assigned? If DHCP -- what were the values that the laptop got?
Hi, I use the built in wifi of the raspberry pi to connect to my phones hotspot.
I then use the onboard ethernet of the pi to connect to my switch.
This allows all the devices on my switch to have internet access for updating
when they need it.
I also connect an AP to the switch which is how I access all the device on the
switch to run updates and do backups.
I can not get cable into my home, I was told the wires were not suitable, too old, they are just phone lines from the 70's and they will not replace them
unless I pay an absolute fortune.
Yes, my phone's hotspot connects to the raspberry pi 's onboard wifi.
Then I connect the pi 's ethernet port to my switch, this provides internet
for updates and backcups to all the devices connected to my switch.
I use an AP connected to the switch to access all the connected devices.
I can not get cable, wires are from the 70 's and it would cost me too much
to replace them, the providers will not replace them for me.
I could not get a head on shot of what happens when I connect a monitor keyboard and mouse to my Pi, but it seems to loop over and over, the red
light on the Pi stays solid read as if everything is fine, no green activity light
blinks at all, which it should do, so its not booting for whatever reason.
Hi, I have been out until now.
I gave the laptop the same IP the Pi router gave it, I entered 255.255.255.0 for the subnet mask, and I used the IP address of the Pi router as the gateway.
This is how I accessed the router in order to install and configure it.
I then gave my laptop a different, not before used IP within the range the router dishes out, left the subnet and gateway address, I even ommited the gateway at a later stage to see if that would help.
Nothing worked, and all of it should have, I tried allowing the router to assign my laptop an IP which of course did not work either.
This was a new install, only two weeks old, card tested fine before install.
I think I will have to find another solution, way too much trouble with this set up.
Things I noted during testing were, inconsistent information between the Luci and what was
actually in the config files.
For example the wireless connection in Luci would show 5G and channel 36, yet the /etc/config/wireles would how I was using 2.4G and totally different chanenel. Even looking at the config file from Luci in the settings page for the wireless setup would show 2.4G, this was on another card, I did not note this on the card I was using and which worked fine for two weeks. But it tells me something is not stable with Openwrt when two separate configs from the same ISO can end up like this.
I put another card with OpenWrt on it into this Pi and it worked, albeit with strange inconistent settings between the config files and what Luci displayed.
So it is not the Pi, I had various OS's on this Pi and no issues at all.]
OpenWrt is the only software that gives trouble on any of my Raspberry Pi's,
that is why am not at all keen to flash it again.
Can not do this every few weeks, it would be a nightmare.
It all worked perfect for two weeks though, and no update broke it,
because I had my phone with me so it had no access for updates even.
Left the house and it was working, came back a few hours later and disaster,
no connection at all.
We have never seen your config, so we can't validate them to see if this is a config problem. Did you create a backup? If so, we can look at that.
The Pi isn't the best option for a router with wifi, but at least you're using it as a client (STA) and not an AP.
This depends on what you're looking at...
In STA mode, it is the AP (your phone, in this case) that determines the channel. So you're probably seeing artifacts of that.
The Pi isn't uncommon -- I have a Pi4 setup as an OpenWrt VPN endpoint.... it's been running for years without a problem, and the only downtime it experiences relates to either power outages or upgrades.
Let's take a look at both the files and the apparent discrepancies you're seeing in LuCI.
It could be the card, could be the config, could be a power issue.
In fact, do you have a keyboard (and I saw a mouse in there) connected all the time? I found that my Pi4 wouldn't boot properly when I had a certain USB device connected...
Hi. I had no keyboard or mouse or monitor connected at all.
I connected them to see if any error messages would show on a monitor
and maybe I could use the keyboard and mouse to click on options, but all I
got was a loop of some kind.
Also, the keyboard and mouse previously worked with this Pi when it was being used with Raspberry OS on it for months, so am thinking they are not the problem, they were not connected at all ever during the install config or running of this router, just did this for testing now that it seems a gonner.
Does anyone know what files I can delete off this card, if I put it in my card reader, am thinking may be there is not enough room left with logs for example to even boot up, though it was running when I left it for a few hours, then when I came back it would not connect to my phone, and I did not update my phone either.
Well, it is 64GB, and is expaned to use the entire card.
As for how much is used, I can no access the dam thing unless I put it into
a card reader, which gives me concern as any time I did this in the past it
caused the card not to boot again, I put the card in the reader to copy the files
off it as backups, then the thing / OpenWrt would not boot, had to flash it again
so I learned not to do that, but given it won't boot, it might be the only option.
And not just one card, three of them did the same thing yet they all work fine for
other OS's.
A few hundred megs to 1GB are more than sufficient for OpenWrt. If you actually filled the card, that would be impressive, but not unheard of (and that could cause the failure).
That's not normal, and that's not a function of OpenWrt... you should be able to read the card without altering it, in general. If you happen to be using an SD card adapter, you can flip the write protect switch to be extra certain that it will be read-only.
This is not how OpenWrt backups work. There is a built-in tool for backups. Any reason you weren't using that method?
I have no idea why this would be happening, but this is a function of the computer you're using and/or the operations you are performing on the card.
Until we know what's on the card, we can't really say what is happening.
That said -- is there something happening that might be causing the card to fill up? For example, saving logs to the card? using the system as a general purpose storage/server (i.e. a simple NAS)? using it for downloads/torrents or similar?
Not using the router for anything other that openwrt and adguardhome.
I would need to delete the logs I think, it states the boot partition has space left,
the disc partition has no space left, and it is only small to begin with, why is this.