Recover a station
Here you find how to put the station right when Web Radio Control can’t be reached, doesn’t start, or doesn’t let you log in. Two tools do it:
- The setup page, from a desktop, tablet or phone on the local network of the station. It fixes what keeps Web Radio Control from being reached or from starting.
- A reset with the station control computer in your hands, for a forgotten administrator password, or when nothing else helps.
The setup page after the first run
The setup page of the station works even when Web Radio Control can’t be reached. On a desktop, tablet or phone on
the same local network as the station, open the station’s own name with http://, such as:
http://shack.local/If that address doesn’t open, use http://shack.local:8080/, or the IP address of the station, such as
http://192.168.1.20:8080/.
The page opens only on the local network of the station, and on your own devices on its private network when that is
on (see Recover the station from afar).
Its address starts with http://, so your browser opens it even when the station certificate doesn’t work.
Log in
The page says Log in to recover the station. Above the login, one line says whether Web Radio Control runs, such as Web Radio Control 2.0.0-b2 is running. Log in to see the rest of the station status.
Type the Username and Password of an administrator, and choose Log in.
The login lasts an hour after you last use the page, and eight hours at most. A restart of Web Radio Control ends it too. Log in again to go on.
Read the state of the station
The title of the page says how the station is:
| Title | When |
|---|---|
| Your station is running | All is well. |
| Your station is being set up — 3 of 5 steps done | The guided setup has steps left to do. |
| Your station needs attention | Something is wrong, such as a problem the Overview lists. |
| Your station needs recovery | Web Radio Control doesn’t start (see When Web Radio Control doesn’t start). |
Station status shows the station at a glance. Its headline is All checks passed, or the problem with what to do. It has a row each for Web Radio Control, the app’s address, the network, the internet, the clock, the license, the disk, and the power and temperature. A gray Not known means the station can’t tell. Until you activate a license, the License row says no license. That is fine while you set up the station. While Web Radio Control runs, Open Web Radio Control opens it.
Each problem the page finds has its fix beside it, under Station status. When the station needs recovery, what stops it comes first, above Station status.
Fix what is wrong
Choose Show details to open the sections that recover the station. The page remembers your choice in this browser. A section with a problem is already open under Station status, and in recovery all of them are:
| Section | What you can do there |
|---|---|
| This station | See the version, the network name with Rename…, the station name, and the station control computer: its hardware, kernel and temperature. |
| Network | Change the Ethernet address, from the router or fixed, and join a Wi-Fi network. |
| Ports and firewall | See the ports of the station. Put the ports back with Back to the defaults, put the firewall back to WRC’s defaults or turn it off, turn IPv6 on or off, and allow or refuse SSH password logins. |
| Certificate | See the certificate in use, and Use the station certificate when another has expired or can’t be renewed. |
| License | See the license. You manage it in Web Radio Control. |
| Maintenance | Restart Web Radio Control, reboot the station, reset it, restore a backup, import a station export, and go back to the previous version. |
| Diagnostics | View and download the diagnostic report, and see the last starts of Web Radio Control. |
Every change asks for your password again. The page then shows a dialog for the change, which says what it does. Cancel, × or Escape leaves the change unmade. While the station makes the change, the dialog says so, and how it went shows under its row.
Change the network
Under Show details › Network, change the Ethernet address, from the router or a fixed one, or join a Wi-Fi network. A change is confirmed from the new address of the station, or undone by itself after two minutes, so a wrong address can’t lock you out. The page stays on the change and says how it ended.
The steps are in Join Wi-Fi or set a fixed address.
Restart or reboot
Under Show details › Maintenance:
- Restart Web Radio Control takes about 30–60 seconds. Transmissions end first.
- Reboot the station restarts the station control computer, in about 1–2 minutes. Use it for a USB sound card or radio interface that has stopped answering, or a network that is stuck.
While the station doesn’t answer, the page says what it is doing, and keeps asking. Once the station answers, the page goes back to the login, or to the page itself while you are still logged in.
Normal setup needs neither: every setting applies at once.
When Web Radio Control doesn’t start
When Web Radio Control can’t start, it stays in recovery. It then serves only the setup page, which says Your station needs recovery and shows first what stops it:
| What stops it | What the setup page offers |
|---|---|
| The database is damaged: the SD card may be failing. | Restore the newest automatic backup that passed its check, with the contacts it would lose listed first; import a station export; go back to the previous version; download the diagnostic report; reset everything but the license. |
| Port … is taken: another program uses a port of the station. | Back to 8443 and 8080, the default ports of the station, put back with Set defaults. |
| The server is restarting over and over: it stops a few seconds after starting, or keeps stopping while it runs. | The last crash, when and why; restore the newest backup; reset the settings and devices; download the diagnostic report. |
A fix restarts Web Radio Control, which applies it as it starts. The setup page answers again in about 30–60 seconds. A restart or a reboot also tries a normal start without any fix, for a fault that has gone away.
In recovery, the login is checked against the database, or against the newest backup when the database can’t be read. If neither can be read, the page says Neither the station’s database nor a backup of it can be read, so nobody can log in here. Reset the station with it in your hands (see Reset the station).
Send the diagnostic report to WRC support when you ask for help (see Send a diagnostic report).
Restore a backup
Every day the station copies its database: the users, devices, settings, logbooks and contacts. Under Show details › Maintenance › Automatic backups, the setup page says how many backups the station keeps and when the newest was made.
- Choose Show the backups. Each backup shows when it was made, the version that made it, and whether it passed its check, Checked or Damaged.
- Beside a checked backup, choose Restore…. The page says first what restoring it loses: the contacts logged since it was made, the older contacts changed, and the users and settings changed since.
- Give your password, and choose Restore.
Web Radio Control restarts and runs on the backup. The database it replaced is kept beside it, in case anything in it is needed later.
The backups are on the same SD card as the database, so they don’t help when the card itself fails. For that, export the station data now and then from Settings › Station › Backup & restore, and keep the file safe.
Import a station export takes such a file back: Choose a file…, type The file’s passphrase, and Review the import. The page shows what the import would replace before anything changes. Give your password and choose Import at the next start.
Backup & restore and the station data export are described in Back up and restore the station.
Go back to the previous version
If Web Radio Control doesn’t work after an update, the setup page can put back the version before it. Under Show details › Maintenance, Go back to the previous version says which version runs and since when, and the version the update kept.
- Choose Go back to ‹version›….
- The page says whether the update changed the database. If it did, the copy taken just before the update comes back with the version before, and the page lists what that loses, such as the contacts logged since.
- Give your password, and choose Go back and restart.
The station restarts on the version before within a minute, with the Hamlib that ran with it. It stays on it until you install a newer version.
While Web Radio Control runs, you can do the same from Settings › Station › Software update (see Go back to the version before).
A forgotten password
An operator who has forgotten their password asks the administrator, who sets a new one in Settings › Station › Users & roles (see Reset a forgotten password).
The administrator password is reset only with the station control computer in your hands, never over the network. In the login dialog of Web Radio Control, Forgot the administrator password? has Recovery info, and the login of the setup page has Forgot the password?. Both show these steps.
- Unplug the power of the Raspberry Pi and take out its SD card.
- Put the card in another computer (Windows, macOS or Linux) and open its small boot partition, named
bootfs. It opens like a USB stick. - Create an empty file named
wrc-reset-password.txtthere. - Put the card back in the Raspberry Pi and plug its power in.
The reset removes the password of every administrator and logs them out. Other users and all the station data are
kept. On the Raspberry Pi, the Linux user wrchost also gets its default password back.
Then open Web Radio Control from a desktop, tablet or phone on the local network of the station. It asks you to create
the administrator again, as on the first run. The same username keeps its account and its settings. On the Raspberry
Pi, the new password also becomes the password of wrchost. Until then, nobody can log in, and SSH refuses password
logins.
While the station has no administrator, the setup page says No administrator yet and Set the password in Web Radio Control. The setup page never takes a new password itself.
Reset the station
A reset is the last resort, when nothing else helps. Each reset says what it keeps before it runs.
| Reset | What it does | What stays |
|---|---|---|
| Password | Every administrator’s password is cleared and their logins end. The administrator is created again, as on the first run. | Everything else: settings, devices, users, the other users’ passwords, the license, certificates and logs. |
| Settings and devices | Every setting goes back to its default, and every device is removed. The certificates are made again. On the station control computer, the firewall is turned on, your own time servers removed, the private network turned off and SSH password logins turned on. | The users and their passwords, logbooks and contacts, spots, the license, the station name and its alias under wrcs.tech, logs, and the automatic backups. |
| Everything | Everything but the license. The station starts again from its first run. On the Raspberry Pi, wrchost gets its default password back. | The license and the installed software. |
Take a backup first if you can (see Restore a backup).
From the setup page
If you can log in to the setup page, use Show details › Maintenance:
- Reset settings and devices puts back the defaults and a new certificate.
- Reset everything but the license makes the station as on its first start.
Choose Reset… beside the reset, read what it keeps, give your password, and confirm.
With the station in your hands
Put an empty file on the SD card, as for the password above, named for the reset:
wrc-reset-password.txtwrc-reset-settings.txtwrc-reset-everything.txt
Or, with SSH, run sudo wrc-reset-password, sudo wrc-reset-settings or sudo wrc-reset-everything.
The station makes the reset as it starts, about a minute after power-on, and removes the file, so the reset happens once. If there is more than one file, each reset is made, and resetting everything replaces the others. A reset that could not be made leaves its file in place and is tried again at the next start.
After resetting everything, the station keeps its license and its activation. Set it up again from Open the setup page.
When the firewall keeps you out
The station runs its own firewall, which lets in SSH, Web Radio Control and its audio, and the setup page from the local network only. A port change made in Web Radio Control is undone after three minutes unless you keep it. If a firewall setting still keeps you out, turn the firewall off for recovery:
- Put an empty file named
wrc-firewall-off.txton thebootfspartition of the SD card, as for the resets above. - Put the card back in the Raspberry Pi and start it.
The firewall stays off while the file is there. Once you have fixed the setting, delete the file and restart the station.
What the firewall lets in, and turning it off from Web Radio Control, are in The firewall.
If something went wrong
- The setup page doesn’t open. Check that your desktop, tablet or phone is on the same local network as the
station. Try the IP address of the station with
:8080, from the list of connected devices in your router. - The username or password is wrong. Type them again. After failed logins, each new try waits a little longer, up to a minute. If you have forgotten the administrator password, see A forgotten password.
- A reset file is still on the SD card after the start. The reset could not be made. It is tried again at the next start. Send the diagnostic report to WRC support.
More help is in You can’t reach the station.