rykcod / massa Goto Github PK
View Code? Open in Web Editor NEWMassa node + massa-guard
License: MIT License
Massa node + massa-guard
License: MIT License
I'm having a problem with the log file being too large. In about 20h, about 540000 log lines were generated, it takes up about 110Mb, it keeps growing. I checked, it's because my machine has a network error and it keeps generating the INFO log about this error, I think saving the whole log I think is not necessary, we should have 1 more option for full log storage or only shortened storage, in case of log save with shortened, if the same log line is the same, but occurs continuously, can you count it and print out the number of times it occurs? This will significantly reduce the log file size for machines that often output network failures like me.
For example:
If my full log is:
2022-10-18T09:00:18.714239Z INFO massa_network_worker::network_event::event_impl: Send network event failed An error occurred during channel communication: Failed to send event.
2022-10-18T09:00:18.715263Z INFO massa_network_worker::network_event::event_impl: Send network event failed An error occurred during channel communication: Failed to send event.
2022-10-18T09:00:18.716025Z INFO massa_network_worker::network_event::event_impl: Send network event failed An error occurred during channel communication: Failed to send event.
2022-10-18T09:00:18.717184Z INFO massa_network_worker::network_event::event_impl: Send network event failed An error occurred during channel communication: Failed to send event.
2022-10-18T09:00:18.718331Z INFO massa_network_worker::network_event::event_impl: Send network event failed An error occurred during channel communication: Failed to send event.
2022-10-18T09:00:18.719588Z INFO massa_network_worker::network_event::event_impl: Send network event failed An error occurred during channel communication: Failed to send event.
2022-10-18T09:00:18.720694Z INFO massa_network_worker::network_event::event_impl: Send network event failed An error occurred during channel communication: Failed to send event.
2022-10-18T09:00:18.721837Z INFO massa_network_worker::network_event::event_impl: Send network event failed An error occurred during channel communication: Failed to send event.
2022-10-18T09:00:18.723105Z INFO massa_network_worker::network_event::event_impl: Send network event failed An error occurred during channel communication: Failed to send event.
2022-10-18T09:00:18.723974Z INFO massa_network_worker::network_event::event_impl: Send network event failed An error occurred during channel communication: Failed to send event.
2022-10-18T09:00:18.725580Z INFO massa_network_worker::network_event::event_impl: Send network event failed An error occurred during channel communication: Failed to send event.
2022-10-18T09:00:18.726722Z INFO massa_network_worker::network_event::event_impl: Send network event failed An error occurred during channel communication: Failed to send event.
2022-10-18T09:00:18.727859Z INFO massa_network_worker::network_event::event_impl: Send network event failed An error occurred during channel communication: Failed to send event.
2022-10-18T09:00:18.727934Z INFO massa_network_worker::network_event::event_impl: Send network event failed An error occurred during channel communication: Failed to send event.
2022-10-18T09:00:18.729078Z INFO massa_network_worker::network_event::event_impl: Send network event failed An error occurred during channel communication: Failed to send event.
2022-10-18T09:00:18.730551Z INFO massa_network_worker::network_event::event_impl: Send network event failed An error occurred during channel communication: Failed to send event.
Then the abbreviated log would be:
2022-10-18T09:00:18.714239Z INFO massa_network_worker::network_event::event_impl: Send network event failed An error occurred during channel communication: Failed to send event.
Counted 14 identical log lines
2022-10-18T09:00:18.730551Z INFO massa_network_worker::network_event::event_impl: Send network event failed An error occurred during channel communication: Failed to send event.
does it support auto update?
Hallo, Ryckcod
Do you have bootstrap peers list?
Best Regards
massa-client
� command · get_status
Error: check if your node is running: error trying to connect: tcp connect error: Connection refused (os error 111)
Logs :
2022-11-01T12:24:45.940315Z INFO massa_node: Node version : TEST.16.0
2022-11-01T12:24:46.137816Z INFO massa_bootstrap::client: Start bootstrapping from 149.202.89.125:31245
2022-11-01T12:24:46.170269Z WARN massa_bootstrap::client: Error received from bootstrap server: Your last bootstrap on this server was 4270.252398647s ago and you have to wait 38929.7476012s before retrying.
2022-11-01T12:24:46.170603Z INFO massa_bootstrap::client: Bootstrap from server 149.202.89.125:31245 failed. Your node will try to bootstrap from another server in 60s.
2022-11-01T12:25:46.171770Z INFO massa_bootstrap::client: Start bootstrapping from 158.69.120.215:31245
2022-11-01T12:25:46.362570Z WARN massa_bootstrap::client: Error received from bootstrap server: Your last bootstrap on this server was 4040.514541526s ago and you have to wait 39159.485458428s before retrying.
2022-11-01T12:25:46.362785Z INFO massa_bootstrap::client: Bootstrap from server 158.69.120.215:31245 failed. Your node will try to bootstrap from another server in 60s.
2022-11-01T12:26:46.364337Z INFO massa_bootstrap::client: Start bootstrapping from 77.40.50.164:31245
2022-11-01T12:26:46.467851Z WARN massa_bootstrap::client: Error while bootstrapping: io error: early eof
2022-11-01T12:26:46.468352Z INFO massa_bootstrap::client: Bootstrap from server 77.40.50.164:31245 failed. Your node will try to bootstrap from another server in 60s.
2022-11-01T12:27:46.470408Z INFO massa_bootstrap::client: Start bootstrapping from 158.69.23.120:31245
2022-11-01T12:27:46.663659Z WARN massa_bootstrap::client: Error received from bootstrap server: Your last bootstrap on this server was 5058.663387752s ago and you have to wait 38141.336612164s before retrying.
2022-11-01T12:27:46.663944Z INFO massa_bootstrap::client: Bootstrap from server 158.69.23.120:31245 failed. Your node will try to bootstrap from another server in 60s.
2022-11-01T12:28:46.665745Z INFO massa_bootstrap::client: Start bootstrapping from 154.26.132.217:31245
2022-11-01T12:28:47.003563Z WARN massa_bootstrap::client: Error while bootstrapping: io error: early eof
2022-11-01T12:28:47.004286Z INFO massa_bootstrap::client: Bootstrap from server 154.26.132.217:31245 failed. Your node will try to bootstrap from another server in 60s.
2022-11-01T12:29:47.006050Z INFO massa_bootstrap::client: Start bootstrapping from 149.202.86.103:31245
2022-11-01T12:29:47.051222Z WARN massa_bootstrap::client: Error received from bootstrap server: Your last bootstrap on this server was 6454.498238812s ago and you have to wait 36745.501761098s before retrying.
2022-11-01T12:29:47.051564Z INFO massa_bootstrap::client: Bootstrap from server 149.202.86.103:31245 failed. Your node will try to bootstrap from another server in 60s.
2022-11-01T12:30:47.053462Z INFO massa_bootstrap::client: Start bootstrapping from 198.27.74.5:31245
2022-11-01T12:30:47.235108Z WARN massa_bootstrap::client: Error received from bootstrap server: Your last bootstrap on this server was 4159.5918281s ago and you have to wait 39040.408171797s before retrying.
2022-11-01T12:30:47.235354Z INFO massa_bootstrap::client: Bootstrap from server 198.27.74.5:31245 failed. Your node will try to bootstrap from another server in 60s.
There seems to be a bug in massa-guard.sh.
I am running the node with Logs enabled (default).
The following line is spammed into logs when running: ```docker logs massa-node -f````
/massa-guard/massa-guard.sh: line 49: [: -eq: unary operator expected
/massa-guard/massa-guard.sh: line 49: [: -eq: unary operator expected
/massa-guard/massa-guard.sh: line 49: [: -eq: unary operator expected
/massa-guard/massa-guard.sh: line 49: [: -eq: unary operator expected
/massa-guard/massa-guard.sh: line 49: [: -eq: unary operator expected
/massa-guard/massa-guard.sh: line 49: [: -eq: unary operator expected
Mine got stuck in here ,,it didn't create anything... Any solutions ?
tail -f /massa/massa_mount/logs/massa-guard/20220624-massa_guard.txt
[20220624-18H39][INFO][LOAD]LOAD /massa_mount/config.toml as ref
[20220624-18H56][INFO][LOAD]LOAD /massa_mount/config.toml as ref
[20220624-19H19][INFO][INIT]Create your default config.toml with X.X.X.X as routable IP
[20220624-19H49][INFO][INIT]Create your default config.toml with X.X.X.X as routable IP
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.