elkowar / eww

ElKowars wacky widgets
https://elkowar.github.io/eww
MIT License
9.21k stars 379 forks source link

[BUG] Wrong time in eww #1082

Open cherrynoize opened 5 months ago

cherrynoize commented 5 months ago

Checklist before submitting an issue

Description of the bug

This is the output of eww daemon:

2024-04-22T13:06:12.644Z INFO  eww > Initializing Eww server. (/run/user/1000/eww-server_83a18ae18d11d121)
Run `eww logs` to see any errors while editing your configuration.
 2024-04-22T13:06:12.644Z INFO  eww::server > Loading paths: config-dir: /home/noize/.config/eww, ipc-socket: /run/user/1000/eww-server_83a18ae18d11d121, log-file: /home/noize/.cache/eww/eww_83a18ae18d11d121.log
 2024-04-22T13:06:12.665Z ERROR eww::error_handling_ctx > second time provided was later than self

It's apparently using UTC time rather than localtime (UTC+2) which causes it to fail. I tried resetting the hardware clock and timezone but I keep getting this error. I can't see anything in eww logs either.

Reproducing the issue

No response

Expected behaviour

No response

Additional context

No response

elkowar commented 5 months ago

Could you run eww with --debug, and then take a look at the logs again and maybe share if there is more detail? I can't quite pin down where this error is coming from

xdevs23 commented 4 months ago

I'm having the same issue. This started happening without changing anything in the config. Next boot and suddenly eww doesn't work anymore:

 2024-05-22T18:05:43.161Z INFO  eww > Initializing Eww server. (/run/user/1000/eww-server_9d82731067d0218d)
Run `eww logs` to see any errors while editing your configuration.
 2024-05-22T18:05:43.161Z INFO  eww::server > Loading paths: config-dir: /home/simao/.config/eww, ipc-socket: /run/user/1000/eww-server_9d82731067d0218d, log-file: /home/simao/.cache/eww/eww_9d82731067d0218d.log
 2024-05-22T18:05:43.165Z ERROR eww::error_handling_ctx > second time provided was later than self

The log is not growing at all no matter what I do, eww logs, eww daemon, eww open topbar and also eww --debug daemon.

xdevs23 commented 4 months ago

It looks like deleting the log file solves the issue. I deleted /home/simao/.cache/eww/eww_9d82731067d0218d.log and after that it worked. Maybe the log file has a date in it or the modified time is incorrect or something like that. My PC crashed earlier so this might have done something to the log file.

cherryman commented 4 months ago

Same thing as @xdevs23 happened on my end. Computer crashed, deleting log file fixed it.

AndreasHGK commented 4 months ago

Also had this happen. I booted into windows, which changed my system clock. After booting back into linux, this started happening. Deleting the cache fixed the issue which I tried thank to this issue.

xdevs23 commented 4 months ago

Maybe eww could rename the config file when this error happens and just create a new one.