Skip to content
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

nut-upsd: Out of memory #109

Open
Solarunit opened this issue Apr 5, 2023 · 3 comments
Open

nut-upsd: Out of memory #109

Solarunit opened this issue Apr 5, 2023 · 3 comments

Comments

@Solarunit
Copy link

Solarunit commented Apr 5, 2023

I have a problem with rinning nut-upsd, in the logs is see:

Out of memory: Out of memory

I guess it's related to this:
networkupstools/nut#1672

As workaround there was mention of this:

/usr/sbin/upsd -F &

I was trying to add this in my docker-compose.yml by adding entrypoint: and command: but no luck so far..

@instantlinux
Copy link
Owner

Please provide more details about the hardware, software and configuration: how can we reproduce this elsewhere?

@myakove
Copy link

myakove commented Dec 24, 2023

Same here.
UPS: Eaton UPS 5E 1500i/1600/2200 (usbhid-ups)

nut-upsd:
    image: instantlinux/nut-upsd
    container_name: nut-upsd
    hostname: nut-upsd
    restart: unless-stopped
    privileged: true
    ports:
      - 3493:3493/tcp
    environment:
      - API_USER=user
      - API_PASSWORD=pass
      - NAME=UPS
      - DESCRIPTION=UPS Eaton 5E 1500i
      - VENDORID=0463
      - POLLINTERVAL=1

Got error: Out of memory: Out of memory

For now, got it running by modify entrypoint.sh and build locally.
Changed /usr/sbin/upsd -u $USER >> /usr/sbin/upsd -u $USER -F &

I have 3 PCs with Eaton UPSs, all of them needs this change.

All of them use the same docker version:

docker version
Client: Docker Engine - Community
 Version:           24.0.7
 API version:       1.43
 Go version:        go1.20.10
 Git commit:        afdd53b
 Built:             Thu Oct 26 09:09:56 2023
 OS/Arch:           linux/amd64
 Context:           default

Server: Docker Engine - Community
 Engine:
  Version:          24.0.7
  API version:      1.43 (minimum version 1.12)
  Go version:       go1.20.10
  Git commit:       311b9ff
  Built:            Thu Oct 26 09:08:22 2023
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.6.26
  GitCommit:        3dd1e886e55dd695541fdcd67420c2888645a495
 runc:
  Version:          1.1.10
  GitCommit:        v1.1.10-0-g18a0cb0
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

Let me know if more info is needed.

@Solarunit
Copy link
Author

Please provide more details about the hardware, software and configuration: how can we reproduce this elsewhere?

I am sorry, I can longer reproduce it because i don't use nut docker now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants