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

Cannot change data dir location from ~/.fn to somewhere outside of my home folder #671

Open
pfaion opened this issue Aug 7, 2023 · 5 comments

Comments

@pfaion
Copy link

pfaion commented Aug 7, 2023

Hi everyone,

I'm running into an issue when trying to start the fn server. I have manually installed fn by downloading the binary from the GitHub release page and placing it into a local folder that is on my PATH. This works fine:

❯ fn --version
fn version 0.6.26

However, I cannot start the fn server:

❯ fn start --log-level DEBUG
2023/08/07 08:35:20 ¡¡¡ 'fn start' should NOT be used for PRODUCTION !!! see https://github.com/fnproject/fn-helm/
docker: Error response from daemon: error while creating mount source path '/<redacted>/home/pfaion/.fn/iofs': mkdir /<redacted>/home/pfaion/.fn: permission denied.
2023/08/07 08:35:20 Error: processed finished with error exit status 126

I am working on a machine where my home directory is mounted via AFS with Kerberos authentication. I'm not entirely sure, but it might be that whatever happens when I use fn start doesn't have access to my home folder, since it doesn't use Kerberos. I would be fine using a different directory for the fn configuration, outside of my home folder. But I couldn't find an option to configure this.

Is this a known issue and/or do you have any suggestions for how to work around it?

@pfaion
Copy link
Author

pfaion commented Aug 7, 2023

There seem to be traces for such an option in the code, but I'm not sure if this is usable?

cli/commands/start.go

Lines 72 to 76 in 06e5e0d

if c.String("data-dir") != "" {
fnDir = c.String("data-dir")
} else {
fnDir = filepath.Join(home, ".fn")
}

I don't know go and I couldn't figure out how to use something like a --data-dir argument. It would always give me a usage error.

@pfaion
Copy link
Author

pfaion commented Aug 7, 2023

Looks like the cli argument was dropped in a re-organization commit, I assume by mistake?
f83f292#diff-63a7ad8e7bd042aa25c04ff627b2d29e0a8a949bb563e9467ae69e1b22d150b9L39-L42

@pfaion pfaion changed the title Docker: permission denied on ~/.fn Cannot change data dir location from ~/.fn to somewhere outside of my home folder Aug 8, 2023
@pfaion
Copy link
Author

pfaion commented Nov 13, 2023

Is nobody maintaining this repo? Pinging @carimura and @denismakogon as you seem to be the only active people associated with the https://github.com/fnproject project page (sorry for the noise in case you are not responsible for this repo). Is fnproject still actively maintained, or is it dead?

@pfaion
Copy link
Author

pfaion commented Nov 13, 2023

I'd create a PR myself, but even the contribution "workflow" is broken. The docs mention that I should sign a CLA, but the link is broken. See #672

@carimura
Copy link
Member

Hi we're no longer involved with the project, sorry!

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