Ticket #596 (new defect)

Opened 10 months ago

Last modified 7 weeks ago

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).

Change History

Changed 9 months ago by mdickey

  • owner set to vshcherbakov

Changed 8 months ago by mdickey

  • milestone changed from Pion 2.1 to Pion 2.2

Changed 5 months ago by mdickey

  • milestone changed from Pion 2.2 to New Tickets

Changed 5 months ago by mdickey

  • priority changed from major to minor
  • milestone changed from New Tickets to Pion 2.3

Changed 5 months ago by mdickey

  • component changed from Common Library to Unknown

Changed 2 months ago by mdickey

  • milestone changed from Pion 2.3 to Pion 3.0

Changed 7 weeks ago by totala

  • milestone changed from Pion 3.0 to Pion 3.1
Note: See TracTickets for help on using tickets.