wrolpi-help/docs/system/getting-help.md

2.7 KiB

Getting Help

Online

Help can be found online at these places:

install.sh

WROLPi may be repaired using the installation script which requires internet, run it like so:

/opt/wrolpi/install.sh

Offline

repair.sh

WROLPi has a repair script which will attempt to repair the WROLPi while offline. It copies configs, restarts services, etc. Run the repair script like so:

/opt/wrolpi/repair.sh

help.sh

WROLPi has a help script which checks common failure points on a WROLPi system, run it like so:

/opt/wrolpi/help.sh

Example output:

WROLPi version: 0.13.1-beta

OK: Running on Raspberry Pi
OK: Found wrolpi user
OK: The WROLPi directory exists
OK: The WROLPi blobs directory exists
OK: The WROLPi main script exists
OK: The WROLPi config file exists

OK: Postgres found
OK: Port 5432 is occupied
OK: Postgres is using file socket
OK: Found wrolpi database
OK: WROLPi database is initialized
OK: WROLPi database has files

OK: WROLPi Python virtual environment exists
OK: WROLPi main can be run
OK: Sanic can be run
OK: WROLPi API systemd exists
OK: WROLPi API service is up
OK: WROLPi API echoed correctly

OK: WROLPi app directory exists
OK: WROLPi app exists
OK: WROLPi app systemd exists
OK: WROLPi app service is up
OK: WROLPi app responded with interface
OK: Port 80 is occupied
OK: nginx systemd exists

OK: Found map database
OK: Map database is initialized
OK: renderd systemd exists
OK: Map app responded
OK: Map initialization blob exists
OK: Leaflet.js exists

OK: The kiwix library file exists
OK: Kiwix app responded

OK: The media directory exists
OK: Can modify media directory
OK: Media directory is a mounted drive
OK: Media directory files are served by nginx
OK: Config can be fetched from nginx
OK: Media directory is owned by wrolpi user

OK: Singlefile can be run
OK: readability exists
OK: wget can be run
OK: yt-dlp can be run
OK: Chromium can be run
OK: ffmpeg can be run

OK: Help mkdocs can be run
OK: Help service is running

OK: Can ping 1.1.1.1
OK: Can ping wrolpi.org

The output above will help an experienced developer narrow down the cause of an issue.

Reset

Reset API Database

The wrolpi database contains the tables and indexes which allow you to search or even browse your WROLPi. A script is provided which will delete and re-create this database. Warning you will need to refresh your files! Run it if the repair script above fails:

/opt/wrolpi/scripts/reset_api_db.sh