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

Unable to add IPFS command line tools #1039

Closed
TriMoon opened this issue Aug 18, 2019 · 5 comments
Closed

Unable to add IPFS command line tools #1039

TriMoon opened this issue Aug 18, 2019 · 5 comments

Comments

@TriMoon
Copy link

TriMoon commented Aug 18, 2019

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 �[37m[-==============�[37m] 
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 
@hacdias
Copy link
Member

hacdias commented Aug 18, 2019

@TriMoon hello! Sorry for that! Could you let me know which version of IPFS Desktop you're using? Please try the newest beta version: https://github.com/ipfs-shipyard/ipfs-desktop/releases/tag/v0.9.0-beta.2

@TriMoon
Copy link
Author

TriMoon commented 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...

@hacdias
Copy link
Member

hacdias commented Aug 29, 2019

Okay, I now see you're using Ubuntu. Can I ask you something? Try using the .deb package and not .AppImage to see if it works.

@hacdias
Copy link
Member

hacdias commented Sep 27, 2019

Could you please try with the latest release?

@hacdias
Copy link
Member

hacdias commented Nov 27, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants