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

Does not work on NFS shares #34

Closed
DavidGhiro opened this issue Dec 12, 2020 · 4 comments
Closed

Does not work on NFS shares #34

DavidGhiro opened this issue Dec 12, 2020 · 4 comments

Comments

@DavidGhiro
Copy link

The program panicked because extended attributes are not supported in NFS.

flexo         | thread 'main' panicked at 'Unable to get extended file attributes: Os { code: 95, kind: Other, message: "Operation not supported" }', src/mirror_flexo.rs:278:74
flexo         | stack backtrace:
flexo         |    0:     0x5595f50a75a0 - std::backtrace_rs::backtrace::libunwind::trace::h72c2fb8038f1bbee
flexo         |                                at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/std/src/../../backtrace/src/backtrace/libunwind.rs:96
flexo         |    1:     0x5595f50a75a0 - std::backtrace_rs::backtrace::trace_unsynchronized::h1e3b084883f1e78c
flexo         |                                at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/std/src/../../backtrace/src/backtrace/mod.rs:66
flexo         |    2:     0x5595f50a75a0 - std::sys_common::backtrace::_print_fmt::h3bf6a7ebf7f0394a
flexo         |                                at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/std/src/sys_common/backtrace.rs:79
flexo         |    3:     0x5595f50a75a0 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h2e8cb764b7fe02e7
flexo         |                                at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/std/src/sys_common/backtrace.rs:58
flexo         |    4:     0x5595f50c88fc - core::fmt::write::h7a1184eaee6a8644
flexo         |                                at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/core/src/fmt/mod.rs:1080
flexo         |    5:     0x5595f50a4ac2 - std::io::Write::write_fmt::haeeb374d93a67eac
flexo         |                                at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/std/src/io/mod.rs:1516
flexo         |    6:     0x5595f50a9bcd - std::sys_common::backtrace::_print::h1d14a7f6ad632dc8
flexo         |                                at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/std/src/sys_common/backtrace.rs:61
flexo         |    7:     0x5595f50a9bcd - std::sys_common::backtrace::print::h301abac8bb2e3e81
flexo         |                                at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/std/src/sys_common/backtrace.rs:48
flexo         |    8:     0x5595f50a9bcd - std::panicking::default_hook::{{closure}}::hde0cb80358a6920a
flexo         |                                at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/std/src/panicking.rs:208
flexo         |    9:     0x5595f50a9878 - std::panicking::default_hook::h9b1a691049a0ec8f
flexo         |                                at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/std/src/panicking.rs:227
flexo         |   10:     0x5595f4fcd0fe - flexo::main::{{closure}}::hf1ec2d7f2094680e
flexo         |   11:     0x5595f50aa2d6 - std::panicking::rust_panic_with_hook::h2bdec87b60580584
flexo         |                                at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/std/src/panicking.rs:581
flexo         |   12:     0x5595f50a9e59 - std::panicking::begin_panic_handler::{{closure}}::h101ca09d9df5db47
flexo         |                                at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/std/src/panicking.rs:484
flexo         |   13:     0x5595f50a7a0c - std::sys_common::backtrace::__rust_end_short_backtrace::h3bb85654c20113ca
flexo         |                                at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/std/src/sys_common/backtrace.rs:153
flexo         |   14:     0x5595f50a9e19 - rust_begin_unwind
flexo         |                                at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/std/src/panicking.rs:483
flexo         |   15:     0x5595f50c71d1 - core::panicking::panic_fmt::h48c31e1e3d550146
flexo         |                                at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/core/src/panicking.rs:85
flexo         |   16:     0x5595f50c6ff3 - core::option::expect_none_failed::h6154dc750ae47ade
flexo         |                                at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/core/src/option.rs:1234
flexo         |   17:     0x5595f4fbdc11 - <flexo::mirror_flexo::DownloadJob as flexo::Job>::initialize_cache::h7f5198327861392b
flexo         |   18:     0x5595f4fd50c5 - flexo::JobContext<J>::new::hf13dfcde9c39ef77
flexo         |   19:     0x5595f4fcba4e - flexo::main::h3d7a33cdeb0ccf9f
flexo         |   20:     0x5595f4fb0b33 - std::sys_common::backtrace::__rust_begin_short_backtrace::h682322d6f8de7a0b
flexo         |   21:     0x5595f4fb0c19 - std::rt::lang_start::{{closure}}::h30e8d153ece79ab7
flexo         |   22:     0x5595f50aa7c7 - core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &F>::call_once::he179d32a5d10d957
flexo         |                                at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/core/src/ops/function.rs:259
flexo         |   23:     0x5595f50aa7c7 - std::panicking::try::do_call::hcb3d5e7be089b2b4
flexo         |                                at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/std/src/panicking.rs:381
flexo         |   24:     0x5595f50aa7c7 - std::panicking::try::h7ac93b0cd56fb701
flexo         |                                at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/std/src/panicking.rs:345
flexo         |   25:     0x5595f50aa7c7 - std::panic::catch_unwind::h7b40e396c93a4fcd
flexo         |                                at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/std/src/panic.rs:382
flexo         |   26:     0x5595f50aa7c7 - std::rt::lang_start_internal::h142b9cc66267fea1
flexo         |                                at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/std/src/rt.rs:51
flexo         |   27:     0x5595f4fd0c22 - main
flexo         |   28:     0x7ff3d957509b - __libc_start_main
flexo         |   29:     0x5595f4f7210a - _start
flexo         |   30:                0x0 - <unknown>
@nroi
Copy link
Owner

nroi commented Dec 13, 2020

That's currently a limitation of Flexo, it requires a file system that supports extended attributes.

Can you describe your use case, i.e., why are you using Flexo with NFS? Why not just install Flexo on the server that is hosting the NFS instead?

I might reconsider the extended attributes requirement, but there are other trade offs involved, so I just need to understand what benefits people expect from running Flexo on a network filesystem.

@DavidGhiro
Copy link
Author

I use Flexo on Docker servers that have the storage connected via NFS so that you can quickly move to another Docker host.

Then I will still wait the support for extended attributes should be available soon. Linux Kernel 5.9 can do that now only TrueNAS is missing.

@nroi
Copy link
Owner

nroi commented Feb 20, 2021

If this is going to be supported in the future (or maybe it is already supported), then no changes are required for Flexo, so I'm closing this for now.

@nroi
Copy link
Owner

nroi commented Aug 7, 2021

For the record: Flexo does not use extended attributes anymore, so it should work fine with NFS or other file systems.

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