PDA

View Full Version : Unable to fix permissions



Morpho
August 22nd, 2021, 23:25
I am attempting to run FGU on a Mac Book Pro with Big Sur 11.3 I have been unable to log into FG for a long time. When I install FGU it Fails to Fix Permissions (I'm made sure that the firewall doesn't block the app), and when I log in, it says successful, but will not Fix Permissions, and will not allow a forced update. I've been stuck for weeks. Any ideas out there?

User Pref Path exists
App Prefs Found
ARGS: 3
COMMAND: '/Applications/SmiteWorks/Fantasy'
Start()
DirectoryInfo: /Applications/SmiteWorks/Fantasy Grounds
DefaultAppPath: /Applications/SmiteWorks/Fantasy Grounds
Find update folder: /Applications/SmiteWorks/Fantasy Grounds/FantasyGroundsUpdater_NEW
File.Exists() = True
Cleanup old Updater data /Applications/SmiteWorks/Fantasy Grounds/FantasyGroundsUpdater_NEW
Create Pref Directory: /Library/Preferences/SmiteWorks/
SaveBaseSettings
SaveUserSettings
Resuming Update
e: DirectoryCreateWithSecurity - Unable to create Start Menu shortcuts.

CreateDirectory failed. (/Users/USER 1/SmiteWorks/Fantasy Grounds/cache)

Error: System.UnauthorizedAccessException: Access to the path "/Users/USER 1" is denied.
at System.IO.Directory.CreateDirectoriesInternal (System.String path) [0x0005e] in <fb001e01371b4adca20013e0ac763896>:0
at System.IO.Directory.CreateDirectory (System.String path) [0x0008f] in <fb001e01371b4adca20013e0ac763896>:0
at System.IO.DirectoryInfo.Create () [0x00000] in <fb001e01371b4adca20013e0ac763896>:0
at (wrapper remoting-invoke-with-check) System.IO.DirectoryInfo.Create()
at System.IO.Directory.CreateDirectoriesInternal (System.String path) [0x00036] in <fb001e01371b4adca20013e0ac763896>:0
at System.IO.Directory.CreateDirectory (System.String path) [0x0008f] in <fb001e01371b4adca20013e0ac763896>:0
at System.IO.DirectoryInfo.Create () [0x00000] in <fb001e01371b4adca20013e0ac763896>:0
at (wrapper remoting-invoke-with-check) System.IO.DirectoryInfo.Create()
at System.IO.Directory.CreateDirectoriesInternal (System.String path) [0x00036] in <fb001e01371b4adca20013e0ac763896>:0
at System.IO.Directory.CreateDirectory (System.String path) [0x0008f] in <fb001e01371b4adca20013e0ac763896>:0
at System.IO.DirectoryInfo.Create () [0x00000] in <fb001e01371b4adca20013e0ac763896>:0
at (wrapper remoting-invoke-with-check) System.IO.DirectoryInfo.Create()
at System.IO.Directory.CreateDirectoriesInternal (System.String path) [0x00036] in <fb001e01371b4adca20013e0ac763896>:0
at System.IO.Directory.CreateDirectory (System.String path) [0x0008f] in <fb001e01371b4adca20013e0ac763896>:0
at System.IO.Directory.CreateDirectory (System.String path, System.Security.AccessControl.DirectorySecurity directorySecurity) [0x00000] in <fb001e01371b4adca20013e0ac763896>:0
at FileManager.DirectoryCreateWithSecurity (System.String sDirectory, System.Boolean bShowError) [0x0002a] in <3128def7b86349d3a9fdfc34fb60a873>:0
Username or password must be entered in settings before you can update.
1 Response received:

{"channels":[{"channelID":"3","channelName":"Dev"},{"channelID":"1","channelName":"Live"},{"channelID":"6","channelName":"Prev"},{"channelID":"2","channelName":"Test"}]}
e: DirectoryCreateWithSecurity - Unable to create Start Menu shortcuts.

CreateDirectory failed. (/Users/USER 1/SmiteWorks/Fantasy Grounds/cache)

