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.

IPFS Desktop - installing from source issue - Running as root without --no-sandbox is not supported

See original GitHub issue
  • Linux 18.04.06 LTS
  • IPFS Desktop 0.20.4

Describe the bug Hi there, I kinda new in linux world, so any suggestion is welcome. 😃 Anyway, about the issue. I tried to follow these steps to install ipfs-desktop. On early phase of installation, I got this kind of error

/root/ipfs-desktop/node_modules/electron/dist/electron: error while loading shared libraries: libasound.so.2: c annot open shared object file: No such file or directory

So, every error around that, I install it one by one (you can see on steps to reproduce below, no.4). And at last, I tried npm start and it gives me another error, as written on steps to reproduce below, no.5

So, is there any issue about that? I wonder if running it as root is an issue, but when I see, there’s no documentation (or do I miss it?) around that, so I think it’s okay if we run it as root. Also, I’m not sure about packages / .so libraries that missing, so, is there any per-requisites before installing this other than installing node and npm itself?

And last, if we can’t run it as root due some issue etc, do you think it needs to be added on documentation?

To Reproduce Steps to reproduce the behavior:

  1. SSH login as root

  2. Following the same steps to install ipfs-desktop

  3. When reaching npm start, got some errors related .so packages, so I install some of it one-by-one depends of what it needs. To sum-up I did this sudo apt-get install libnss3 -y && sudo apt-get install libatk-bridge2.0-0 -y && sudo apt-get install libcups2 -y && sudo apt-get install libgtk-3-0 -y && sudo apt-get install libgbm -y && sudo apt-get install libasound2 -y

  4. Try to do npm start and it shows

> ipfs-desktop@0.20.4 start
> cross-env NODE_ENV=development electron .

[0331/023137.699363:FATAL:electron_main_delegate.cc(291)] Running as root without --no-sandbox is not supported . See https://crbug.com/638180.
/root/ipfs-desktop/node_modules/electron/dist/electron exited with signal SIGTRAP

Expected behavior Not sure, but, ipfs-desktop should start without an issue(?).

Additional context I did those above steps, as root. I tried to check around the solution, but I ended-up no idea of what it is or how to do that. Here’s one of the result when I tried to check around how to overcome this issue - link. But I really have no idea what it’s, but I think I shouldn’t need to tweak the code(?)

Thanks for your time! 😃

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
lidelcommented, Apr 11, 2022
  • electron-builder takes care of selecting all the necessary libraries for us – you could investigate .deb or .rpm packages and see which deps are listed in manifests there
  • sadly we have no bandwidth to support debugging your custom build from source – you can try asking for help at https://discuss.ipfs.io/c/help/13 – this repo is for bugs in ipfs-desktop itself, so I’m closing this issue.
  • fwiw we provide pre-built packages including AppImage – if you have no luck with custom build, I suggest using prebuilt version
0reactions
wandyydcommented, Apr 12, 2022

Thank you for your comments. I will take notes for it, for future references! Cheers! 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Running as root without --no-sandbox is not supported - scsynth
Recompiling SuperCollider for a new machine and I ran into an error I haven't had before for a system-wide install.
Read more >
FATAL: Running as root without --no-sandbox is not supported ...
I had a similar issue when I run my electron app with sudo: sudo ./MyElectronApp.
Read more >
IPFS Desktop - MISTERY
IPFS Desktop allows you to run your IPFS Node on your machine without having to bother with command line tools. With it, you...
Read more >
Running as root without --no-sandbox is not supported : r/node
r/ManjaroLinux - im trying to install microsoft teams, but I cant because of.
Read more >
1024211 - Manifest V3: webRequest listeners not called after ...
Firefox: IE/Edge: What steps will reproduce the problem? 1. Install attached extension 2.
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