Welcome, Guest. Please login or register.

Author Topic: "Cannot allocate memory at /var/nedi/inc/libcli.pm line 668"  (Read 893 times)

sergrok

  • Newbie
  • *
  • Posts: 13
    • View Profile
"Cannot allocate memory at /var/nedi/inc/libcli.pm line 668"
« on: November 11, 2022, 06:40:33 am »
Hello

 Sometimes the discovery process halted with an error like:

Code: [Select]
PTY :Forking ssh -o 'UserKnownHostsFile=/dev/null' -o 'StrictHostKeyChecking no' -o KexAlgorithms=+diffie-hellman-group1-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1 -o HostKeyAlgorithms=+ssh-dss -o Ciphers=+aes256-cbc,3des-cbc -o PreferredAuthentications=password -o PubkeyAuthentication=no -l admin -p 22 10.0.0.250
Cannot allocate memory at /var/nedi/inc/libcli.pm line 668.

There are next lines at that place in libcli.pm:
Code: [Select]
        unless (my $pid = fork){
                die $! unless defined $pid;

How can I fix it? I've already checked free memory and free disk space.

rickli

  • Administrator
  • Hero Member
  • *****
  • Posts: 2897
    • View Profile
    • NeDi
Re: "Cannot allocate memory at /var/nedi/inc/libcli.pm line 668"
« Reply #1 on: February 02, 2023, 11:10:01 am »
How many devices do you have?

Perhaps this helps: exec /usr/bin/softlimit -m 5000000
Please consider Other-Invoices on your NeDi installation for an annual contribution, tx!
-Remo