-
-
Notifications
You must be signed in to change notification settings - Fork 125
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 2: can't launch ot-recorder ("Cannot allocate memory") #480
Comments
I'm sorry you're having trouble getting that to start! I've not seen an Rpi 2 for a bit, so I'm just guessing. Can you please try lowering that cache size a bit, say
and see whether it will then start? |
Thanks @jpmens for your help. It started perfectly:
Should I try to change environment variable in |
Yes, please do, and I don't doubt (famous last words) it will work. Depending on how many reverse-geo entries you will produce over time (I am assuming you configured OpenCage with a key), the space we've reserved for LMDB might become a bit tight, but we'll have to cross that bridge when we get there. You might like to try 2MB
|
I tried 2097152, and it worked when I recreated the However, after having updated
I tried with 1048576, same. 😭 So maybe the environment value isn't used by service? Here is my service file:
|
Do you see your change with
? |
Oopsie!
If the configured size is below 10MB we set it to 10MB, hence what we're doing here has no effect. Are you able to compile code on your Rpi? I could provide a patch quickly. |
Oh oh:
Where does this |
It's created during Quicksetup config, but that's not the problem, sadly. See above for my previous "Oopsie" comment. |
I tried manually with 10MB, and it works! So the problem comes from this The value set by |
Thanks for finding that! (You know my code better than I do -- tbh I'd forgotten about the override.) Very glad you got it sorted. |
Keep in mind, please, that when you re-run |
Thank you very much for your help! I updated |
… cache size) addresses owntracks/recorder#480
- FIX: OTR_CLEAN_AGE default not correctly handled (#500) - FIX: ocat --dump will not output keys which don't have JSON data in them - FIX: lowercase waypoints (otrw) and config (otrc) directory and filenames (#486) - UPD: remove support for Greenwich devices (#484) - FIX: avoid a JSON object copy - FIX: print currently desired lmdb size in error that cache cannot be opened (#480) - NEW: startup message hints at configured revgeo setting and reverse geocoder brand - FIX: debian postinst now restarts ot-recorder (#446)
Hi!
I just installed OwnTracks on my Raspberry Pi 2 (with freshly installed Raspberry Pi OS) using quick setup and
bootstrap.sh
. Everything went well, with no error.However, part of OwnTracks does'nt work: ot-recorder service isn't started, with this error message:
I thought using the solution described in #404 and #348 would solve this problem, but it doesn't. I add
Environment="OTR_LMDBSIZE=10485760"
in[Service]
part of/etc/systemd/system/ot-recorder.service
, deleted/var/spool/owntracks/recorder/store/ghash/*.mdb
files, exportedOTR_LMDBSIZE=10485760
in the shell before runningot-recorder --initialize
(which created newmdb
files), but when I start ot-recorder (withsudo systemctl start ot-recorder
), the same error happens.Do you know what I could try in order to run ot-recorder?
The text was updated successfully, but these errors were encountered: