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

[BUG] - Cannot run project #290

Closed
qarmin opened this issue Sep 26, 2024 · 2 comments
Closed

[BUG] - Cannot run project #290

qarmin opened this issue Sep 26, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@qarmin
Copy link

qarmin commented Sep 26, 2024

Describe the bug

cargo run

run after installing all required packages and running prebuild.sh script
produces such errors

  2024-09-26T18:28:29.562338Z ERROR oku_fs::fs: iroh is not running, please start it
    at /home/rafal/.cargo/git/checkouts/oku-fs-c182e7f4272936a2/c5b9c0b/src/fs.rs:154 on main ThreadId(1)

  2024-09-26T18:28:30.137187Z  INFO oku_fs::fs: Default author ID is urihhwv3flpqejin … 
    at /home/rafal/.cargo/git/checkouts/oku-fs-c182e7f4272936a2/c5b9c0b/src/fs.rs:214 on main ThreadId(1)

  2024-09-26T18:28:30.146008Z TRACE oku_fs::fuse: init() called
    at /home/rafal/.cargo/git/checkouts/oku-fs-c182e7f4272936a2/c5b9c0b/src/fuse.rs:373 on ThreadId(22)

  2024-09-26T18:28:30.146799Z TRACE oku_fs::fuse: [access] path = "/", mask = 0o0004
    at /home/rafal/.cargo/git/checkouts/oku-fs-c182e7f4272936a2/c5b9c0b/src/fuse.rs:804 on ThreadId(22)

  2024-09-26T18:28:30.148850Z TRACE oku_fs::fuse: [access] permission: 0o0444
    at /home/rafal/.cargo/git/checkouts/oku-fs-c182e7f4272936a2/c5b9c0b/src/fuse.rs:811 on ThreadId(22)

  2024-09-26T18:28:30.148886Z TRACE oku_fs::fuse: [access] mask applied: 0o0444
    at /home/rafal/.cargo/git/checkouts/oku-fs-c182e7f4272936a2/c5b9c0b/src/fuse.rs:812 on ThreadId(22)

  2024-09-26T18:28:30.149024Z DEBUG oku_fs::fuse: [getattr] path = "/.Trash", fh = None
    at /home/rafal/.cargo/git/checkouts/oku-fs-c182e7f4272936a2/c5b9c0b/src/fuse.rs:385 on ThreadId(22)

  2024-09-26T18:28:30.149156Z ERROR oku_fs::fuse: [getattr]: No replica with ID ".Trash" found locally.
    at /home/rafal/.cargo/git/checkouts/oku-fs-c182e7f4272936a2/c5b9c0b/src/fuse.rs:393 on ThreadId(22)

  2024-09-26T18:28:30.149277Z DEBUG oku_fs::fuse: [getattr] path = "/.Trash-1000", fh = None
    at /home/rafal/.cargo/git/checkouts/oku-fs-c182e7f4272936a2/c5b9c0b/src/fuse.rs:385 on ThreadId(22)

  2024-09-26T18:28:30.149340Z ERROR oku_fs::fuse: [getattr]: No replica with ID ".Trash-1000" found locally.
    at /home/rafal/.cargo/git/checkouts/oku-fs-c182e7f4272936a2/c5b9c0b/src/fuse.rs:393 on ThreadId(22)

  2024-09-26T18:28:30.565352Z ERROR oku::config: No such file or directory (os error 2)
    at src/config.rs:86 on main ThreadId(1)

bwrap: setting up uid map: Permission denied

** (oku:453016): ERROR **: 20:28:30.635: Failed to fully launch dbus-proxy: Child process exited with code 1
Trace/breakpoint trap (core dumped)

Desktop (please complete the following information):

  • OS: [e.g. Arch Linux] - Ubuntu
  • Version [e.g. 22] - 22.04
@qarmin qarmin added the bug Something isn't working label Sep 26, 2024
@emmyoh emmyoh self-assigned this Sep 27, 2024
@emmyoh
Copy link
Member

emmyoh commented Sep 27, 2024

While I cannot confirm with certainty as I do not use Ubuntu, it appears this is an issue with Ubuntu itself. The workaround, it seems, is to place the following inside of /etc/apparmor.d/bwrap:

abi <abi/4.0>,
include <tunables/global>

profile bwrap /usr/bin/bwrap flags=(unconfined) {
  userns,

  # Site-specific additions and overrides. See local/README for details.
  include if exists <local/bwrap>
}

Then, it's suggested you run systemctl reload apparmor.

Hopefully this helps! Let me know if it works so I can close this issue.

@qarmin
Copy link
Author

qarmin commented Sep 29, 2024

Yup, it fixed issue.
This probably should go to docs

@emmyoh emmyoh closed this as completed Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants