Ticket #596 (new defect)
Pion fails to start if current-dir is not readable by pion user
| Reported by: | tpalmieri | Owned by: | vshcherbakov |
|---|---|---|---|
| Priority: | minor | Milestone: | Pion 3.1 |
| Component: | Unknown | Version: | |
| Keywords: | Cc: |
Description
If the current working directory is not accessible by whatever user Pion runs as, then it will fail to start. The error will show in the pion log as something like this:
2009-06-01 17:16:38,543 FATAL [0x2b655bb033b0] (main.cpp:110) pion - boost::filesystem::is_regular: Permission denied: "LogCodec"
This is happening when plugins are being loaded (or trying to be loaded).
Debugging so far: boost::filesystem::is_regular() calls boost::filesystem::detail::status_api(), which "hides" ENOENT system errors (i.e. it thinks they are OK), but does not hide EACCESS errors. So...if the file-check fails due to EACCESS, is_regular throws an exception...which is unhandled in PionPlugin::checkForFile().
Workaround: Ensure that Pion is started with a current working dir that the Pion user can access (e.g. /etc/pion).