Error: System.UnauthorizedAccessException: Access to the path "/Users/USER 1" is denied.
at System.IO.Directory.CreateDirectoriesInternal (System.String path) [0x0005e] in <fb001e01371b4adca20013e0ac763896>:0
at System.IO.Directory.CreateDirectory (System.String path) [0x0008f] in <fb001e01371b4adca20013e0ac763896>:0
at System.IO.DirectoryInfo.Create () [0x00000] in <fb001e01371b4adca20013e0ac763896>:0
at (wrapper remoting-invoke-with-check) System.IO.DirectoryInfo.Create()
at System.IO.Directory.CreateDirectoriesInternal (System.String path) [0x00036] in <fb001e01371b4adca20013e0ac763896>:0
at System.IO.Directory.CreateDirectory (System.String path) [0x0008f] in <fb001e01371b4adca20013e0ac763896>:0
at System.IO.DirectoryInfo.Create () [0x00000] in <fb001e01371b4adca20013e0ac763896>:0
at (wrapper remoting-invoke-with-check) System.IO.DirectoryInfo.Create()
at System.IO.Directory.CreateDirectoriesInternal (System.String path) [0x00036] in <fb001e01371b4adca20013e0ac763896>:0
at System.IO.Directory.CreateDirectory (System.String path) [0x0008f] in <fb001e01371b4adca20013e0ac763896>:0
at System.IO.DirectoryInfo.Create () [0x00000] in <fb001e01371b4adca20013e0ac763896>:0
at (wrapper remoting-invoke-with-check) System.IO.DirectoryInfo.Create()
at System.IO.Directory.CreateDirectoriesInternal (System.String path) [0x00036] in <fb001e01371b4adca20013e0ac763896>:0
at System.IO.Directory.CreateDirectory (System.String path) [0x0008f] in <fb001e01371b4adca20013e0ac763896>:0
at System.IO.Directory.CreateDirectory (System.String path, System.Security.AccessControl.DirectorySecurity directorySecurity) [0x00000] in <fb001e01371b4adca20013e0ac763896>:0
at FileManager.DirectoryCreateWithSecurity (System.String sDirectory, System.Boolean bShowError) [0x0002a] in <3128def7b86349d3a9fdfc34fb60a873>:0
Username or password must be entered in settings before you can update.
3 Response received:

{"channels":[{"channelID":"3","channelName":"Dev"},{"channelID":"1","channelName":"Live"},{"channelID":"6","channelName":"Prev"},{"channelID":"2","channelName":"Test"}]}
Create Pref Directory: /Library/Preferences/SmiteWorks/
SaveBaseSettings
SaveUserSettings
4 Response received:

{"channels":[{"channelID":"3","channelName":"Dev"},{"channelID":"1","channelName":"Live"},{"channelID":"6","channelName":"Prev"},{"channelID":"2","channelName":"Test"}]}
Create Pref Directory: /Library/Preferences/SmiteWorks/
SaveBaseSettings
SaveUserSettings
5 Response received:

{"channels":[{"channelID":"3","channelName":"Dev"},{"channelID":"1","channelName":"Live"},{"channelID":"6","channelName":"Prev"},{"channelID":"2","channelName":"Test"}]}
Create Pref Directory: /Library/Preferences/SmiteWorks/
SaveBaseSettings
SaveUserSettings

smelton
August 23rd, 2021, 02:50
I am attempting to run FGU on a Mac Book Pro with Big Sur 11.3 I have been unable to log into FG for a long time. When I install FGU it Fails to Fix Permissions (I'm made sure that the firewall doesn't block the app), and when I log in, it says successful, but will not Fix Permissions, and will not allow a forced update. I've been stuck for weeks. Any ideas out there?

User Pref Path exists
App Prefs Found
ARGS: 3
COMMAND: '/Applications/SmiteWorks/Fantasy'
Start()
DirectoryInfo: /Applications/SmiteWorks/Fantasy Grounds
DefaultAppPath: /Applications/SmiteWorks/Fantasy Grounds
Find update folder: /Applications/SmiteWorks/Fantasy Grounds/FantasyGroundsUpdater_NEW
File.Exists() = True
Cleanup old Updater data /Applications/SmiteWorks/Fantasy Grounds/FantasyGroundsUpdater_NEW
Create Pref Directory: /Library/Preferences/SmiteWorks/
SaveBaseSettings
SaveUserSettings
Resuming Update
e: DirectoryCreateWithSecurity - Unable to create Start Menu shortcuts.

