[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Monotone-devel] monotone and viewmtn: misunderstanding error output
From: |
Georg Lohrer |
Subject: |
[Monotone-devel] monotone and viewmtn: misunderstanding error output |
Date: |
Sun, 4 Sep 2005 11:25:50 +0200 |
User-agent: |
KMail/1.8.1 |
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 address@hidden 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:
-----------------------------------------------------------------------------
address@hidden:~# 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]
address@hidden:~# cd /data/
address@hidden:/data# ll
insgesamt 5
drwxrwx--- 3 georg users 136 2005-08-30 15:47 mono
address@hidden:/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
address@hidden
monotone: discarding debug log (maybe you want --debug or --dump?)
sh-3.00$ exit
exit
address@hidden:/data# chmod 775 mono
address@hidden:/data# ll
drwxrwxr-x 3 georg users 136 2005-08-30 15:47 mono
address@hidden:/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
pgpsElra30kuB.pgp
Description: PGP signature
- [Monotone-devel] monotone and viewmtn: misunderstanding error output,
Georg Lohrer <=