Hi folks,

just downtracked some quite misunderstandable error-output and perhaps my 
inability to read between the lines and see the obvious:

Scenario used:
=========
A monotone database was stored in a separate directory. ViewMTN was installed 
and was run one time successfully. After several days of real (meaning 
buck-making) work I jumped back into this monotone traffic and ViewMTN 
complains about:

-----------------------------------------------------------------------------
Branches

An error has occurred: 

Unable to list branches: monotone: fatal: std::exception: 
boost::filesystem::is_directory: "/data/mono/Siemens.db": Permission denied 
monotone: this is almost certainly a bug in monotone. monotone: please send 
this error message, the output of 'monotone --full-version', monotone: and a 
description of what you were doing to [EMAIL PROTECTED] monotone: 
discarding debug log (maybe you want --debug or --dump?)
-----------------------------------------------------------------------------


Analyzing:
======

I do not have seen the obvious and scrutinized through the stuff, using strace 
and got:

-----------------------------------------------------------------------------
[EMAIL PROTECTED]:~# monotone --full-version
monotone 0.21 (base revision: e65bc11b6670a0b2ed8e72214cb81d94e6a9a2d1)
Running on: Linux 2.6.12-kanotix-1-wo-initrd #1 Thu Aug 25 11:11:09 CEST 2005 
i686
Changes since base revision:

new_manifest [4dc584ff115bc0e54e51697ec048e2806499ae12]

old_revision [e65bc11b6670a0b2ed8e72214cb81d94e6a9a2d1]
old_manifest [4dc584ff115bc0e54e51697ec048e2806499ae12]

[EMAIL PROTECTED]:~# cd /data/
[EMAIL PROTECTED]:/data# ll
insgesamt 5
drwxrwx---   3 georg users  136 2005-08-30 15:47 mono
[EMAIL PROTECTED]:/data# su www-data
sh-3.00$ /usr/bin/monotone --db=/data/mono/Tempus.db list branches
monotone: fatal: std::exception: boost::filesystem::is_directory: 
"/data/mono/Tempus.db": Keine Berechtigung               <===(no permission)
monotone: this is almost certainly a bug in monotone.
monotone: please send this error message, the output of 'monotone 
--full-version',
monotone: and a description of what you were doing to 
[EMAIL PROTECTED]
monotone: discarding debug log (maybe you want --debug or --dump?)
sh-3.00$ exit
exit
[EMAIL PROTECTED]:/data# chmod 775 mono
[EMAIL PROTECTED]:/data# ll
drwxrwxr-x   3 georg users  136 2005-08-30 15:47 mono
[EMAIL PROTECTED]:/data# su www-data
sh-3.00$ /usr/bin/monotone --db=/data/mono/Tempus.db list branches
de.keyengineering.tempus
sh-3.00$ exit
-----------------------------------------------------------------------------

The error-output of ViewMTN shown above was somehow scrambled in one line and 
the obvious was not seen by myself. Somebody, probably me, has changed the 
permissions of the directory with the monotone-database to 770 and therefore 
the 'www-data' user (ViewMTN with apache2) does not gain access to the file.

Might it be possible to output the access of monotone to the database, 
returning an EACCESS-errno-value, without the (in this case) 
misunderstandable general self-accusation of monotone?

Ciao, Georg

-- 
Georg Lohrer
GnuPGP-Key available on WebSite http://www.croxx.de

Attachment: pgp1EjO8azjdI.pgp
Description: PGP signature

_______________________________________________
Monotone-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/monotone-devel

Reply via email to