CreateDirectory failed. (/Users/USER 1/SmiteWorks/Fantasy Grounds/cache)

Error: System.UnauthorizedAccessException: Access to the path "/Users/USER 1" is denied.
at System.IO.Directory.CreateDirectoriesInternal (System.String path) [0x0005e] in <fb001e01371b4adca20013e0ac763896>:0
at System.IO.Directory.CreateDirectory (System.String path) [0x0008f] in <fb001e01371b4adca20013e0ac763896>:0
at System.IO.DirectoryInfo.Create () [0x00000] in <fb001e01371b4adca20013e0ac763896>:0
at (wrapper remoting-invoke-with-check) System.IO.DirectoryInfo.Create()
at System.IO.Directory.CreateDirectoriesInternal (System.String path) [0x00036] in <fb001e01371b4adca20013e0ac763896>:0
at System.IO.Directory.CreateDirectory (System.String path) [0x0008f] in <fb001e01371b4adca20013e0ac763896>:0
at System.IO.DirectoryInfo.Create () [0x00000] in <fb001e01371b4adca20013e0ac763896>:0
at (wrapper remoting-invoke-with-check) System.IO.DirectoryInfo.Create()
at System.IO.Directory.CreateDirectoriesInternal (System.String path) [0x00036] in <fb001e01371b4adca20013e0ac763896>:0
at System.IO.Directory.CreateDirectory (System.String path) [0x0008f] in <fb001e01371b4adca20013e0ac763896>:0
at System.IO.DirectoryInfo.Create () [0x00000] in <fb001e01371b4adca20013e0ac763896>:0
at (wrapper remoting-invoke-with-check) System.IO.DirectoryInfo.Create()
at System.IO.Directory.CreateDirectoriesInternal (System.String path) [0x00036] in <fb001e01371b4adca20013e0ac763896>:0
at System.IO.Directory.CreateDirectory (System.String path) [0x0008f] in <fb001e01371b4adca20013e0ac763896>:0
at System.IO.Directory.CreateDirectory (System.String path, System.Security.AccessControl.DirectorySecurity directorySecurity) [0x00000] in <fb001e01371b4adca20013e0ac763896>:0
at FileManager.DirectoryCreateWithSecurity (System.String sDirectory, System.Boolean bShowError) [0x0002a] in <3128def7b86349d3a9fdfc34fb60a873>:0
Username or password must be entered in settings before you can update.
1 Response received:

{"channels":[{"channelID":"3","channelName":"Dev"},{"channelID":"1","channelName":"Live"},{"channelID":"6","channelName":"Prev"},{"channelID":"2","channelName":"Test"}]}
e: DirectoryCreateWithSecurity - Unable to create Start Menu shortcuts.

CreateDirectory failed. (/Users/USER 1/SmiteWorks/Fantasy Grounds/cache)

