Coder Social home page Coder Social logo

Comments (21)

mawi42 avatar mawi42 commented on July 28, 2024

Config can also be used, setting e.g. LogLevel = ERROR and/or SignOfLifeLog to a high value

from dbus-shelly-3em-smartmeter.

johnyhravy avatar johnyhravy commented on July 28, 2024

Hello.
I have the same memory filling problem.

This is what my config looks like. ini:

[DEFAULT]
AccessType = OnPremise
SignOfLifeLog = 5
GridMeterBalancing = 1
LogLevel=INFO

[ONPREMISE]
Host=192.168.0.199
Username=
Password=

Should I still edit it? And please advise how.

Here's an extract from Shelly's directory:

root@raspberrypi4:/data/dbus-shelly-3em-smartmeter# du
du: ./current.log: Value too large for defined data type
220 ./img
84 ./docs
8 ./service/supervise
16 ./service
364 .

Can I request an order to erase the logs?
Thank you very much.

from dbus-shelly-3em-smartmeter.

mawi42 avatar mawi42 commented on July 28, 2024

Hi,
yes, I would edit the file and as I wrote set e.g. LogLevel=ERROR
I used simple the vi editor to edit the file which is available on the device.
And I also just removed the log file.

Hope this helps

from dbus-shelly-3em-smartmeter.

johnyhravy avatar johnyhravy commented on July 28, 2024

Thank you for the quick reply.
Can I ask for the exact specification of that command to delete the file?
I'm not a complete expert.
Thank you.

from dbus-shelly-3em-smartmeter.

hipik634 avatar hipik634 commented on July 28, 2024

i used crontab as follows before that 0 0 * * 0 rm /data/dbus-shelly-3em-smartmeter/current.log && /bin/bash /data/dbus-shelly-3em-smartmeter/restart.sh but each update removed it. You can use it to manually delete the log (it cannot be done while running)
So just run this and you should be fine "rm /data/dbus-shelly-3em-smartmeter/current.log && /bin/bash /data/dbus-shelly-3em-smartmeter/restart.sh"

from dbus-shelly-3em-smartmeter.

johnyhravy avatar johnyhravy commented on July 28, 2024

Thank you for answer.
Unfortunately it doesn't help me.
The answer in Putty is:

root@raspberrypi4:~# rm /data/dbus-shelly-3em-smartmeter/current.log && /bin/bash /data/dbus-shelly-3em-smartmeter/restart.sh
rm: can't stat '/data/dbus-shelly-3em-smartmeter/current.log': Value too large for defined data type

Please clarify what I am doing wrong.
Thank you.

from dbus-shelly-3em-smartmeter.

hipik634 avatar hipik634 commented on July 28, 2024

from dbus-shelly-3em-smartmeter.

johnyhravy avatar johnyhravy commented on July 28, 2024

The command "du / - h" was very long and at the end this.
du: -: No such file or directory
du: h: No such file or directory

Then I used "du -d 3 /data | sort -nr"
root@raspberrypi4:~# du -d 3 /data | sort -nr
du: /data/dbus-shelly-3em-smartmeter/current.log: Value too large for defined data type

Thank you very much for your kind help.
Can you think of anything else?

from dbus-shelly-3em-smartmeter.

hipik634 avatar hipik634 commented on July 28, 2024

from dbus-shelly-3em-smartmeter.

johnyhravy avatar johnyhravy commented on July 28, 2024

root@raspberrypi4:# cd /data/dbus-shelly-3em-smartmeter/current.log
-sh: cd: /data/dbus-shelly-3em-smartmeter/current.log: Not a directory
root@raspberrypi4:
# ls -l
-rw-r--r-- 1 root root 277 Sep 29 2022 installrelease.sh
-rw-r--r-- 1 root root 277 Oct 14 2022 installrelease.sh.1
-rw-r--r-- 1 root root 277 Nov 19 2022 installrelease.sh.2
-rw-r--r-- 1 root root 0 Mar 29 14:29 main.zip
-rw------- 1 root root 0 Feb 15 15:28 nano.save
-rw------- 1 root root 0 Feb 15 15:28 nano.save.1
-rw-r--r-- 1 root root 74135 Nov 27 2022 venus-data.tar.gz

