Questions tagged [logfiles]
logfiles record events occurring in the operating system, its services, and other running software. Interpreting logfiles is important to diagnose problems.
67 questions
0
votes
1
answer
87
views
Where can one find the fsck boot log on Debian?
Since my Pi4B is running headless with a power cable only being connected to WiFi, I am puzzled by where I can see the fsck log I normally see shortly on-screen on my desktop Linux machine while ...
0
votes
0
answers
35
views
Raspberry Pi SSH Tunnel Service Error: Code "255/EXCEPTION"
I am new here.
I've recently implemented an SSH Tunnel Service on my Raspberry Pi. Here's the configuration of the service:
[Unit]
Description=SSH Tunnel with target server
After=network.target
[...
0
votes
2
answers
550
views
Run python script as systemd service
I'm trying to invoke a python script as a service AND send it's output to a log file. I created the file /etc/systemd/system/rfsensor.service, with this content:
[Unit]
Description=rfsensor
After=...
0
votes
0
answers
185
views
Pi 4B OTG USB advanced troubleshooting/debug or logs
I followed this wonderful guide:
https://magpi.raspberrypi.com/articles/pi-zero-w-smart-usb-flash-drive
and I was able to made it working on my loved Pi4B.
Everything works fine as mass storage ...
-1
votes
1
answer
520
views
Ubuntu Server 20.04 on Raspberry Pi 4 error: "kernel: ieee80211 phy0: brcmf_cfg80211_get_station: GET STA INFO failed, -52" How to fix?
I am running Ubuntu Server 20.04 on a Raspberry Pi 4. In my system logs I am getting the followng error:
kernel: ieee80211 phy0: brcmf_cfg80211_get_station: GET STA INFO failed, -52
What does this ...
1
vote
0
answers
163
views
Setting up "read-mostly" / "write-rarely" system - minimising writes as much as possible
Per the title - I've seen all the stuff about using read-only filesystems and overlay filesystem but there's drawbacks with that - either you have to use multiple partitions, have some method of ...
0
votes
0
answers
131
views
If I start a script using audostart where do my logs go?
I've added an entry to my /etc/xdg/lxsession/LXDE-pi/autostart file as follows:
@lxpanel --profile LXDE-pi
@pcmanfm --desktop --profile LXDE-pi
@xscreensaver -no-splash
@/usr/bin/python /home/pi/...
2
votes
1
answer
2k
views
Logging output from autostarted program (LXDE-pi/autostart)
So I have a headless Pi CM4 running standard Raspbian, its only function is to auto-start an application at boot which is invoked from /etc/xdg/lxsession/LXDE-pi/autostart
I would like to log the ...
1
vote
0
answers
588
views
rpi_firmware_get_throttled: X callbacks suppressed
I have the following entry in my logs:
Oct 08 17:51:02 rpi-dash kernel: rpi_firmware_get_throttled: 9 callbacks suppressed
It is suspiciously surrounded by warnings about power:
Oct 08 17:48:07 rpi-...
1
vote
2
answers
844
views
Crontab can't create logs (Permission Denied)
I have a script that I want to run every hour, and the echo's of that script and other output, I want to be able to read.
Now when I take a look at /var/log/syslog, I see some weird stuff that I can't ...
0
votes
1
answer
290
views
Check last time internet connection was made
I would like to know the last time my Raspberry Pi Zero (1.7W) was connected to the internet.
OS: Raspberry Pi OS Lite,
Kernel version: 5.15 &
Debian version: 11 (bullseye)
There was a similar ...
0
votes
1
answer
178
views
RPi 4 wrote 23GB of Log Files “urb status -32”
Raspberry Pi 4 with Raspbian 10 and kernel 4.19.71-rt24-v7l+
kern.log 12G
syslog 6.6G
sylog.1 4.5G
The log files are filled with usb 1-1.2: urb status -32. I just removed the log files yesterday and ...
5
votes
2
answers
4k
views
Stop logs from writing to /var/log/?
Is it possible to stop all applications to write to /var/log/? I feel like the writing causes my sd-card to break fast. If it were possible to have them write to /dev/shm/ it would be great, this way ...
2
votes
3
answers
804
views
syslog and kern.log filling with: rc rc0: IR event FIFO is full!
I have a Pi that has recently developed a habit of maxing the SD card with syslog messages (somewhere in the hundreds per second) of the message: "Date/Time user kernel: [ 2257.432445] rc rc0: IR ...
0
votes
1
answer
1k
views
Running rsyslog at the same time as journald
I need to dump the data out of a TP-Link router / modem (192.168.1.1) to a PI running a Feb version of Lite (that's the only computer on 24*7) and was thinking about using rsyslog to help me filter ...
0
votes
1
answer
352
views
how to log and view system messages on PiZeroW?
My Pi stopped responding yesterday. It normally serves an html page with sensor data using apache. When I browsed to the IP I got 403. When I tried to SSH I got
kex_exchange_identification: read: ...
3
votes
3
answers
8k
views
Is there a log of Pi reboots?
Does the Pi keep a log of its restarts? I found a good record of "Booting ..." in /var/log/messages in one of my Pi's, but in another Pi, /var/log/messages shows only rsyslogd entries. Both ...
3
votes
3
answers
4k
views
Pi crashes without apparent reason
I own a Pi4 (4GB), and I'm having some issues.
The pi crashes with no apparent reason.
By crashes I mean it becomes unreacheable via ssh, PiHole and HomeAssistant that are running on it become ...
1
vote
1
answer
607
views
pcmanfm constantly writing errors to its run log
My Raspberry pi4's file system is getting filled up with log messages from the default desktop file manager, pcmanfm, which is writing 100 megs of errors to its run log (in ~/.cache) per second ...
5
votes
1
answer
4k
views
Output fsck on boot to a log file
I'd like to use fsck on every boot of my RPi 3B+ server. To do this I will be using tune2fs -c 1 /dev/mmcblk0p2. When fsck runs I'd like the output to be added to a log file in /home/pi/fsck.log with ...
-2
votes
1
answer
51
views
3B+ locking up (blank video output) with red & green LEDs solid, requiring reboot. Which logs to check? [closed]
My Pi 3B+ (full config details at link) has started to lock up out of the blue (red and green LEDs on), requiring a reboot. Which system log(s) do I check to see what the problem might be?
4
votes
2
answers
15k
views
How to disable logs?
How do I permanently disable all logs that appear in /var/log/? I tried "service rsyslog stop", "systemctl disable rsyslog" but it still logs stuff because I type "sudo journalctl --vacuum-time=1s" ...
1
vote
0
answers
98
views
How can I view networking interface logs over UART?
I have created a (needlessly complicated) networking setup that I tried to create by following this guide.
I have colosally screwed up and now my RPi will disconnect randomly and requires a reboot to ...
1
vote
1
answer
981
views
Permissions error with logrotate [closed]
I am using a script to monitor a service. I have added said script in crontab. crontab runs the script every one minute.
I have found this script online and it works pretty good, but it writes the ...
2
votes
2
answers
139
views
persistent canbus data logging during power loss
I am trying to setup a robust raspberry canbus data logger. The pi will be installed on a mobile vehicle where the power to the pi is disconnected every time the vehicle is switched off, which will ...
5
votes
0
answers
4k
views
Prevent under-voltage warnings from printing to the console [closed]
My Pi occasionally experiences an undervoltage for a second. I am working on fixing it but my main concern is that my Pi is being used in a kiosk application that displays a text output to the ...
5
votes
2
answers
1k
views
What is causing gaps in logs?
I am examining the log of my program, which runs on a Raspbian 9, on an SD card. The program is started and managed by systemd, and the logs are handled by journald.
Occasionally the log contains ...
1
vote
0
answers
1k
views
How to log the details about the devices connected to my Pi Access Point
I have already configured my Raspberry Pi as an access point. I, now, need to see/log the details about the devices which had connected to my Pi.
My use case is to configure a metered connection ...
4
votes
2
answers
10k
views
Network Log File
Does the RPI have a log file stored somewhere (perhaps /var/log) for network interactions (such as connections, disconnections, etc.)?
2
votes
0
answers
60
views
Why does journald still log to the active console?
I'm using Manjaro ARM (64bit), and by default it seems to log always to the active console. It took me a while to figure out how to change the cmdline to using console=/dev/tty1 instead of console=/...
1
vote
0
answers
785
views
Client can't connect to pivpn
I have a custom setup and wish someone could help.
I have a main router(R1) and a secondary router(R2). I will refer to main router as (r1) and secondary router as (R2). (R1) is used for home ...
0
votes
0
answers
107
views
Log input traffic using iptables
Is it possible to log input traffic coming to wired Ethernet port using iptables, without syslog running? I want to know about appearance of particular MAC address WiFi node in range of my home WiFi ...
1
vote
1
answer
1k
views
Determine why PI didn't connect to a WiFi
I setup my Pi to connect to wifi by entering login details for two WiFi networks in /etc/wpa_supplicant/wpa_supplicant.conf. I managed to get this to work with one wifi, but now I'm somewhere else and ...
0
votes
0
answers
347
views
How to backup and read login logs files
On Raspbian one can read the recent login history using the command 'last'.
Then if one copies the log files in /var/log/ to on a different Linux system and want to read the login, which methods are ...
0
votes
2
answers
1k
views
How do I identify the boot time in the logs?
Sometimes when my headless Pi Zero W hangs or goes offline without coming back, I hard reset it by disconnecting the power cable and reconnecting it.
I'm trying to look for clues in /var/log/syslog ...
0
votes
2
answers
112
views
Adding Averages to my Data Logger
I am using this Python program to log data from a serial device, and want to add a second document that logs hourly averages of the data. Anyone have an idea on how to add hourly averages?
#!/usr/bin/...
0
votes
1
answer
916
views
Mosquitto log directory gets deleted
I have mosquitto MQTT broker installed on my raspberry (raspbian-stretch).
Logs are stored in /var/log/mosquitto. The raspberry pi was now running for some days an the /var/log/mosquitto directory was ...
0
votes
2
answers
4k
views
Creating symbolic link in RASPBIAN (reduce I/Os on memory card)
I'm doing this to reduce I/Os on memory card of raspberry pi. I want to redirect logs under /var/log to a mounted external drive. I am using following commands in the stated order to create the links. ...
1
vote
0
answers
211
views
How do I create a log for results of lftp run in a script
Sorry if this is a simple one to solve. I'm very much and old-newbie and need some hand holding. Please be gentle with me.
I have a shell script that manipulates an image and then uploads it every 5 ...
1
vote
0
answers
885
views
pi zero w + piCore without keyboard and monitor = cannot connect to wifi
I am new to raspberry pi, I would like to set up a tinycore os. I do not have a keyboard nor a monitor that I can connect through HDMI.
So I'm trying to autoconnect to the wifi so that I can ssh. But ...
2
votes
1
answer
434
views
Simplest way of finding total network traffic over network adapter?
I would simply like to know how many MB the Pi sends/receives in a day. What's the easiest way to do this? I'm using the built in Ethernet adapter. I've tried searching but surprisingly haven't found ...
1
vote
1
answer
282
views
Skip writing (frequent) warnings to log files
My Raspberry PI (running Raspbian Stretch) works 24/7 and many of writings are work in RAM disk (not on SD cards). But there are some unnecessary warnings which are frequently written to log files. I ...
16
votes
4
answers
141k
views
Accessing the system log on Raspbian
How do I access the system logs in current versions of Raspbian? Where are these logs stored?
2
votes
1
answer
4k
views
logging data when using crontab
Edits: added comments to code.
I am running a small .py script on my Raspberry Pi with a DHT11 sensor and 3 LEDs.
I am starting the program on boot with crontab, and everything is running fine apart ...
1
vote
1
answer
173
views
Pi 3 running windows core freezing
I have a system working 24/7 which behaves itself most of the time (days) running a simple browser app (Kiosk to single web app) in IOTstartup over WiFi. Is there a way I can get at any error ...
0
votes
0
answers
601
views
Was my Raspi hacked?
I was using my Raspi 3B as a home temperature station and astrophotography module. However, 18th of January it just stopped working. Couldn't connect to the network and also some of the commands were ...
1
vote
1
answer
558
views
Jessie: How do I make cron create its own log file so it can be monitored in real time?
I know that cron events are stored in /var/log/syslog and I can use a command like:
sudo cat /var/log/syslog | grep cron
to see them.
I'd much rather have the system keep a separate cron log file ...
0
votes
3
answers
7k
views
How to make active wifi scanner with Pi [closed]
I am looking for developing a device based on Rasp pi3 which can detect wifi probe requests with logging device spec data such as MAC, SSID and timestamp
Any help??
2
votes
1
answer
5k
views
How to stop dhcp logging to /var/log/syslog and messages?
I have installed isc-dhcp on Jessie. It works.
However, I noticed it logs to three log files in /var/log/:
syslog
messages
dhcp.log
I'd like to keep dhcpd to log to dhcp.log and stop it from logging ...
4
votes
2
answers
2k
views
Log undervoltage
So I have a pi running Kodi, when it's in trouble it gives a powerbolt on the screen.
Great. Now I know.
Secondly I have a pi as a webserver headless 100% of the time.
How can I log/see if it suffers ...