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

FRR can't allocate memory #31

Closed
Aperence opened this issue Aug 18, 2023 · 6 comments
Closed

FRR can't allocate memory #31

Aperence opened this issue Aug 18, 2023 · 6 comments
Assignees
Labels
bug Something isn't working duplicate This issue or pull request already exists help wanted Extra attention is needed linux/arch linux/red-hat

Comments

@Aperence
Copy link

Aperence commented Aug 18, 2023

Hello,
While trying to run one of the example lab, I encounter always the same error "fork() can't allocate memory" while trying to run /etc/init.d/frr start.

screenshot
Although, when checking the memory allowed to each device, I can see that they each have 15GB available, which should be more than enough to run frr.

memory available

I thus wonder what am I doing wrong ?
Thanks in advance for you help !

NB : my computer is running on fedora 38

@tcaiazzi
Copy link
Member

tcaiazzi commented Aug 18, 2023

Hi @Aperence,

Thanks for opening the issue!

To debug the problem I need further information:

  • What is your Docker version?
  • Do you have the last version of Kathará?

Thanks,
Tommaso

@Aperence
Copy link
Author

Hi,

  • My current docker version is 24.0.5 (see screen below for more details)
    Screenshot from 2023-08-19 09-24-20

  • I indeed have the latest version of kathara as I installed it 3 days ago (3.6.3) Screenshot from 2023-08-19 09-25-26

Thanks already for your help

@tcaiazzi
Copy link
Member

Hi @Aperence,

Sorry for the delay, I was on vacation until yesterday 😇

I'm also experiencing your issue on my Fedora 38 VM.

This is a very strange behavior since the error happens only with frr. All the other daemons such as quagga, bind, apache2 work fine.

Moreover, I found that if you use the su command, then `frr' starts correctly.

image

I think there is some differences in the environment of the two scenarios, and for some reason using su something (that allows frr to run properly) changes.

I'm still searching for a proper explanation. If you have some ideas let me know!

Thanks!

@tcaiazzi tcaiazzi added the help wanted Extra attention is needed label Aug 22, 2023
@Aperence
Copy link
Author

Hi,

Hope you had a good holiday !

This behaviour seems indeed really strange, and I don't really know what could be the cause of it, sadly. I'll inform you if I find any reason in the future, but it seems complicated

At least, thanks to your discovery with su, I can temporarily make a work-around by using:

su <<EOF
/etc/init.d/frr start
EOF

This isn't ideal, but well it kinda works for the moment at least 🙂

@lorenzo93
Copy link
Member

Hi everyone,

@BuonHobo find the same bug in ArchLinux.
With the new Docker Images the init.d folder has been deprecated, so you need to use systemctl.
The new workaround for systemctl is:

su -c "systemctl start frr"

@tcaiazzi
Copy link
Member

tcaiazzi commented Nov 3, 2023

Hi @Aperence,

I'm closing this issue, since I opened a new one (KatharaFramework/Docker-Images#10) in the Docker images repository. We can continue the discussion there.

Many thanks for the help and support 🚀

@tcaiazzi tcaiazzi closed this as completed Nov 3, 2023
@tcaiazzi tcaiazzi changed the title FRR can't allocate memory FRR can't allocate memory (Duplicated) Nov 3, 2023
@tcaiazzi tcaiazzi changed the title FRR can't allocate memory (Duplicated) FRR can't allocate memory (Duplicate) Nov 3, 2023
@tcaiazzi tcaiazzi changed the title FRR can't allocate memory (Duplicate) FRR can't allocate memory Nov 3, 2023
@tcaiazzi tcaiazzi added the duplicate This issue or pull request already exists label Nov 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists help wanted Extra attention is needed linux/arch linux/red-hat
Projects
None yet
Development

No branches or pull requests

3 participants