You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Markus Fischer <ma...@fischer.name> on 2005/03/09 13:48:58 UTC

TortoiseSVN Error "Can't open '//.../tempfile.tmp': Permission Denied"

Hi,

I've set up freshly Apache2/mod_svn and everything worked until I 
started checking in the source tree.

I use TortoiseSVN on a samba share to import the files. I know that it's 
very likely that the root of this problem isn't svn itself, but I hope 
someone has seen such an error in the past and can help me.

When I import the files from the samba share to my http://.../svn 
repository, the first three entries from a thousands files appear in the 
SVN Import window:

Adding \\entwicklung\www\wtf\projectname
Adding \\entwicklung\www\wtf\projectname\http
Adding \\entwicklung\www\wtf\projectname\http\Copy of index_2.php

and the stops with this error Message:

Can't open '//entwicklung/www/wtf2/tempfile.tmp': Permission Denied

I've checked all permissions in the world I could, they're ok.

I tried a smaller project located at \\entwicklung\www\wtf3\ with _only_ 
the 'projectname' directory and it did work.

I dug into sambas logging directives to find some thints and found this.

This is the debug log of the non-working version:

[...]
[2005/03/09 11:34:23, 3] smbd/dosmode.c:unix_mode(111)
   unix_mode(wtf/tempfile.tmp) returning 0666
[2005/03/09 11:34:23, 5] smbd/files.c:file_new(122)
   allocated file structure 7364, fnum = 11460 (1 used)
[2005/03/09 11:34:23, 4] smbd/open.c:open_file_shared1(1244)
   calling open_file with flags=0x2 flags2=0xC0 mode=0666
[2005/03/09 11:34:23, 3] smbd/open.c:open_file(178)
   Error opening file wtf/tempfile.tmp (Permission denied) 
(local_flags=194) (flags=194)
[...]


This is the debug log of the working version:

[...]
[2005/03/09 11:37:30, 3] smbd/dosmode.c:unix_mode(111)
   unix_mode(wtf3/tempfile.tmp) returning 0666
[2005/03/09 11:37:30, 5] smbd/files.c:file_new(122)
   allocated file structure 7559, fnum = 11655 (2 used)
[2005/03/09 11:37:30, 4] smbd/open.c:open_file_shared1(1244)
   calling open_file with flags=0x2 flags2=0xC0 mode=0666
[2005/03/09 11:37:30, 2] smbd/open.c:open_file(245)
   mfischer opened file wtf3/tempfile.tmp read=Yes write=Yes (numopen=2)
[2005/03/09 11:37:30, 5] smbd/oplock.c:set_file_oplock(218)
   set_file_oplock: granted oplock on file wtf3/tempfile.tmp, dev = 802, 
inode = 424418, file_id = 163, tv_sec = 422edffa, tv_usec = 3922f

Unfortunately not much indication as to _why_ there's a permission denied.

When I make a full copy of the folder 'wtf' to e.g. 'wtf2' it the same 
again.

Maybe someone has any ideas?

thanks,
- Markus

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: TortoiseSVN Error "Can't open '//.../tempfile.tmp': Permission Denied"

Posted by Markus Fischer <ma...@fischer.name>.
Markus Fischer wrote:
> Markus Fischer wrote:
>  > Unfortunately not much indication as to _why_ there's a permission 
> denied.
> 
> Needless to say, after hours of digging into the problem, searching with 
>  google and mailing lists and finally writing this email I found the 
> problem just minutes later. It was a simple permission problem, as 
> simple as the samba logs clearly told me (why should they lie).
> 
> It was a typical "can't see the wood because of the trees" problem.

Though still a month old, I was bit by the bug again. I should have 
mentioned how I solved is. The simple problem was, since the data is on 
the sambsa share, due to my special configuration I believe, group write 
permissions where needed (I just gave them everywhere).

- Markus

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: TortoiseSVN Error "Can't open '//.../tempfile.tmp': Permission Denied"

Posted by Markus Fischer <ma...@fischer.name>.
Markus Fischer wrote:
 > Unfortunately not much indication as to _why_ there's a permission 
denied.

Needless to say, after hours of digging into the problem, searching with 
  google and mailing lists and finally writing this email I found the 
problem just minutes later. It was a simple permission problem, as 
simple as the samba logs clearly told me (why should they lie).

It was a typical "can't see the wood because of the trees" problem.

sorry for the spam,

- Markus

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org