[darcs-devel] [issue2668] createDirectory: permission denied (Permission denied)

Gian Piero Carrubba bugs at darcs.net
Wed Dec 2 11:28:06 UTC 2020


New submission from Gian Piero Carrubba <gpiero at rm-rf.it>:

I have my home dir versioned with darcs:

          Format: hashed, darcs-2
            Root: /home/gpiero
    PristineType: HashedPristine
           Cache: thisrepo:/home/gpiero, cache:/home/gpiero/.cache/darcs
      PatchIndex: enabled
  Default Remote: maometto.fdc.rm-rf.it:var/local/repos/homedir
     Num Patches: 75
       Weak Hash: e6084d42f16ae7188225fae534bd9be0fc679adf

Obviously, /home/gpiero is writable by my user, but /home isn't.

Since a while (a few months, I'd guess) I get the following error 
whenever I record a patch:

$ darcs record --debug --no-prehook --no-posthook -am foobar .
/home/gpiero-90d5dad8adb19515: createDirectory: permission denied 
(Permission denied)
Failed to record patch 'foobar'

(Full debug output attached).

$ darcs --version 
2.16.3 (+ 35 patches)

The 'permission denied' error also occurs when unrecording a patch.  
Despite the error (and the 'Failed' message in the recording case), the 
patch is correctly recorded/unrecorded, but darcs signals an error and 
the posthook commands are not run (in my case that is the real issue, as 
the posthook manages permissions and symlinks).

Thanks,
Gian Piero.

----------
files: darcs.debug
messages: 22530
nosy: gpiero
status: unknown
title: createDirectory: permission denied (Permission denied)

__________________________________
Darcs bug tracker <bugs at darcs.net>
<http://bugs.darcs.net/issue2668>
__________________________________
-------------- next part --------------
Beginning identifying repository .
Done identifying repository .
Identified darcs-2 repo: /home/gpiero
withNamedTemp: "_darcs/patches/pending.tentative"
withNamedTemp: "_darcs/tentative_pristine"
readDarcsHashedDir: _darcs/pristine.hashed ab8ff18d047bfc654d41b9ed7d20e428004772c9927407baa0d08b4546275439
readDarcsHashedDir: _darcs/pristine.hashed ab8ff18d047bfc654d41b9ed7d20e428004772c9927407baa0d08b4546275439
readDarcsHashedDir: _darcs/pristine.hashed e190e03359a85f690d4c8cc8990527a91be826c63bdd2f890aa759fc828f1f55
readDarcsHashedDir: _darcs/pristine.hashed 2c7bec42debc7f3eb1d47e085c4dbbb690d3f52b6435d2bb7fc73a17f1cf9be2
readDarcsHashedDir: _darcs/pristine.hashed 6bd0801c7081d74fc5d55883011e54bf6882671183d22cba29b7db7a1089b770
readDarcsHashedDir: _darcs/pristine.hashed 4d944da2a24dbd1fe687c934261b3e8403e5333589dde7fc22e20e7572b6695a
readDarcsHashedDir: _darcs/pristine.hashed ab8ff18d047bfc654d41b9ed7d20e428004772c9927407baa0d08b4546275439
readDarcsHashedDir: _darcs/pristine.hashed e190e03359a85f690d4c8cc8990527a91be826c63bdd2f890aa759fc828f1f55
readDarcsHashedDir: _darcs/pristine.hashed 2c7bec42debc7f3eb1d47e085c4dbbb690d3f52b6435d2bb7fc73a17f1cf9be2
readDarcsHashedDir: _darcs/pristine.hashed 6bd0801c7081d74fc5d55883011e54bf6882671183d22cba29b7db7a1089b770
readDarcsHashedDir: _darcs/pristine.hashed 4d944da2a24dbd1fe687c934261b3e8403e5333589dde7fc22e20e7572b6695a
readDarcsHashedDir: _darcs/pristine.hashed e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
readDarcsHashedDir: _darcs/pristine.hashed e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
readDarcsHashedDir: _darcs/pristine.hashed 2bd2248d9e5b866dce92b1c4ad57e8ea08e6b3c187072b146f0a14bfc411404c
readDarcsHashedDir: _darcs/pristine.hashed 2c013902261df739e73e8ccc471ac117c59f0f5cc800247a8cef717c5ec660c9
readDarcsHashedDir: _darcs/pristine.hashed 8f1afdf96c92885d0544f5f28397113f14102b6e051b07872fe1e2edd98cd69f
readDarcsHashedDir: _darcs/pristine.hashed e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
readDarcsHashedDir: _darcs/pristine.hashed e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
readDarcsHashedDir: _darcs/pristine.hashed e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
readDarcsHashedDir: _darcs/pristine.hashed 80da52b0e66278a1098f2de6e3e41bd51f4b939a92ba02b4d9264e92931534a1
readDarcsHashedDir: _darcs/pristine.hashed e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
readDarcsHashedDir: _darcs/pristine.hashed da3d2243d0387028152c81b8310c4ed4410f1a5982c5f0b6a6d4f423f77d0313
readDarcsHashedDir: _darcs/pristine.hashed 20fa78cccf236fe8c0497468f8b2ca03f97d230dc0d2c083583b2e42ae2c0b1f
readDarcsHashedDir: _darcs/pristine.hashed 5a22c29c88d39f3f76ec1a37679223a201d7cee59c1c2386566eb0dfad45c54d
readDarcsHashedDir: _darcs/pristine.hashed c5b182a447735cf400fdc85f7649e44b3034ad4f4fa17b54533a9e25c1bc0463
readDarcsHashedDir: _darcs/pristine.hashed a617c2b64bdcff921cf40fe3dca7bf9cc38688a0223f35f35de4b5f9dc3064f7
readDarcsHashedDir: _darcs/pristine.hashed ca8a41c6e1415c9860720f57f1491d6f5ab40c628ed43b4d5ace9264c5084cf5
readDarcsHashedDir: _darcs/pristine.hashed 9f4196920ac33b32acb9a4d121ed39868304b55e81a3fc64bc1893f0d510329e
readDarcsHashedDir: _darcs/pristine.hashed 461e8db8240ba9bb1dff08f16312f58cc7b57d3bbfec97c658dc2a3da6adfc76
readDarcsHashedDir: _darcs/pristine.hashed b8196ee08af1b5b3e9f38e81fa4fbf4702f441d930b31e281bd6f39471aa3e84
readDarcsHashedDir: _darcs/pristine.hashed 5f1fcb383782ececfc676453db8d42bee4fe0edd71dc008e6919f8b2e524c418
readDarcsHashedDir: _darcs/pristine.hashed 8410477fdaf763a7184bb324be4c6b6e2712aa207b64a25f83c182bb7343dd4d
readDarcsHashedDir: _darcs/pristine.hashed 2cc12c8c857600ff7b70b876d6fa64029c3eaf7e947724f042c5e9f1bfa143e2
readDarcsHashedDir: _darcs/pristine.hashed 13a6a2fe3699fb034f6689b458311bc07685439557f3afbb1db5512ce23cad41
readDarcsHashedDir: _darcs/pristine.hashed 537893617e4ba109141b72f4a0d77888179c725a37dcb47c795bbb39d56d9158
readDarcsHashedDir: _darcs/pristine.hashed 62eb9ed299d5ea68417c0b38eb4d232f203e3a8542388a67c43f41236dc00320
readDarcsHashedDir: _darcs/pristine.hashed 500ff8a6a00e6aacdb1240fbdc2176beb0a43269b8a07f611939f5a2d5abd2ba
readDarcsHashedDir: _darcs/pristine.hashed 8b2a4f6b1b6ca6a229e067f02ef15dc7451f637d9998bfa46793b8128a70db68
readDarcsHashedDir: _darcs/pristine.hashed ffb9594ce4dbbc6b96dc71833e28b59da7a074cb1faa93fce2912fdab79d1094
readDarcsHashedDir: _darcs/pristine.hashed af2580a03b5878a2d57b97e0544156879e91083cb7155573e3ed360b45b54b50
readDarcsHashedDir: _darcs/pristine.hashed 2ecc983118387d81a9d9f2f6825cc5838f091363a0c46ae370aa9ae346adf4f8
readDarcsHashedDir: _darcs/pristine.hashed e1aca7acc9bc86df2a08ed479f62ad3697d3edbb64ea5a63fa0a5cc4b7034fa9
readDarcsHashedDir: _darcs/pristine.hashed df08f02da4d9054cd2a61ad49717ad08f27563fa50ffb415e6dccf8045a40e17
readDarcsHashedDir: _darcs/pristine.hashed ae25a638fcabb9769c2e281061d4d271d2144024004809226266e60e34f268e1
readDarcsHashedDir: _darcs/pristine.hashed 097c05c7b5054ff994d9e9886a5703c9a14de74c410cc2b9bb3fc38583e896e1
readDarcsHashedDir: _darcs/pristine.hashed 08abf217f37ad50d2602e2218ab6953ccaac9731468da2d143abc6a2f246d819
readDarcsHashedDir: _darcs/pristine.hashed c6d754ebcf69dbb74c51e125a0752ff7836ad439aa532932d0d5d71a8b129c5e
readDarcsHashedDir: _darcs/pristine.hashed ab2dbfb4a8adcdc5a8db8a975ea092418cc0375f31df721e0094d4c2b9d230a9
readDarcsHashedDir: _darcs/pristine.hashed e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
readDarcsHashedDir: _darcs/pristine.hashed e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
readDarcsHashedDir: _darcs/pristine.hashed e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
readDarcsHashedDir: _darcs/pristine.hashed 7303ddbfec5734f14fd38da95c7fb9ef7deeec1a12a58ed31c15fff0c31a5858
readDarcsHashedDir: _darcs/pristine.hashed e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
readDarcsHashedDir: _darcs/pristine.hashed c6d754ebcf69dbb74c51e125a0752ff7836ad439aa532932d0d5d71a8b129c5e
readDarcsHashedDir: _darcs/pristine.hashed ab2dbfb4a8adcdc5a8db8a975ea092418cc0375f31df721e0094d4c2b9d230a9
readDarcsHashedDir: _darcs/pristine.hashed e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
readDarcsHashedDir: _darcs/pristine.hashed e190e03359a85f690d4c8cc8990527a91be826c63bdd2f890aa759fc828f1f55
readDarcsHashedDir: _darcs/pristine.hashed 2c7bec42debc7f3eb1d47e085c4dbbb690d3f52b6435d2bb7fc73a17f1cf9be2
readDarcsHashedDir: _darcs/pristine.hashed 62eb9ed299d5ea68417c0b38eb4d232f203e3a8542388a67c43f41236dc00320
About to get the unrecorded changes.
readDarcsHashedDir: _darcs/pristine.hashed ab8ff18d047bfc654d41b9ed7d20e428004772c9927407baa0d08b4546275439
readDarcsHashedDir: _darcs/pristine.hashed e190e03359a85f690d4c8cc8990527a91be826c63bdd2f890aa759fc828f1f55
readDarcsHashedDir: _darcs/pristine.hashed 2c7bec42debc7f3eb1d47e085c4dbbb690d3f52b6435d2bb7fc73a17f1cf9be2
readDarcsHashedDir: _darcs/pristine.hashed 6bd0801c7081d74fc5d55883011e54bf6882671183d22cba29b7db7a1089b770
readDarcsHashedDir: _darcs/pristine.hashed 4d944da2a24dbd1fe687c934261b3e8403e5333589dde7fc22e20e7572b6695a
readDarcsHashedDir: _darcs/pristine.hashed 62eb9ed299d5ea68417c0b38eb4d232f203e3a8542388a67c43f41236dc00320
I've got unrecorded changes.
I'm slurping the repository.
readDarcsHashedDir: _darcs/pristine.hashed ab8ff18d047bfc654d41b9ed7d20e428004772c9927407baa0d08b4546275439
About to select changes...
Patch name as received from getLog: [102,111,111,98,97,114]
Writing the patch file...
withNamedTemp: "_darcs/rebase.tentative"
Writing hash file to patches
About to gzFetchFilePS from "/home/gpiero/_darcs/patches/0000000368-3122ba5df9ea95de54f54348f79d8443d450982057c1530a51644bdfb833f75e"
Caught exception, now attempt creating cache.
About to gzFetchFilePS from "/home/gpiero/.cache/darcs/patches/31/0000000368-3122ba5df9ea95de54f54348f79d8443d450982057c1530a51644bdfb833f75e"
Caught exception, now attempt creating cache.
withNamedTemp: "/home/gpiero/_darcs/patches/0000000368-3122ba5df9ea95de54f54348f79d8443d450982057c1530a51644bdfb833f75e"
Applying to pristine cache...
readDarcsHashedDir: _darcs/pristine.hashed ab8ff18d047bfc654d41b9ed7d20e428004772c9927407baa0d08b4546275439
readDarcsHashedDir: _darcs/pristine.hashed e190e03359a85f690d4c8cc8990527a91be826c63bdd2f890aa759fc828f1f55
readDarcsHashedDir: _darcs/pristine.hashed 2c7bec42debc7f3eb1d47e085c4dbbb690d3f52b6435d2bb7fc73a17f1cf9be2
readDarcsHashedDir: _darcs/pristine.hashed 62eb9ed299d5ea68417c0b38eb4d232f203e3a8542388a67c43f41236dc00320
hashedTreeIO.updateFile: 6d5e1398564e6ae3921e3aa175342e5808868cdd2b342684f7f9b652e44491e3
fsCreateHashedFile _darcs/pristine.hashed/6d5e1398564e6ae3921e3aa175342e5808868cdd2b342684f7f9b652e44491e3
hashedTreeIO.updateSub: 9e2b82772ea8be8c5591a9d149c5077325dae463e4186c91574ec07408bb0121
fsCreateHashedFile _darcs/pristine.hashed/9e2b82772ea8be8c5591a9d149c5077325dae463e4186c91574ec07408bb0121
hashedTreeIO.updateSub: bbf10f25f21880cdb827c05b389d605545ebce965ed96d25f59cfebab1f928ca
fsCreateHashedFile _darcs/pristine.hashed/bbf10f25f21880cdb827c05b389d605545ebce965ed96d25f59cfebab1f928ca
hashedTreeIO.updateSub: af309823fb0224cd8d6f325fa3013cbe0f6ce2760bb7eecbbc1cb60e5815f43b
fsCreateHashedFile _darcs/pristine.hashed/af309823fb0224cd8d6f325fa3013cbe0f6ce2760bb7eecbbc1cb60e5815f43b
hashedTreeIO.updateSub: 858fd7b446916a123b5fe3a8a587d561cefd8b68f55b56734c2b578d44be727f
fsCreateHashedFile _darcs/pristine.hashed/858fd7b446916a123b5fe3a8a587d561cefd8b68f55b56734c2b578d44be727f
withNamedTemp: "_darcs/tentative_pristine"
Applying to pristine...
Considering whether to test...
withNamedTemp: "_darcs/patches/pending.tentative"
Finalizing changes...
Optimizing the inventory...
in writeTentativeInventory...
Beginning writing inventory
Beginning optimizing inventory
Done optimizing inventory
Writing hash file to inventories
About to gzFetchFilePS from "/home/gpiero/_darcs/inventories/0000018382-d8f494b45c490daecd1660a306665412793f49efff532f6207601fc583d40cf9"
Caught exception, now attempt creating cache.
About to gzFetchFilePS from "/home/gpiero/.cache/darcs/inventories/d8/0000018382-d8f494b45c490daecd1660a306665412793f49efff532f6207601fc583d40cf9"
Caught exception, now attempt creating cache.
withNamedTemp: "/home/gpiero/_darcs/inventories/0000018382-d8f494b45c490daecd1660a306665412793f49efff532f6207601fc583d40cf9"
Done writing inventory
still in writeTentativeInventory...
I'm doing copyFileUsingCache on inventories/0000018382-d8f494b45c490daecd1660a306665412793f49efff532f6207601fc583d40cf9
About to gzFetchFilePS from "/home/gpiero/_darcs/inventories/0000018382-d8f494b45c490daecd1660a306665412793f49efff532f6207601fc583d40cf9"
gzFetchFilePS done.
withNamedTemp: "_darcs/tentative_hashed_inventory"
withNamedTemp: "_darcs/tentative_hashed_inventory"
readDarcsHashedDir: _darcs/pristine.hashed 858fd7b446916a123b5fe3a8a587d561cefd8b68f55b56734c2b578d44be727f
Writing new pending:  _darcs/patches/pending.new
withNamedTemp: "_darcs/patches/pending.new"
readDarcsHashedDir: _darcs/pristine.hashed 9e2b82772ea8be8c5591a9d149c5077325dae463e4186c91574ec07408bb0121
readDarcsHashedDir: _darcs/pristine.hashed bbf10f25f21880cdb827c05b389d605545ebce965ed96d25f59cfebab1f928ca
readDarcsHashedDir: _darcs/pristine.hashed 6bd0801c7081d74fc5d55883011e54bf6882671183d22cba29b7db7a1089b770
readDarcsHashedDir: _darcs/pristine.hashed 4d944da2a24dbd1fe687c934261b3e8403e5333589dde7fc22e20e7572b6695a
Finished writing new pending:  _darcs/patches/pending.new
Done finalizing changes...
Beginning update patch index
Reading patch file: patch b17d998fc712fdd2d207fc84c92be384d51f1344
Author: Gian Piero Carrubba <gpiero at rm-rf.it>
Date:   Mon Oct  5 18:56:22 CEST 2020
  * xkb: include deadkeys
I'm doing copyFileUsingCache on patches/0000002665-7efc5fb248bb572b3dcd5cdb57d334601b8e4282de1ec736925369d2cea891f5
About to gzFetchFilePS from "/home/gpiero/_darcs/patches/0000002665-7efc5fb248bb572b3dcd5cdb57d334601b8e4282de1ec736925369d2cea891f5"
gzFetchFilePS done.
Done update patch index
Reading patch file: patch c40d81c93b9c15b9cf4ca16713f836b48a9b62e5
Author: Gian Piero Carrubba <gpiero at rm-rf.it>
Date:   Wed Dec  2 12:34:46 CET 2020
  * foobar
I'm doing copyFileUsingCache on patches/0000000368-3122ba5df9ea95de54f54348f79d8443d450982057c1530a51644bdfb833f75e
About to gzFetchFilePS from "/home/gpiero/_darcs/patches/0000000368-3122ba5df9ea95de54f54348f79d8443d450982057c1530a51644bdfb833f75e"
gzFetchFilePS done.
/home/gpiero-ff42102d5231e4d7: createDirectory: permission denied (Permission denied)
Failed to record patch 'foobar'

Recording changes in: "./.versioned/common/.darcs"


More information about the darcs-devel mailing list