[issue2857] Push from Windows machine to Linux NAS: Access denied

Christian Specht bugs at mercurial.selenic.com
Fri Jun 17 15:43:07 CDT 2011


New submission from Christian Specht <christianspecht1 at gmail.com>:

I'm keeping my HG repositories on a NAS drive (QNAP TS-110, if that matters).
The drive is running on some kind of embedded Linux, and both my computers are Windows machines (Win XP Professional and Win 7 Home Premium).

Committing locally on my Windows machines works perfectly, but when I try to push to my "main" repositories on the NAS drive, I get a strange error most 
of the time (no matter if I do it from the XP or the Win7 machine). Sometimes (but not often) it works.

Here is an example:

First, I create a repository on the NAS drive (drive Z:) and a local one, commit a file to the local one, and try to push to the remote one:

md z:\hg\remote
hg init z:\hg\remote
md c:\local
cd c:\local
hg init
echo foo >foo.txt
hg commit -A -m "first commit"
hg push z:\hg\remote

The push command outputs the following:

pushing to z:\hg\remote
searching for changes
adding changesets
adding manifests
adding file changes
added 1 changesets with 1 changes to 1 files
abort: z:\hg\remote\.hg\store\.fncache-9kpz7y: Zugriff verweigert

("Zugriff verweigert" is German and means "Access denied" or "Permission denied")

After that, I check the remote repository:

z:
cd hg\remote
hg log 
hg verify


hg log outputs this:

changeset:   0:fabcccc99fad
tag:         tip
user:        Christian Specht
date:        Fri Jun 17 21:56:06 2011 +0200
summary:     first commit

.. and hg verify outputs this:

checking changesets
checking manifests
crosschecking files in changesets and manifests
checking files
1 files, 1 changesets, 1 total revisions
 data\foo.txt.i at 0: missing revlog!
1 integrity errors encountered!
(first damaged changeset appears to be 0)


So the changeset was pushed to the remote repository, but it's somehow damaged.
But it doesn't seem to be THAT damaged, because I'm able to clone the remote repository after that.

I'm using Mercurial 1.8.4 at the moment (with TortoiseHG 2.0.5, but there is no difference whether I try pushing from TortoiseHG or the command line).
But the problem is not specific to version 1.8.4, because I'm having this problem for a few weeks now (unfortunately I don't exactly remember when it 
started, probably somewhere around 1.8, but I'm not sure anymore).

Plus, it seems to be a Windows <--> Linux issue, because it only happens when I push to the NAS.
I can push to other repos on the local machine without problems, as well as to the other Windows machine over the network.
At my workplace, we are pushing to a network share on a Windows server as well and never had any problems.

And it can't be a permission issue, because my Windows user has full write access to the NAS. I can copy files to the same folder without problems 
(that's what I'm doing at the moment when pushing doesn't work: I always copy the whole .hg folder manually from the local machine to the NAS).

----------
messages: 16545
nosy: christianspecht
priority: bug
status: unread
title: Push from Windows machine to Linux NAS: Access denied

____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue2857>
____________________________________________________


More information about the Mercurial-devel mailing list