from dbus-shelly-3em-smartmeter.

hipik634 avatar hipik634 commented on July 28, 2024

from dbus-shelly-3em-smartmeter.

johnyhravy avatar johnyhravy commented on July 28, 2024

root@raspberrypi4:~# cd /data/dbus-shelly-3em-smartmeter/
root@raspberrypi4:/data/dbus-shelly-3em-smartmeter# ls -l
ls: ./current.log: Value too large for defined data type
-rw-r--r-- 1 root root 4284 Jan 7 2023 README.md
-rw-r--r-- 1 root root 142 May 16 05:00 config.ini
-rw-r--r-- 1 root root 12077 Jan 7 2023 dbus-shelly-3em-smartmeter.py
drwxrwxrwx 2 root root 4096 Jan 7 2023 docs
drwxrwxrwx 2 root root 4096 Jan 7 2023 img
-rwxr-xr-x 1 root root 866 Jan 7 2023 install.sh
-rwxr--r-- 1 root root 160 Jan 7 2023 restart.sh
drwxrwxrwx 3 root root 4096 Mar 5 19:07 service
-rwxr--r-- 1 root root 176 Jan 7 2023 uninstall.sh

from dbus-shelly-3em-smartmeter.

hipik634 avatar hipik634 commented on July 28, 2024

from dbus-shelly-3em-smartmeter.

johnyhravy avatar johnyhravy commented on July 28, 2024

root@raspberrypi4:/data/dbus-shelly-3em-smartmeter# rm -rf current.log
rm: can't stat 'current.log': Value too large for defined data type
root@raspberrypi4:/data/dbus-shelly-3em-smartmeter# ./restart.sh

from dbus-shelly-3em-smartmeter.

hipik634 avatar hipik634 commented on July 28, 2024

from dbus-shelly-3em-smartmeter.

johnyhravy avatar johnyhravy commented on July 28, 2024

But the current.log file doesn't have that code, so I can't use it...

root@raspberrypi4:/data/dbus-shelly-3em-smartmeter# ls -i
ls: ./current.log: Value too large for defined data type
391692 README.md 391703 install.sh
391693 config.ini 391704 restart.sh
391694 dbus-shelly-3em-smartmeter.py 391705 service
391695 docs 391707 uninstall.sh
391698 img

from dbus-shelly-3em-smartmeter.

hipik634 avatar hipik634 commented on July 28, 2024

from dbus-shelly-3em-smartmeter.

johnyhravy avatar johnyhravy commented on July 28, 2024

root@raspberrypi4:/data/dbus-shelly-3em-smartmeter# fsck
fsck from util-linux 2.35.1
e2fsck 1.45.7 (28-Jan-2021)
/dev/mmcblk0p4 is mounted.
e2fsck: Cannot continue, aborting.

Thank you very much for your patience and detailed instructions. I'll try to get some help on how to clear the log so I don't have to uninstall Shelly. After these attempts, it seems that even the uninstall would fail due to the inaccessibility of the log.
In addition, I also use HomeAssistant and I really don't want to redo anything with my knowledge :)

from dbus-shelly-3em-smartmeter.

hipik634 avatar hipik634 commented on July 28, 2024

from dbus-shelly-3em-smartmeter.

Kotty666 avatar Kotty666 commented on July 28, 2024

@johnyhravy try

# echo > /data/dbus-shelly-3em-smartmeter/current.log
# /bin/bash /data/dbus-shelly-3em-smartmeter/restart.sh

this should work. I've also fixed the problem with growing log files and waiting that the code will be merged ( PR #71 )

from dbus-shelly-3em-smartmeter.

johnyhravy avatar johnyhravy commented on July 28, 2024

Thank you very much for your answer.
About 2 weeks ago, with the help of experienced advisors, I managed to clear the entire memory. I don't even know how it happened, but 2 days after entering various commands, the memory was OK.
Thanks everyone for the advice.

from dbus-shelly-3em-smartmeter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.