Closed WalterWampe closed 2 years ago
Hello,
"pia_skin_test" is a leftover from development. I had left the variable empty because it was no longer needed. In my fork I have now deleted it.
The other errors, like the one with "pia_lang_selected" are normal due to the way language support was built. I disabled error reporting for the "maintenance.php" and "network.php" page. It will take some time until this change will be included in this fork as well.
That you have 250GB logfiles is still not explainable. I also have a nginx as webserver and no such huge logfiles. What happens in the docker container in addition, I can not answer.
Hi leiweibau, thanks for the quick response. Yes you are right, I was not reporting that I was missing several items (TIMEZONE,PIALERT_WEB_PROTECTION,PIALERT_WEB_PASSWORD, and several of the addon) env vars in my pialert.conf due to using an old config which I had since a former release. This was causing a lot more errors, hence the big logfile I guess.
Now that I added these missing variables I am left with the errors I reported above.
Sorry for the miscommunication. And thanks again for all your effort.
Hi @WalterWampe and thanks for checking this project!
Looking at the errors, are you using an older image? The latest image doesn't seem to be throwing these errors...
Could you please try re-deploying the latest docker image to see if it solves the errors? You can download it from the docker hub here: https://registry.hub.docker.com/r/jokobsk/pi.alert
Just FYI if that's the case, I'm not supporting stand-alone installs, only the docker installation method. You can check out the fork from @leiweibau if you are looking for a stand-alone deployment.
Hi @jokob-sk , thanks for you reply!
Sorry for not providing this information. Actually I am using the latest image. Maybe my conf is wrong somehow. Here is my setup:
docker-compose.yaml
version: "3.1"
services:
pialert:
image: jokobsk/pi.alert:latest
container_name: pialert
restart: unless-stopped
environment:
- HOST_USER_ID=1000
- HOST_USER_GID=1000
- TZ=Europe/Berlin
network_mode: "host" # The UI is located on <host IP>:20211/pialert/
volumes:
- ./pialert.conf:/home/pi/pialert/config/pialert.conf
- ./version.conf:/home/pi/pialert/config/version.conf
- /vmdisk/volumes/pialert/db/pialert.db:/home/pi/pialert/db/pialert.db
labels:
- "com.centurylinklabs.watchtower.monitor-only=true"
- "com.centurylinklabs.watchtower.enable=true"
pialert.conf
#-------------------------------------------------------------------------------
# Pi.Alert
# Open Source Network Guard / WIFI & LAN intrusion detector
#
# pialert.conf - Back module. Configuration file
#-------------------------------------------------------------------------------
# Puche 2021 pi.alert.application@gmail.com GNU GPLv3
#-------------------------------------------------------------------------------
PIALERT_PATH = '/home/pi/pialert'
DB_PATH = PIALERT_PATH + '/db/pialert.db'
LOG_PATH = PIALERT_PATH + '/log'
VENDORS_DB = '/usr/share/arp-scan/ieee-oui.txt'
PRINT_LOG = False
TIMEZONE = 'Europe/Berlin'
PIALERT_WEB_PROTECTION = False
PIALERT_WEB_PASSWORD = 'asdfasdfasdfasdfasdasdfasdfasdfasdfasdf'
SMTP_SERVER = 'smtp.gmail.com'
SMTP_PORT = 587
SMTP_USER = 'yyy@gmail.com'
SMTP_PASS = 'xyzsososecret'
SMTP_SKIP_TLS = False
SMTP_SKIP_LOGIN = False
REPORT_MAIL = True
REPORT_FROM = 'Pi.Alert <' + SMTP_USER +'>'
REPORT_TO = 'xxx@xxx.net'
REPORT_DEVICE_URL = 'http://192.168.1.211:20211/deviceDetails.php?mac='
REPORT_DASHBOARD_URL = 'http://192.168.1.211:20211'
# Webhook settings
# ----------------------
REPORT_WEBHOOK = False
WEBHOOK_URL = 'http://n8n.local:5555/webhook-test/aaaaaaaa-aaaa-aaaa-aaaaa-aaaaaaaaaaaa'
# webhook payload data format for the "body > attachements > text" attribute in https://github.com/jokob-sk/Pi.Alert/blob/main/docs/webhook_json_sample.json
# supported values: 'json' or 'html'
# e.g.: for discord use 'html'
WEBHOOK_PAYLOAD = 'json'
# Apprise settings
#-----------------------
REPORT_APPRISE = False
APPRISE_HOST = 'http://localhost:8000/notify'
APPRISE_URL = 'mailto://smtp-relay.sendinblue.com:587?from=user@gmail.com&name=apprise&user=user@gmail.com&pass=password&to=user@gmail.com'
# NTFY (https://ntfy.sh/) settings
# ----------------------
REPORT_NTFY = False
NTFY_TOPIC = 'replace_my_secure_topicname_91h889f28'
# PUSHSAFER (https://www.pushsafer.com/) settings
# ----------------------
REPORT_PUSHSAFER = False
PUSHSAFER_TOKEN = 'ApiKey'
# DynDNS
# ----------------------
# QUERY_MYIP_SERVER = 'https://diagnostic.opendns.com/myip'
QUERY_MYIP_SERVER = 'http://ipv4.icanhazip.com'
DDNS_ACTIVE = False
DDNS_DOMAIN = 'your_domain.freeddns.org'
DDNS_USER = 'dynu_user'
DDNS_PASSWORD = 'A0000000B0000000C0000000D0000000'
DDNS_UPDATE_URL = 'https://api.dynu.com/nic/update?'
# PIHOLE settings
# ----------------------
PIHOLE_ACTIVE = False
PIHOLE_DB = '/etc/pihole/pihole-FTL.db'
DHCP_ACTIVE = False
DHCP_LEASES = '/etc/pihole/dhcp.leases'
# arp-scan options & samples
# ----------------------
#
# Scan local network (default)
# SCAN_SUBNETS = '--localnet'
#
# Scan two subnets
# SCAN_SUBNETS = '192.168.11.0/24 192.168.144.0/24'
#
# Scan using interface eth0
# SCAN_SUBNETS = '--localnet --interface=eth0'
#
# Scan multiple interfaces (eth1 and eth0):
# SCAN_SUBNETS = [ '192.168.1.0/24 --interface=eth1', '192.168.1.0/24 --interface=eth0' ]
# SCAN_SUBNETS = '--localnet'
SCAN_SUBNETS = '192.168.1.0/24 --interface=ens18'
# Maintenance Tasks Cron
# ----------------------
DAYS_TO_KEEP_EVENTS = 90
version.conf
VERSION = '3.6_jokobsk'
VERSION_YEAR = '2022'
VERSION_DATE = '2022-08-03'
Thanks for the details!
Apologies, seems like I also have those errors, however the overall size of the log files on my end is pretty small:
So you can consider those errors "normal" :)
My guess is that the previous errors caused the huge file sizes, but these seem not to be a big concern in my opinion. I'd try deleting the files and see if nginx generates those huge log files again. I can investigate further if it happens again.
Also merged some improvements from @leiweibau's fork, so after releasing a new image the errors hopefully won't show up again.
https://github.com/jokob-sk/Pi.Alert/commit/056949aab02e6c17c7eac1e96300ebe83042311b
Thanks a lot and no reason at all to apologize! I appreciate your work! Thanks also for taking your time to look into this. Looking forward to the new image!
Hi, I was wondering what took up that much space on my vm, when I realized that it was the /var/log/nginx/error.log of my inside pialert container havin reached almost 250GB!
Here are the thrown errors:
unsure if the error is in my .conf or not. Maybe sombody knows what to do.
Thank you Walter