question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[cape2.sh] - jemalloc error

See original GitHub issue

Prerequisites

Please answer the following questions for yourself before submitting an issue.

  • I checked to make sure that this issue has not already been filed
  • I’m reporting the issue to the correct repository (for multi-repository projects)
  • I read my log of instalation, all issues will be closed if you don’t do your part of work
  • I understand that reporting issue related to any instalation script without instalation log is useless and will be closed

Expected Behavior

jemalloc should install cleanly without any errors

Current Behavior

the execution of cape2.sh ends with an error regarding jemolloc ln: failed to create symbolic link '/usr/lib/x86_64-linux-gnu/libjemalloc.so': File exists

Failure Information (for bugs)

Steps to Reproduce

Please provide detailed steps for reproducing the issue.

  1. pull down kvm-aemu.sh
  2. run sudo ./kvm-qemu.sh all <username> | tee kvm-qemu.log
  3. reboot
  4. pull down capev2.sh
  5. run sudo ./cape2.sh base cape | tee cape.log
  6. observe error at the very end of the execution of cape2.sh

Context

I believe this is a result of running kvm-qemu.sh which installs jemalloc in a different manner, thus resulting in a conflict.

https://github.com/doomedraven/Tools/blob/41bdab856c6bb9e5a559d77606aea8101a5a94f0/Virtualization/kvm-qemu.sh#L774-L778

I suspect reusing the logic from kvm-qemu.sh is a solution, though I’m not confident if that’s the best solution. I am happy to submit a PR with some direction.

As a sidenote, though I don’t think it matter here, I also observed that the file installed via the package in kvm-qemu.sh is different than the one attempted to be symlink’ed in cape2.sh

# existing symlink
> ls -lhntra /usr/lib/x86_64-linux-gnu/libjemalloc.so
lrwxrwxrwx 1 0 0 16 Apr  2  2020 /usr/lib/x86_64-linux-gnu/libjemalloc.so -> libjemalloc.so.2

# md5 of existing symlink
> md5sum /usr/lib/x86_64-linux-gnu/libjemalloc.so.2
d13aabd3e907425ee2efd7098085eb10  /usr/lib/x86_64-linux-gnu/libjemalloc.so.2

# md5 of attempted symlink
> md5sum  /usr/local/lib/libjemalloc.so
c0f484e7e927221673bde6c79348d0e7  /usr/local/lib/libjemalloc.so
Question Answer
OS version Ubuntu 20.04

Failure Logs

**********************************************************************
 
 Done. The new package has been installed and saved to
 
 /tmp/jemalloc-jemalloc-886e40b/jemalloc-5.2.1_5.2.1-1_amd64.deb
 
 You can remove it from your system anytime using: 
 
      dpkg -r jemalloc-5.2.1
 
**********************************************************************
 
ln: failed to create symbolic link '/usr/lib/x86_64-linux-gnu/libjemalloc.so': File exists

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
doomedravencommented, Mar 6, 2021

ya i see many people getting this problem with jemalloc, the easier is just add options to apt to overwrite the file and forget, i will add that to both scripts today or tomorrow, thanks

0reactions
doomedravencommented, Mar 7, 2021

Thank you for testing, glat is was useful, let me know if you see any other bug

El dom., 7 mar. 2021 0:09, zoomequipd notifications@github.com escribió:

just tested it from a snapshot taken just after running kvm-qemu - looks good to me!

Thanks a bunch for all the work you put into this -it has saved me so much time!

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/doomedraven/Tools/issues/82#issuecomment-792107785, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAOFH3ZQYDD2TPFP5UWTWPLTCKYZZANCNFSM4YW7KFVA .

Read more comments on GitHub >

github_iconTop Results From Across the Web

Installing CAPE — CAPE Sandbox v2.1 Book
The script to install CAPE can be found here: cape2.sh. Note. CAPE is being maintained and updated in a rolling fashion. That is,...
Read more >
oMt - River Thames Conditions - Environment Agency - GOV.UK
Ie9 attachevent not working, Masque de la roche cotard, Kammron taylor stats, ... Plasmodium falciparum map, Cape 2 rio death, Teva 833 vs...
Read more >
Untitled
Philosophical category error, Coax balun ferrite, Buraidah central hospital, Distanta constanta ... Cheap flat headstones for graves, Cape 2 cairo perth!
Read more >
CAPE Sandbox installation from 0 to hero - NetbyteSec
cape2.sh base cape. Figure 3: cape.sh running. Install MongoDB ... Network Connectivity Status Indicator, Error Reporting, etc.
Read more >
Tools - githubmemory
KVM-QEMU.sh Installer Error: Invalid architecture name in 'Architecture' Field ... [cape2.sh] - jemalloc error. nikAizuddin. nikAizuddin CLOSED.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found