drolbr
(Drolbr)
2
When I execute the following command:
./dispatcher --osm-base --db-dir=$DB_DIR
it immediately throws the following error:
File_Error Invalid argument 22 $DB_DIR//osm3s_osm_base Unix_Socket::5
Thank you for posting the error and the precise error message.
There is only a single location in the code that trigger “Unix_Socket::5”:
if (chmod(socket_name.c_str(), S_666) == -1)
throw File_Error(errno, socket_name, "Unix_Socket::5");
Here, S_666 is defined as S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH.
These are standard flags in POSIX compliant systems, and POSIX
requires chmod(2) to fail on any flavor of permission problem before it looks at EINVAL.
In other words: something is extremely unlikely to be POSIX compliant here. I’m very happy if someone has an idea what is actually going on there on the operating system side.
To get the issue forward, can you please:
- do an
ls -l on the socket file and figure out what owner and file permissions are set
- try to change the file manually with
su overpass role by chmod 666 $SOCKET and report whether it returns an error and whether it has any effect on the file permissions