-
Notifications
You must be signed in to change notification settings - Fork 761
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Raspberry Pi: clock_gettime(CLOCK_MONOTONIC, _) failed: Operation not permitted (1) #2302
Comments
ke@new-rasp: |
Same here |
Reverting back to 1.25.0 makes the bootloop stop.. |
Similar issues getting the container started. Errors differ though, as provided in #2300
More logs:
Have decided to rollback to 1.25 for the time being. |
Could you tell me how you do this ? |
Change the yml file from
To
|
@leewillis77 posted a soluation here: #2300 (comment) |
I upgraded directly to v1.25.2 and I cannot load teslamate at port 4000. Grafana on 3000 loads to a login window. pi@teslamate:~ $ docker-compose --version I believe it actually upgraded to v1.25.2, how do I find the current installed version? Appears I'm up-to-date: pi@teslamate:~ $ docker-compose pull |
If you did not modify anything in your YML file and the teslamate service says |
@petebocken |
@leewillis77 - do you happen to have a small or quick right up for your fix as linked above? I suspect you are right, I am on v10 and facing errors. Although, it seems inconsistent what errors people are getting. |
That doesn't appear to show any versions.. It does show latest cause that's what my config is set to. I did first try switching that to 1.25.0 and try to downgrade, but that didn't appear to downgrade at all. pi@teslamate:~ $ docker ps -a |
Yup, mine is throwing errors like crazy: =ERROR REPORT==== 12-Jan-2022::18:13:49.931687 === |
@cwanja There's not much to say really - download package, and install. I'm not really sure I want to provide step-by-step instructions as I'm not wholly convinced that it's a valid fix. From my understanding of how debian manage their repositories it probably is, and I'm comfortable applying that fix to my server, but I'm not (personally) comfortable declaring it as the "proper" fix for everyone. |
That tells us that you are running the "latest" version. Which would be 1.25.2. For example, here is mine running 1.25.0 specifically.
|
Figured. But i'm still dead in the water. I went straight from whatever the last version was before today to 1.25.2 and it won't let me load teslamate in the browser. |
You definitely should be able to downgrade. I have gone from 1.25.0 to .2 back to .0 then to .1 and back to .0. You might need to do a |
@petebocken see #2300 (comment) for info on how to downgrade the teslamate image to 1.25.0 |
Yup, that's what I did the first time, but I had to run I downgraded to 1.25.0 again and it's working. Soooo apparently this isn't fixed in 1.25.2 or am I dealing with a different issue?
|
Ah, teslamate loads fine on 1.25.0, but grafana still sits at a login window. |
admin | admin unless you changed it. |
You have the same errors I do in 1.25.2 which leads us back to @leewillis77 post here. Yet to sit down and try and fix it, but I assume you would be running Debian v10 and that is why you are facing the errors on 1.25.2. |
Thanks, that worked |
Yup, I'm on Debian Buster 10. I'll sit tight on 1.25.0. :-) |
So I do not want to solicit this as an "official" fix, but I find this fix working and comfortable applying. Specifically this section:
I was able to follow that and got 1.25.2 working.
This will also ensure that any future Apply at your own will and risk. |
I have the same Issue on a Raspberry Pi 3 Model B Rev 1.2, Just did the same as cwanja and it worked for me. |
1.25.1 introduced an error, referenced in #2300, preventing TeslaMate web interface to start. Edit: to be clear, the errors in 1.25.2 are not related to TeslaMate specifically. Seems there is a core Linux service (file? Dameon?) that was not updated in v10 for Raspbian OS. Someone can better explain it than I can, I am sure. |
The TeslaMate Docker image is based on the official TeslaMate images built after this date are therefore implicitly also based on Debian Bullseye, although no changes have been made by TeslaMate. Thus, unfortunately, we cannot undo this. Raspberry Pi users therefore have no choice but to either upgrade Raspbian or perform the workarounds described above. |
You can fix this by adding hosts /etc/timezone and /etc/localtime as volumes to the container.
|
This didn't work for me, same error message appeared in the logs |
Hmm, weird. My first solution was to run the container with full privileges. If you run only local or can take the risk, you can add But the volumes: entry should also do the trick. |
Thanks for the advice, I'd rather not run it full privileges :) What I did was to add the 2 extra lines on the volumes and then I run the following commands:
Is this right? |
I can confirm that unfortunately, adding these two entries doesn't work, even after restarting Docker, and/or the machine it's running on. Looks like I'm stuck on 1.25.0 for now. |
I resolved add previleges : true on docker compose for teslamate image |
After upgrading to bullseye on raspberry pi whenever I start up teslamate in docker it seems to be unable to connect to the internet. I tried running my container in privileged mode with no luck either. Without the docker container running I am able to ping external servers. Any suggestions what I am doing wrong here? |
Are you able to connect to any sites on the Pi? I had to reconfigure Ethernet configuration post upgrade. |
This is on my Wireless LAN and yes I am able to connect to sites if I keep my Docker container shut down. Also I am able to SSH to my Raspberry Pi via WLAN regardless of the state in which the docker container is in |
I know we're going a bit off topic here, but which guide did you follow to upgrade to Bullseye? I have a lot of stuff running on my Pi and I'm scared it'll take me ages to be up&running again |
I did this... |
I followed this guide https://blues.io/blog/guide-upgrade-raspberry-pi-buster-bullseye/ and after the upgrade reinstalled docker compose |
Thanks both for your suggestion.. I'll find a moment to try it ASAP |
For you, backporting the required file will probably be the safer solution. |
Thanks for your comment, unfortunately I've already tried it but it doesn't work for 1.26. Is it working for you on the latest version? |
I backported for 1.25.X to work. Then upgraded Bullseye on top of it and it was still working. Currently running the latest version of TeslaMate no issues. |
I think I've tried it directly on the latest but without upgrading to Bullseye and it didn't work. I guess it's a mandatory step regardless the backport install |
So this morning I upgraded my docker version to 20.10.5 with the following guide: and now teslamate 1.25.2 works fine! Now I just need to find the time to upgrade to Bullseye and try the latest teslamate image. @cwanja I'm wondering if, after upgrading to Bullseye,did you remove the Apt Preferences file /etc/apt/preferences.d/bullseye-docker.pref ? EDIT: EDIT2: Thanks everybody for your help! |
I did not. To get TeslaMate upgraded on Buster, all you needed to do was update |
Everything has been running fine on bullseye and version 1.26.1. Today though the TeslaMate and grafana containers keep restarting over and over |
What are in the logs?
… On Feb 2, 2022, at 7:34 AM, natrlhy ***@***.***> wrote:
Everything has been running fine on bullseye and version 1.26.1. Today though the TeslaMate and grafana containers keep restarting over and over
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you were mentioned.
|
It never stays up long enough to view the logs
|
Sorry, looks like it's the DB and grafana that won't stay up. EDIT: Ah / has no space left... hm... |
It's because of libseccomp version, we can upgrade libseccomp.
|
Is there an existing issue for this?
What happened?
The main container of teslamate keeps restarting.
Expected Behavior
No response
Steps To Reproduce
No response
Relevant log output
Screenshots
No response
Additional data
No response
Type of installation
Docker
Version
v1.25.2
The text was updated successfully, but these errors were encountered: