darcs

Issue 1738 getDirectoryContents: failed (Unknown error 530)

Title getDirectoryContents: failed (Unknown error 530)
Priority bug Status given-up
Milestone Resolved in
Superseder Nosy List darcs-devel, dmitry.kurochkin, gh, kowey
Assigned To gh
Topics SSH

Created on 2010-02-08.09:47:01 by gh, last changed 2017-07-30.23:57:23 by gh.

Files
File name Uploaded Type Edit Remove
darcs_check_fail gh, 2010-02-08.11:58:31 application/octet-stream
darcs_push_apply_fail gh, 2010-02-08.11:53:52 application/octet-stream
Messages
msg9969 (view) Author: gh Date: 2010-02-08.09:46:59
I'm on a server machine (workplace), Linux with kernel 2.6.18-8.el5 #1
SMP Fri Jan 26 14:15:14 EST 2007 x86_64 x86_64 x86_64 GNU/Linux.

When I type "id" on this machine, my user has:

context=user_u:system_r:unconfined_t

Now, darcs works, locally, and by pushing by ssh also, but when I push
by ssh, it ends by displaying:

darcs: /path/to/the/repository: getDirectoryContents: failed (Unknown
error 530)

And then display "apply failed!" But it works! When I do another "darcs
push" by ssh, it says that there are no patches to push (which is true)
and does not display the getDirectoryContents error. A local "darcs
check" systematically prints the following message:

darcs: _darcs/pristine.hashed/: getDirectoryContents: failed (Unknown
error 530)

The same repository works correctly on my local machine, in fact my
$HOME is mounted by nfs on this work server and on my work desktop computer.
msg9970 (view) Author: gh Date: 2010-02-08.09:51:53
The darcs versions I used were the static 2.3.1 and 2.2 from the
http://wiki.darcs.net/Binaries page
msg9971 (view) Author: kowey Date: 2010-02-08.10:07:50
Hmm, maybe --debug would be helpful here.  I think you may even be able
to set the remote repo to use --debug in darcs apply by editing
_darcs/prefs/defaults (as a second stage after trying push --debug)
msg9972 (view) Author: gh Date: 2010-02-08.11:53:52
Attached is a log of "darcs push --debug"
Attachments
msg9973 (view) Author: gh Date: 2010-02-08.11:58:31
Attached is a log of darcs check --debug
Attachments
msg9995 (view) Author: gh Date: 2010-02-10.10:25:39
This "unknown error 530" seems to be related to selinux, see for
instance http://forum.openvz.org/index.php?t=msg&goto=29983
msg10462 (view) Author: kowey Date: 2010-03-23.17:45:45
Guillaume, could I confirm that local darcs apply on that machine works?

What happens when you do the darcs apply remotely (ssh foo.com 'darcs
apply foo.dpatch')?

It may also be a good idea to try and reproduce this with Darcs 2.4 for
good measure.
msg11029 (view) Author: gh Date: 2010-05-09.10:12:01
This is still happening witrh static HEAD with last 3 patches being: 
Sat May  8 12:14:36 CEST 2010  Petr Rockai <me@mornfall.net>
  * Fix a number of "unused" warnings in Darcs.Commands.*.

Sat May  8 11:44:42 CEST 2010  Petr Rockai <me@mornfall.net>
  * Fix a number of "unused" warnings in Darcs.Repository*.

Sat May  8 11:19:15 CEST 2010  Petr Rockai <me@mornfall.net>
  * A new implementation of PatchSet and its operations.
History
Date User Action Args
2010-02-08 09:47:01ghcreate
2010-02-08 09:51:55ghsetmessages: + msg9970
2010-02-08 10:07:55koweysetnosy: + kowey
messages: + msg9971
2010-02-08 11:53:54ghsetfiles: + darcs_push_apply_fail
messages: + msg9972
2010-02-08 11:58:33ghsetfiles: + darcs_check_fail
messages: + msg9973
2010-02-10 10:25:41ghsetmessages: + msg9995
2010-03-23 16:18:55koweysettopic: + SSH
2010-03-23 17:45:49koweysetstatus: unknown -> waiting-for
assignedto: gh
messages: + msg10462
2010-05-09 10:12:03ghsetmessages: + msg11029
2017-07-30 23:57:23ghsetstatus: waiting-for -> given-up