Skip to content

[SOLVED] Owntracks on raspberry - error gcache_open: mdb_env_open: Cannot allocate memory #404

@stdestro

Description

@stdestro

EDIT: I figured it out
as I read in another post adding Environment="OTR_LMDBSIZE=125829120" to /etc/systemd/system/ot-recorder.service fixed the error gcache_open: mdb_env_open: Cannot allocate memory

The service stopped because the mosquitto port in my machine was different. I solved disabling Mosquitto or changing the port

So, I'm trying to install Owntracks recorder on a Raspberry.
Docker is not an options since there's only a 64bit image.
I tried to install it from packages but after launching the service it fails and I get this error "gcache_open: mdb_env_open: Cannot allocate memory"
I cannot find any solution, any chance someone could point me in the right direction?

systemctl status ot-recorder
● ot-recorder.service - OwnTracks Recorder
     Loaded: loaded (/etc/systemd/system/ot-recorder.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Thu 2022-10-13 21:41:32 CEST; 14min ago
    Process: 22695 ExecStartPre=/bin/sleep 15 (code=exited, status=0/SUCCESS)
    Process: 22916 ExecStart=/usr/sbin/ot-recorder (code=exited, status=14)
   Main PID: 22916 (code=exited, status=14)
        CPU: 127ms

Oct 13 21:41:32 openhabian ot-recorder[22916]: storage_init(): gc is NULL
Oct 13 21:41:32 openhabian ot-recorder[22916]: gcache_open: mdb_env_open: Cannot allocate memory
Oct 13 21:41:32 openhabian ot-recorder[22916]: gcache_open: mdb_env_open: Cannot allocate memory
Oct 13 21:41:32 openhabian ot-recorder[22916]: gcache_open: mdb_env_open: Cannot allocate memory
Oct 13 21:41:32 openhabian ot-recorder[22916]: gcache_open: mdb_env_open: Cannot allocate memory
Oct 13 21:41:32 openhabian ot-recorder[22916]: gcache_open: mdb_env_open: Cannot allocate memory
Oct 13 21:41:32 openhabian ot-recorder[22916]: connecting to MQTT on localhost:1883 as clientID ot-recorder-openhabian-22916 without TLS
Oct 13 21:41:32 openhabian ot-recorder[22916]: Error: Connection refused
Oct 13 21:41:32 openhabian systemd[1]: ot-recorder.service: Main process exited, code=exited, status=14/n/a
Oct 13 21:41:32 openhabian systemd[1]: ot-recorder.service: Failed with result 'exit-code'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions