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

Socket path too big in iOS #118

Open
guillemcordoba opened this issue Nov 30, 2023 · 1 comment
Open

Socket path too big in iOS #118

guillemcordoba opened this issue Nov 30, 2023 · 1 comment

Comments

@guillemcordoba
Copy link

iOS gives each app a specific storage location, with a very long path from the root, more than 100 characters long when taking all the folder into account. This causes a socket path too long error when the lair keystore server is run.

I've been able to work around this issue by changing where the socket file gets created so that it lives on a temporary directory:

Instead of this line:

                let mut con_path = if cfg!(target_os="ios") { // Work around the "socked path is too long" limit
                    std::env::temp_dir()
                } else {
                    dunce::canonicalize(root_path)?
                };
                con_path.push("socket");

Not sure this should be the way to do things (I could open a PR for this).

@matthme
Copy link

matthme commented Dec 1, 2023

FYI in launcher and kangaroo this is "fixed" downstream by creating a symlink in the temp directory that points to the actual path: holochain-apps/holochain-kangaroo@0505e9c

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