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.

Unable to add IPFS command line tools

See original GitHub issue

When i click the checkbox in the desktop-UI labeled “IPFS command line tools”, i get a popup asking for authentication from PolicyKit to run /usr/bin/env. When i enter the correct password, a second popup gets displayed: Error IPFS comandline tools My account is part of the sudo group, and root has a password set…

OS: Ubuntu 19.04 x86_64 
Model: Manual build Rev:xxx 
Mainboard: X99-PRO/USB 3.1 Rev 1.xx (ASUSTeK COMPUTER INC.) 
Bios: 2017-08-10 AMI Ver:3801 
Kernel: 5.0.0-25-generic 
Uptime: 3 days, 2 hours 
Packages: 2485 (dpkg), 2 (snap) 
Shell: zsh 5.5.1 
Resolution: 1680x1050 @ 59.88Hz 
DE: KDE 
WM: KWin 
Theme: Breeze Dark [KDE] 
Icons: breeze-dark [KDE] 
Terminal: xterm 
Font: [KDE] 
Locale: en_US.UTF-8 
Memory: 4050MiB / 32075MiB [-==============] 
CPU: i7-5820K (12) @ 4.0GHz [46.0°C] 
GPU: GeForce GTX 1080 Ti 
GPU: GeForce 210 
GPU Driver: NVIDIA 418.56 
CPU Usage: 5% 
Disk (/): 12G / 146G (9%) 
Disk (home): 50G / 63G (84%) 
Disk (efi): 7.7M / 511M (2%) 
Local IP: 192.168.0.2 

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
TriMooncommented, Aug 18, 2019

Using: ipfs-desktop-0.8.0-linux-x86_64.AppImage

  • ipfs-desktop: 0.8.0
  • go-ipfs: 0.4.21

ill try ipfs-desktop-0.9.0-beta.2-linux-x86_64.AppImage soon…

Edit 1

When i try to run ipfs-desktop-0.9.0-beta.2-linux-x86_64.AppImage, i get

2019-08-18T11:17:19.058Z info: [meta] logs can be found on /home/<username>/.config/IPFS Desktop
Checking for update
Update for version 0.9.0-beta.2 is not available (latest version: 0.9.0-beta.2, downgrade is disallowed).
2019-08-18T11:17:24.891Z info: [web ui] window ready
2019-08-18T11:17:24.892Z info: [tray] starting
2019-08-18T11:17:24.933Z info: [tray] started
2019-08-18T11:17:24.934Z info: [ipfsd] starting daemon
2019-08-18T11:17:24.942Z error: EROFS: read-only file system, open '/tmp/.mount_ipfs-dPIu6Mc/resources/app.asar.unpacked/out/ipfs-on-path/scripts/IPFS_PATH'

I will try to remove left-overs and try again.

  • rm -f ~/.local/share/{applications,icons/**}/*ipfs*
  • rm -fR ~/.config/IPFS\ Desktop
  • Now i get:
2019-08-18T11:30:30.258Z info: [meta] logs can be found on /home/<username>/.config/IPFS Desktop
Checking for update
Generated new staging user ID: 4bedb25a-95b2-5aa6-ae3b-495659273a16
Update for version 0.9.0-beta.2 is not available (latest version: 0.9.0-beta.2, downgrade is disallowed).
2019-08-18T11:30:38.370Z info: [web ui] window ready
2019-08-18T11:30:38.371Z info: [tray] starting
2019-08-18T11:30:38.411Z info: [tray] started
2019-08-18T11:30:38.412Z info: [ipfsd] starting daemon
2019-08-18T11:30:38.738Z info: [daemon] cleanup: started
2019-08-18T11:30:38.739Z info: [daemon] cleanup: ipfs repo fsck /home/<username>/.ipfs
2019-08-18T11:30:39.010Z info: [daemon] cleanup: completed
2019-08-18T11:30:40.206Z error: [ipfsd] EROFS: read-only file system, open '/tmp/.mount_ipfs-d47STwc/resources/app.asar.unpacked/out/ipfs-on-path/scripts/IPFS_PATH'
2019-08-18T11:30:40.236Z info: [downloadHashShortcut] shortcut disabled
2019-08-18T11:30:40.236Z info: [screenshotShortcut] shortcut disabled
2019-08-18T11:30:40.254Z info: [launch on startup] disabled
2019-08-18T11:30:40.408Z info: [ipfs on path] no-sudo: stderr: fs.js:126
    throw err;
    ^

Error: EACCES: permission denied, symlink '/tmp/.mount_ipfs-d47STwc/resources/app.asar.unpacked/out/ipfs-on-path/scripts/ipfs.sh' -> '/usr/local/bin/ipfs'
    at Object.symlinkSync (fs.js:935:3)
    at Object.createSymlinkSync (/tmp/.mount_ipfs-d47STwc/resources/app.asar/node_modules/fs-extra/lib/ensure/symlink.js:55:25)
    at Object.<anonymous> (/tmp/.mount_ipfs-d47STwc/resources/app.asar/out/ipfs-on-path/scripts/install.js:61:4)
    at Module._compile (internal/modules/cjs/loader.js:786:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:798:10)
    at Module.load (internal/modules/cjs/loader.js:645:32)
    at Function.Module._load (internal/modules/cjs/loader.js:560:12)
    at Function.Module.runMain (internal/modules/cjs/loader.js:850:10)
    at internal/main/run_main_module.js:17:11 {
  errno: -13,
  syscall: 'symlink',
  code: 'EACCES',
  path: '/tmp/.mount_ipfs-d47STwc/resources/app.asar.unpacked/out/ipfs-on-path/scripts/ipfs.sh',
  dest: '/usr/local/bin/ipfs'
}
^C
cat ~/.config/IPFS\ Desktop/error.log 

2019-08-18T11:30:40.206Z error: [ipfsd] EROFS: read-only file system, open '/tmp/.mount_ipfs-d47STwc/resources/app.asar.unpacked/out/ipfs-on-path/scripts/IPFS_PATH'

Edit 2

I forgot to do

  • `rm -fR ~/.ipfs But results stay same…

Seems #727 needs more work… Ping #951 to notice this log…

0reactions
hacdiascommented, Nov 27, 2019

Since I’ve got no reply, I will close this. Feel free to open a new issue or reopen this one!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Install Kubo on the command line - IPFS Docs
Install Kubo on the command line. This guide describes the available installation processes for IPFS Kubo, a Go-based implementation of the InterPlanetary ...
Read more >
Command-line quick start | IPFS Docs
Quick-start guide for installing and getting started with Kubo IPFS from the command line.
Read more >
IPFS CLI Setup | Documentation - Media Network
In the following guide, we will cover all the necessary steps to set up an IPFS node, enable a local HTTP gateway, add...
Read more >
Unable to Install Go-Ipfs from source - Stack Overflow
I tried Adding this plugins in to preload.go file under src\github.com\ipfs\go-ipfs\plugin\loader directory. exisiting code on preload.go.
Read more >
InterPlanetary File System - ArchWiki - Arch Linux
This starts your node, available via the ipfs cli, or the web interface on ... Restart=on-failure [Install] WantedBy=default.target.
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