foundryvtt / pf2e

A community contributed game system for Pathfinder Second Edition.
https://foundryvtt.com/packages/pf2e
Apache License 2.0
418 stars 349 forks source link

NPC Character Sheets - No such file or directory, rename 'conditionspf2e.db~' -> 'conditionspf2e.db' #747

Closed cswendrowski closed 2 years ago

cswendrowski commented 4 years ago

In GitLab by @bluesatin on Sep 2, 2020, 14:50

Issue

When accessing some NPC character sheets, I get several errors referring to the conditions db file:

Error: EPERM: operation not permitted, rename '\pf2e\packs\conditionspf2e.db~' -> '\pf2e\packs\conditionspf2e.db'
Error: UNKNOWN: unknown error, open '\pf2e\packs\conditionspf2e.db~'
Uncaught (in promise) Error: EPERM: operation not permitted, rename '\pf2e\packs\conditionspf2e.db~' -> '\pf2e\packs\conditionspf2e.db'
Error: UNKNOWN: unknown error, open '\pf2e\packs\conditionspf2e.db~'
Uncaught (in promise) Error: UNKNOWN: unknown error, open '\pf2e\packs\conditionspf2e.db~'

(Note: I stripped the start of the path names for brevity, I can confirm they're pointing to the correct location though).

These only appear to occur upon the first opening of one the NPC character sheets that causes the issue, although it will occur again if I 'Return to Setup' and then load the world again, at which point the errors will occur again upon first viewing the sheet.

General Information

Reproducing

  1. Create a new PF2e world
  2. Join the game as the Gamemaster
  3. Go to the compendium packs side-bar tab
  4. Open the 'NPC Gallery' actor pack
  5. Click the 'Advisor' NPC to view its character sheet
  6. The errors pop-up

Questions/Discussion

Checking the actual folder, I can confirm I have a conditionspf2e.db file; does the file get renamed to conditionspf2e.db~ temporarily when being modified or something?

If so, is something bugging out when trying to modify/access the conditionspf2e.db file multiple times at once?


Thank you for your time and effort! :smile:

cswendrowski commented 4 years ago

In GitLab by @TMun on Sep 2, 2020, 14:57

This was fixed in 1.10.5 - The current version is 1.10.7

cswendrowski commented 4 years ago

In GitLab by @bluesatin on Sep 2, 2020, 15:12

I'm a muppet. :tired_face:

Don't know how I managed to miss updating the Pathfinder2e module when updating everything else.

Thanks for your time.