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

Running Ocsigen_server.start without specifying command_pipe logs a Unix.Unix_error(Unix.ENOENT #246

Open
shonfeder opened this issue Sep 21, 2024 · 1 comment

Comments

@shonfeder
Copy link

shonfeder commented Sep 21, 2024

Hi! I'm migrating a project to version 6. So var most things are working great :) Thanks!

Given the following minimal program in main.ml

let () =
  let port = 3000 in
  Ocsigen_server.start
    ~ports:([`All, port])
    ~debugmode:true ~veryverbose:()
    [ Ocsigen_server.host ~port
        []
    ]

on startup via dune exec main I see

main.exe: ocsigen:main: Cannot create the command pipe $HOME/scratch/_opam/lib/ocsigenserver/var/run/ocsigenserver_command. I will continue without.: Unix.Unix_error(Unix.ENOENT, "mkfifo", "$HOME/scratch/_opam/lib/ocsigenserver/var/run/ocsigenserver_command")

When I instead specify a file path (e.g., in /tmp), it is created as expected.

I'm not sure what the intended behavior is here, and whether it should just not try to create a fd for the command pipe if none is specified, or if it should rather create one in a different location (or create this one different). But logging a unix error doesn't seem like the right behavior.

@balat
Copy link
Member

balat commented Sep 28, 2024

I suppose that the directory $HOME/scratch/_opam/lib/ocsigenserver/var/run/ is missing? Or the $HOME variable is not expanded?

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