I am going to go out on a limb and say that your problem does not involve permissions at all and is due to the issue that I mentioned at
Re (tilly) 3: BerkleyDB versions 2.x , 3.x, which is that the underlying Berkeley DB libraries cannot be accessed simultaneously from multiple machines due to limitations in how shared memory is implemented.
Furthermore I am going to guess that this error comes from inside the C library, and is not (usefully at least) trapped by DB_File, which is why $! is not populated.
Using locks so that people don't really access this simultaneously is likely to help. (I cannot guarantee that though.) Another solution for read-only access is to have people operate off of local copies of the index files.
And an incidental note for the casual reader. The underlying shared memory issue is one of the reasons why at Re (tilly) 2: Synchronizing variables (in mod_perl) across Apache instances? I said I prefer avoiding introducing shared memory when it is not yet needed. Berkeley DB has little choice, among other things they implement their locking subsystem between processes in a shared memory segment. However if you are building something that will ever potentially be shared across machines, avoid it up front.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.