Error: System.UnauthorizedAccessException: Access to the path "/Users/USER 1" is denied.
at System.IO.Directory.CreateDirectoriesInternal (System.String path) [0x0005e] in <fb001e01371b4adca20013e0ac763896>:0
at System.IO.Directory.CreateDirectory (System.String path) [0x0008f] in <fb001e01371b4adca20013e0ac763896>:0
at System.IO.DirectoryInfo.Create () [0x00000] in <fb001e01371b4adca20013e0ac763896>:0
at (wrapper remoting-invoke-with-check) System.IO.DirectoryInfo.Create()
at System.IO.Directory.CreateDirectoriesInternal (System.String path) [0x00036] in <fb001e01371b4adca20013e0ac763896>:0
at System.IO.Directory.CreateDirectory (System.String path) [0x0008f] in <fb001e01371b4adca20013e0ac763896>:0
at System.IO.DirectoryInfo.Create () [0x00000] in <fb001e01371b4adca20013e0ac763896>:0
at (wrapper remoting-invoke-with-check) System.IO.DirectoryInfo.Create()
at System.IO.Directory.CreateDirectoriesInternal (System.String path) [0x00036] in <fb001e01371b4adca20013e0ac763896>:0
at System.IO.Directory.CreateDirectory (System.String path) [0x0008f] in <fb001e01371b4adca20013e0ac763896>:0
at System.IO.DirectoryInfo.Create () [0x00000] in <fb001e01371b4adca20013e0ac763896>:0
at (wrapper remoting-invoke-with-check) System.IO.DirectoryInfo.Create()
at System.IO.Directory.CreateDirectoriesInternal (System.String path) [0x00036] in <fb001e01371b4adca20013e0ac763896>:0
at System.IO.Directory.CreateDirectory (System.String path) [0x0008f] in <fb001e01371b4adca20013e0ac763896>:0
at System.IO.Directory.CreateDirectory (System.String path, System.Security.AccessControl.DirectorySecurity directorySecurity) [0x00000] in <fb001e01371b4adca20013e0ac763896>:0
at FileManager.DirectoryCreateWithSecurity (System.String sDirectory, System.Boolean bShowError) [0x0002a] in <3128def7b86349d3a9fdfc34fb60a873>:0
Username or password must be entered in settings before you can update.
3 Response received:

{"channels":[{"channelID":"3","channelName":"Dev"},{"channelID":"1","channelName":"Live"},{"channelID":"6","channelName":"Prev"},{"channelID":"2","channelName":"Test"}]}
Create Pref Directory: /Library/Preferences/SmiteWorks/
SaveBaseSettings
SaveUserSettings
4 Response received:

{"channels":[{"channelID":"3","channelName":"Dev"},{"channelID":"1","channelName":"Live"},{"channelID":"6","channelName":"Prev"},{"channelID":"2","channelName":"Test"}]}
Create Pref Directory: /Library/Preferences/SmiteWorks/
SaveBaseSettings
SaveUserSettings
5 Response received:

{"channels":[{"channelID":"3","channelName":"Dev"},{"channelID":"1","channelName":"Live"},{"channelID":"6","channelName":"Prev"},{"channelID":"2","channelName":"Test"}]}
Create Pref Directory: /Library/Preferences/SmiteWorks/
SaveBaseSettings
SaveUserSettings

Try to manually set the permissions:

chown <username>:<username> -r ~/SmiteWorks/

If that doesn't work, provide the output for the follow command:

ls -la ~/SmiteWorks

UrsaTeddy
August 23rd, 2021, 07:06
When I first bought and tried to install FGU I had similar problems on my Macbook Pro.

