andrewchambers / hermes

Hermes software environment manager
MIT License
312 stars 8 forks source link

User filesystem error #75

Open HaoZeke opened 4 years ago

HaoZeke commented 4 years ago

Hi! I'm setting this up on an HPC, and though initializing at /tmp/hermes-store worked, in my home directory I'm getting the following error:

error: unable to acquire lock on file '/users/home/rog32/.hermes-store/var/hermes/lock/gc.lock' - Bad file descriptor
  in flock/acquire
  in acquire-gc-lock [src/pkgstore.janet] on line 200, column 3
  in gc [src/pkgstore.janet] (tailcall) on line 231, column 18
  in <anonymous> [src/hermes-pkgstore-main.janet] on line 289, column 16
  in main [src/hermes-pkgstore-main.janet] on line 285, column 3

Since it is on an HPC, the underlying filesystem is an NFS one, and I do not have root access.

andrewchambers commented 4 years ago

Seems like a similar issue to https://github.com/ansible/awx/issues/3926. Will investigate.

HaoZeke commented 3 years ago

This is still an issue (after https://github.com/ansible/awx/pull/3928); with the latest commit I get:

$ hermes build --output ./seed-env Git/Github/hpkgs/seed.hpkg
error: unable to acquire lock on file '/users/home/rog32/hermes-store/var/hermes/lock/build-e8f91f129240289f9874c14156bedaf324289c75.lock' - Bad file descriptor
  in flock/acquire
  in acquire-build-lock [src/pkgstore.janet] on line 204, column 3
  in build-pkg [src/pkgstore.janet] on line 448, column 35
  in build-pkg [src/pkgstore.janet] on line 445, column 36
  in <anonymous> [src/pkgstore.janet] on line 629, column 13
  in <anonymous> [src/pkgstore.janet] on line 433, column 3
  in <anonymous> [src/pkgstore.janet] on line 432, column 3
  in build [src/pkgstore.janet] on line 431, column 3
  in build [src/hermes-pkgstore-main.janet] on line 171, column 3
  in <anonymous> [src/hermes-pkgstore-main.janet] on line 288, column 19
  in main [src/hermes-pkgstore-main.janet] on line 285, column 3