If this is a recent purchase, I’d email the shop and get a fresh SD Card.
If updating you must wait a good long time on first boot as it does various updates. You think it has frozen, it hasn’t.
If this is a recent purchase, I’d email the shop and get a fresh SD Card.
If updating you must wait a good long time on first boot as it does various updates. You think it has frozen, it hasn’t.
i don’t have the bracket option on my bar
</>
pi@emonpi:~ $ sudo ls /tmp -la
total 4
drwxrwxrwt 10 root root 200 Dec 4 22:09 .
drwxr-xr-x 18 root root 4096 Jul 21 2021 …
drwxrwxrwt 2 root root 40 Dec 2 20:41 .font-unix
drwxrwxrwt 2 root root 40 Dec 2 20:41 .ICE-unix
drwx------ 3 root root 60 Dec 2 20:41 systemd-private-0439c32c8cbb4c8fbb667eee0e61aafc-apache2.service-CvGQfu
drwx------ 3 root root 60 Dec 2 20:41 systemd-private-0439c32c8cbb4c8fbb667eee0e61aafc-redis-server.service-8JI2es
drwx------ 3 root root 60 Dec 2 20:41 systemd-private-0439c32c8cbb4c8fbb667eee0e61aafc-systemd-timesyncd.service-AIpiVR
drwxrwxrwt 2 root root 40 Dec 2 20:41 .Test-unix
drwxrwxrwt 2 root root 40 Dec 2 20:41 .X11-unix
drwxrwxrwt 2 root root 40 Dec 2 20:41 .XIM-unix
pi@emonpi:~ $
</>
i’ll try an overnight update/upgrade and see tomorrow
thnx for your sunday night support!
That is interesting.
I have bumped your Trust Level - is is there now? @TrystanLea - perhaps the setup needs tweaking?
No, still no possibilities for the brackets
Did a full update, but still get the same messages
Ran the ssh commands like yesterday and can’t find any differences
pi@emonpi:~ $ sudo ls /tmp -la
total 4
drwxrwxrwt 10 root root 200 Dec 5 07:54 .
drwxr-xr-x 18 root root 4096 Jul 21 2021 ..
drwxrwxrwt 2 root root 40 Dec 2 20:41 .font-unix
drwxrwxrwt 2 root root 40 Dec 2 20:41 .ICE-unix
drwx------ 3 root root 60 Dec 5 07:33 systemd-private-0439c32c8cbb4c8fbb667eee0e61aafc-apache2.service-qg52DX
drwx------ 3 root root 60 Dec 2 20:41 systemd-private-0439c32c8cbb4c8fbb667eee0e61aafc-redis-server.service-8JI2es
drwx------ 3 root root 60 Dec 2 20:41 systemd-private-0439c32c8cbb4c8fbb667eee0e61aafc-systemd-timesyncd.service-AIpiVR
drwxrwxrwt 2 root root 40 Dec 2 20:41 .Test-unix
drwxrwxrwt 2 root root 40 Dec 2 20:41 .X11-unix
drwxrwxrwt 2 root root 40 Dec 2 20:41 .XIM-unix
pi@emonpi:~ $ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 4.1G 2.2G 1.8G 56% /
devtmpfs 430M 0 430M 0% /dev
tmpfs 463M 0 463M 0% /dev/shm
tmpfs 463M 18M 445M 4% /run
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 463M 0 463M 0% /sys/fs/cgroup
tmpfs 1.0M 4.0K 1020K 1% /var/lib/php/sessions
tmpfs 1.0M 0 1.0M 0% /var/tmp
tmpfs 30M 24M 6.2M 80% /tmp
/dev/mmcblk0p3 9.9G 87M 9.3G 1% /var/opt/emoncms
/dev/mmcblk0p1 253M 48M 205M 19% /boot
log2ram 50M 13M 38M 26% /var/log
tmpfs 93M 0 93M 0% /run/user/1000
pi@emonpi:~ $
Although I’m a starter with emonpi, I think I’ve enough experience to setup new systems. Just need the right steps for this particular installation (and due to Brexit sending packages from Wales to NL takes >2 weeks and with a natural portion of ADHD I don’t have enough rest to wait for this)
Odd. You can just use the 3 backticks method then - add 3 ```
on a line before and after the text to be formatted. The ‘backtick’ key is in the top left of the keyboard.
These 2 items may help, but I think the solution is to reflash the SD card and start from scratch. If you do a full backup first, it will retain data and settings.
Thnx, will look at it tonight
Can you use the keyboard [Ctrl] + [E] ?
This inserts the 3 backticks and the instruction where to type your code just the same:
```
type or paste code here
```
The Ctrl-E option works for me, and suddenly the menu-button seems to be on my side too.
Any idea when the new version will be released? When doing a complete new installation, it might be better to be up-to-date right away. @TrystanLea
Thnx
Please can we see the output of df -i
as well?
I got myself a 128G industrial sd card and flashed the latest system on it.
This is the df -i listing:
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/root 391680 65023 326657 17% /
devtmpfs 85137 423 84714 1% /dev
tmpfs 118033 1 118032 1% /dev/shm
tmpfs 819200 696 818504 1% /run
tmpfs 118033 6 118027 1% /run/lock
tmpfs 118033 21 118012 1% /tmp
tmpfs 118033 3 118030 1% /var/lib/php/sessions
tmpfs 118033 11 118022 1% /var/tmp
/dev/mmcblk0p1 0 0 0 - /boot
/dev/mmcblk0p3 640000 33 639967 1% /var/opt/emoncms
log2ram 118033 91 117942 1% /var/log
tmpfs 23606 19 23587 1% /run/user/1000
and ran the previous requests:
pi@emonpi:~ $ sudo ls /tmp -la
total 4
drwxrwxrwt 12 root root 240 Dec 16 06:25 .
drwxr-xr-x 18 root root 4096 Nov 10 16:47 ..
drwxrwxrwt 2 root root 40 Dec 15 14:56 .font-unix
drwxrwxrwt 2 root root 40 Dec 15 14:56 .ICE-unix
drwx------ 3 root root 60 Dec 15 14:56 systemd-private-119df345cb2f4a82abd8bbba0d8334d6-apache2.service-SRl8hh
drwx------ 3 root root 60 Dec 15 14:56 systemd-private-119df345cb2f4a82abd8bbba0d8334d6-ModemManager.service-cys2Kf
drwx------ 3 root root 60 Dec 15 14:56 systemd-private-119df345cb2f4a82abd8bbba0d8334d6-redis-server.service-QVmt6g
drwx------ 3 root root 60 Dec 15 14:56 systemd-private-119df345cb2f4a82abd8bbba0d8334d6-systemd-logind.service-kbs2Pf
drwx------ 3 root root 60 Dec 15 14:56 systemd-private-119df345cb2f4a82abd8bbba0d8334d6-systemd-timesyncd.service-MAmiCg
drwxrwxrwt 2 root root 40 Dec 15 14:56 .Test-unix
drwxrwxrwt 2 root root 40 Dec 15 14:56 .X11-unix
drwxrwxrwt 2 root root 40 Dec 15 14:56 .XIM-unix
pi@emonpi:~ $ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 5.8G 2.4G 3.2G 43% /
devtmpfs 333M 0 333M 0% /dev
tmpfs 462M 0 462M 0% /dev/shm
tmpfs 185M 74M 112M 40% /run
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 30M 0 30M 0% /tmp
tmpfs 1.0M 4.0K 1020K 1% /var/lib/php/sessions
tmpfs 1.0M 0 1.0M 0% /var/tmp
/dev/mmcblk0p1 255M 50M 206M 20% /boot
/dev/mmcblk0p3 9.7G 2.3M 9.2G 1% /var/opt/emoncms
log2ram 50M 50M 0 100% /var/log
tmpfs 93M 0 93M 0% /run/user/1000
But now I’ve another issue. This might have something to do with one of the last lines where I read log2ram used 100%.
In the webinterface this results in a "“hanging” inputs page:
I thought it might have something to do with sending extra data to the mosquitto, but when subsribing to /emon/# it looks like this.
192.168.2.47
$SYS
broker
version = mosquitto version 2.0.11
uptime = 56507 seconds
load
messages
heap
publish
bytes
clients
store
subscriptions
retained messages
emon
= /ISK5\2M550T-1013 1-3:0.2.8(50) 0-0:1.0.0(221216073756W) 0-0:96.1.1(4530303534303038343533343634323231) 1-0:1.8.1(012942.480*kWh) 1-0:1.8.2(004353.431*kWh) 1-0:2.8.1(000000.000*kWh) 1-0:2.8.2(000000.000*kWh) 0-0:96.14.0(0002) 1-0:1.7.0(01.985*kW) 1-0:2.7.0(00.000*kW) 0-0:96.7.21(00022) 0-0:96.7.9(00012) 1-0:99.97.0(10)(0-0:96.7.19)(220301124255W)(0000000961*s)(220303095212W)(0000000…
emonpi_5
power1 = 67
power2 = 17
power1pluspower2 = 84
vrms = 244.32
t1 = 0
t2 = 0
t3 = 0
t4 = 0
t5 = 0
t6 = 0
pulsecount = 0
TWS_Buf3000_T3 = 57.700000
TWS_Buf3000_T2 = 55.400000
TWS_Buf3000_T1 = 41.000000
TWS_Buf3000_T4 = 58.100000
emonth2_23
temperature = 19.3
external temperature = 19.1
humidity = 53.900000000000006
battery = 2.7
pulsecount = 1
rssi = -86
emonth2_24
temperature = 19.200000000000003
external temperature = 0
humidity = 55
battery = 2.7
pulsecount = 1
rssi = -90
SmartDEN_MQTTMaxi
E8EADA0060A0
Get
ATIS7 = 57.7 ℃
ATIS8 = 55.4 ℃
ATI5 = 156
ATI6 = 89
ATIS5 = 41.0 ℃
ATIS6 = 58.1 ℃
ATI7 = 90
ATI8 = 97
What can I do?
@TrystanLea there might be an issue with Log2Ram - there was another comment on an old PR on GitHub. (Logrotate setup does not prevent /var/log filling up · Issue #103 · openenergymonitor/emonpi · GitHub)
@VincentR - what does sudo du -h /var/log/
tell you?
Also
journalctl -f
Ok thanks, yes I think you are right. Looks like emonhub is not rotating correctly… looking into it
Great.
I also note that logrotate
has a systemd
timer now rather than cron
so the 2 may be interfering with each other.
Also noted that Paul’s original log2ram has additional updates that have not been pulled to the OEM Fork.
pi@emonpi:~ $ sudo du -h /var/log/
0 /var/log/runit/ssh
0 /var/log/runit
20K /var/log/redis
0 /var/log/private
0 /var/log/mysql
0 /var/log/mosquitto
248K /var/log/logrotate
8.0K /var/log/emonpilcd
6.6M /var/log/emonhub
25M /var/log/emoncms
48K /var/log/apt
0 /var/log/apache2
50M /var/log/
pi@emonpi:~ $
'''
My suspicion is a permission issue.
Can you try this but don’t post the full output (there will be a lot), just look for error messages or copy to a txt file and upload that.
sudo /usr/sbin/logrotate -d /etc/logrotate.conf
Also the output from (just post here)
ls -la /var/log
[edit]
If there are a couple of really large files, you can zero size them with (filename is an example)
sudo truncate -s 0 /var/log/daemon.log
[edit2]
Logrotate command needs sudo
This is the list, but I don’t what you would call “really big”
I will upload the textfile.
Thanks for helping out!
pi@emonpi:~ $ ls -la /var/log
total 19444
drwxr-xr-x 13 root root 1240 Dec 17 14:17 .
drwxr-xr-x 14 root root 4096 Nov 11 16:29 ..
-rw-r--r-- 1 root root 0 Nov 19 19:38 alternatives.log
drwxr-x--- 2 root adm 100 Nov 19 19:35 apache2
drwxr-xr-x 2 root root 140 Dec 10 19:00 apt
-rw-r----- 1 root adm 86016 Dec 17 14:50 auth.log
-rw-r----- 1 root adm 258481 Dec 14 15:17 auth.log.1
-rw-r----- 1 root adm 171 Dec 11 00:17 auth.log.2.gz
-rw-r----- 1 root adm 1496 Dec 11 00:00 auth.log.3.gz
-rw-r----- 1 root adm 172 Dec 10 19:17 auth.log.4.gz
-rw-r--r-- 1 root root 0 Sep 22 01:23 bootstrap.log
-rw-rw---- 1 root utmp 3456 Dec 16 06:23 btmp
-rw-rw---- 1 root utmp 0 Dec 10 19:00 btmp.1
-rw-r----- 1 root adm 3280896 Dec 17 14:53 daemon.log
-rw-r----- 1 root adm 5532919 Dec 15 16:17 daemon.log.1
-rw-r----- 1 root adm 71725 Dec 15 15:17 daemon.log.2.gz
-rw-r----- 1 root adm 27919 Dec 15 14:17 daemon.log.3.gz
-rw-r----- 1 root adm 22743 Dec 14 17:09 daemon.log.4.gz
-rw-r----- 1 root adm 2286 Dec 15 14:56 debug
-rw-r----- 1 root adm 1143 Dec 15 13:10 debug.1
-rw-r----- 1 root adm 430 Nov 26 20:23 debug.2.gz
-rw-r--r-- 1 root root 0 Nov 19 19:38 dpkg.log
drwxr-xr-x 2 pi root 120 Dec 10 19:46 emoncms
drwxr-xr-x 2 pi root 80 Dec 15 15:18 emonhub
drwxrwxr-x 2 root pi 60 Nov 19 19:33 emonpilcd
-rw-r--r-- 1 root root 0 Nov 11 18:16 faillog
-rw-r----- 1 root adm 233472 Dec 17 14:52 kern.log
-rw-r----- 1 root adm 269265 Dec 15 09:16 kern.log.1
-rw-r----- 1 root adm 31733 Dec 14 18:16 kern.log.2.gz
-rw-r----- 1 root adm 31802 Dec 14 03:16 kern.log.3.gz
-rw-r----- 1 root adm 31836 Dec 13 12:16 kern.log.4.gz
-rw-rw-r-- 1 root utmp 292292 Dec 17 11:03 lastlog
-rw-r--r-- 1 root root 8192 Dec 17 14:17 log2ram.log
-rw-r--r-- 1 root root 421 Dec 15 00:17 log2ram.log.1
-rw-r--r-- 1 root root 1056 Dec 14 23:17 log2ram.log.2.gz
-rw-r--r-- 1 root root 231 Dec 14 00:17 log2ram.log.3.gz
-rw-r--r-- 1 root root 1017 Dec 13 23:17 log2ram.log.4.gz
-rw-r--r-- 1 root root 257 Dec 13 00:17 log2ram.log.5.gz
-rw-r--r-- 1 root root 1012 Dec 12 23:17 log2ram.log.6.gz
-rw-r--r-- 1 root root 233 Dec 12 00:17 log2ram.log.7.gz
drwxr-xr-x 2 root adm 220 Dec 17 14:17 logrotate
-rw-r----- 1 root adm 229376 Dec 17 14:53 messages
-rw-r----- 1 root adm 269475 Dec 15 09:16 messages.1
-rw-r----- 1 root adm 32266 Dec 14 18:16 messages.2.gz
-rw-r----- 1 root adm 32025 Dec 14 03:16 messages.3.gz
-rw-r----- 1 root adm 32176 Dec 13 12:16 messages.4.gz
drwxr-xr-x 2 mosquitto root 60 Nov 10 16:26 mosquitto
drwxr-s--- 2 mysql adm 40 Nov 10 16:23 mysql
drwx------ 2 root root 40 Sep 22 01:23 private
drwxr-s--- 2 redis adm 140 Dec 17 00:00 redis
lrwxrwxrwx 1 root root 12 Nov 26 20:23 rotated_logs -> /var/log.old
drwxr-xr-x 3 root root 60 Sep 22 01:06 runit
-rw-r----- 1 root adm 3293184 Dec 17 14:53 syslog
-rw-r----- 1 root adm 5553127 Dec 15 16:17 syslog.1
-rw-r----- 1 root adm 91098 Dec 15 15:17 syslog.2.gz
-rw-r----- 1 root adm 49413 Dec 15 14:17 syslog.3.gz
-rw-r----- 1 root adm 32182 Dec 15 11:17 syslog.4.gz
-rw-r----- 1 root adm 380 Dec 15 14:56 user.log
-rw-r----- 1 root adm 190 Dec 15 13:10 user.log.1
-rw-r----- 1 root adm 149 Nov 26 20:23 user.log.2.gz
-rw-r--r-- 1 root root 299 Dec 15 14:56 wifiAP.log
-rw-rw-r-- 1 root utmp 11904 Dec 17 11:03 wtmp
pi@emonpi:~ $
Need fixing and I can’t flash a new SD at the moment to try it
Can you post the daemon.log
file, please?
where do I find that file?
I Use Putty as SSH terminal, is there anyway to get the file to my win11 desktop?