Granted I am still on Catalina, however the fix for me was to completely uninstall FGU first. Make sure that the cache files are empty as well (which you find in the cache directory in the Fantasy Grounds data directory created on the machine.

Then I went into System Preferences > Security and Privacy and removed any mention of FGU etc in there.

I then rebooted.

From there I reinstalled the software from scratch but did not run it.

I went back into System Preferences > Security and Privacy and added the FantasyGrounds App and the FGUpdaterEngine App to Full Disk Access.

I then launched the software, logged into Fantasy Grounds and ran an update.

Be aware that sometimes the "give network permissions" will not stick for FGU until after a few tries for some reason but it is a minor inconvenience.

Hopefully that helps to shed some possible light on the subject.

damned
August 23rd, 2021, 09:05
Make sure you backup your data /campaigns folder!

Morpho
August 23rd, 2021, 15:55
Thanks for the rapid reply. You’ll have to forgive me, but I’m not techie enough to understand all of what you posted here. Where do I manually set permissions? In my security tab?


Try to manually set the permissions:

chown <username>:<username> -r ~/SmiteWorks/

If that doesn't work, provide the output for the follow command:

ls -la ~/SmiteWorks

Morpho
August 23rd, 2021, 15:58
Thanks. I have tried this as well to no avail. I note you said that you installed both the app and the updater engine. When I tried a reinstall, it just added the updater engine. Are there separate apps to be installed?

Moon Wizard
August 23rd, 2021, 17:23
There are three executable files in the FG app folder. One for the main applicaiton, one for the main updater, and one helper app to allow the updater to self-update. All three should be allowed to run in order to write files to disk, as the main app needs to write data files to the data folder, and the two updater apps need to write data to both the data folder and app folder.

The commands that @smelton gave you to run are to run via the Terminal command line interface.

Regards,
JPG

Morpho
August 24th, 2021, 01:11
So I tried another uninstall/reinstall, but no luck. "Fantasy Grounds Updater does not have write access to either the Application or Data Directory. We can attempt to fix permissions but will need Administrator access to do so." It then fails to fix permissions and the says I have not entered user name or password. So I log in again (successful), and the above error message appears again. If I try to force updates, it states i haven't logged in. If I try to update after logging in and then 'cancel' the Fix Permissions option, the updater crashes. That's it. Any other ideas? I have no idea what a Terminal Command Line Interface is.

Morpho
August 24th, 2021, 01:14
There are three executable files in the FG app folder. One for the main applicaiton, one for the main updater, and one helper app to allow the updater to self-update. All three should be allowed to run in order to write files to disk, as the main app needs to write data files to the data folder, and the two updater apps need to write data to both the data folder and app folder.

The commands that @smelton gave you to run are to run via the Terminal command line interface.

Regards,
JPG

The folder has only two apps: FantasyGroundsUpdater and FGUpdaterEngine. I have only downloaded from the Fantasy Grounds website here: https://www.fantasygrounds.com/home/home.php

Sulimo
August 24th, 2021, 01:17
So I tried another uninstall/reinstall, but no luck. "Fantasy Grounds Updater does not have write access to either the Application or Data Directory. We can attempt to fix permissions but will need Administrator access to do so." It then fails to fix permissions and the says I have not entered user name or password. So I log in again (successful), and the above error message appears again. If I try to force updates, it states i haven't logged in. If I try to update after logging in and then 'cancel' the Fix Permissions option, the updater crashes. That's it. Any other ideas? I have no idea what a Terminal Command Line Interface is.

Open or quit Terminal on macOS. (https://support.apple.com/guide/terminal/open-or-quit-terminal-apd5265185d-f365-44cb-8b09-71a064a42125/mac)

Open the Terminal and type the commands smelton gave in post #2 (https://www.fantasygrounds.com/forums/showthread.php?70206-Unable-to-fix-permissions&p=616874&viewfull=1#post616874).

Morpho
August 24th, 2021, 01:41
I've never used Terminal commands, so maybe I entered something wrong, but both say "No such file or directory"

smelton
August 24th, 2021, 01:46
Ping me on Discord (smelton#0068) and i will walk you through it

Morpho
August 24th, 2021, 02:14
Ping me on Discord (smelton#0068) and i will walk you through it

Sounds good.

Morpho
September 10th, 2021, 02:06
Any luck on the research into why I can't fix permissions?

UrsaTeddy
September 10th, 2021, 03:17
@Morpho

Have you tired the suggestion I made regarding the Mac's Security & Privacy settings?

The Mac likes to use this interface to grant permissions. I have never had to use the command line for FGU - just ensure that you give the apps Full Disk Access.

Morpho
September 10th, 2021, 03:53
@Morpho

Have you tired the suggestion I made regarding the Mac's Security & Privacy settings?

The Mac likes to use this interface to grant permissions. I have never had to use the command line for FGU - just ensure that you give the apps Full Disk Access.

I did what you suggested, and thanks, but no luck. It runs the updater, then quits. It won’t let me force an update either. I can log in to the updater, but it then either won’t fix permissions (and then logs me out), or it starts loading, then crashes.

UrsaTeddy
September 10th, 2021, 04:19
This has happened to me in the past.

Have you cleared the cached files from the Data Directory?

I know this is probably something you have done already but have you tried downloading the installer again?

Morpho
September 10th, 2021, 14:10
This has happened to me in the past.

Have you cleared the cached files from the Data Directory?

I know this is probably something you have done already but have you tried downloading the installer again?

I have tried this, yes.