fim icon indicating copy to clipboard operation
fim copied to clipboard

Crash on macOS

Open Else00 opened this issue 7 months ago • 1 comments

I installed fim using the provided .pkg.

When i start fim it crashes:

❯ fim
[INFO] Achiefs File Integrity Monitoring software starting!
[INFO] Reading config...
[INFO] System detected 'macos'
[INFO] Loaded config from: '/Applications/FileMonitor.app/config.yml'
thread 'main' panicked at src/init.rs:21:7:
called `Result::unwrap()` on an `Err` value: Os { code: 13, kind: PermissionDenied, message: "Permission denied" }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Also how i uninstall fim if i want to? because I didn't found any instruction on how to uninstall it in the guide.

Else00 avatar Apr 29 '25 20:04 Else00

Hello @Else00

Thanks for taking the time to use FIM, I see that this error is produced by an error with permissions at launch time. We defined a way to run FIM in the documentation, please take a look at https://documentation.achiefs.com/docs/installation-guide.html#macos-install Being short you will need to run FIM with root privileges because FIM will require it to inspect/monitor the system files sudo launchctl load -w /Library/LaunchDaemons/com.Achiefs.fim.launchd.plist

This command will launch FIM in background. If you want to check the progress of the program take a look at /var/log/fim.log If you want to review the events triggered by FIM (If any) take a look at /var/lib/fim/events.json

For uninstallation there is no standard command to remove all the contents but I could suggest the following:

  1. Unload the service if previously loaded: sudo launchctl unload -w /Library/LaunchDaemons/com.Achiefs.fim.launchd.plist
  2. Remove binaries and data: sudo rm -r /usr/local/bin/fim sudo rm -r /var/log/fim sudo rm -r /var/lib/fim
  3. Forget the package installation with: sudo pkgutil --forget com.Achiefs.fim

In any case, thanks for your feedback. I will keep this issue to improve install and remove documentation on macOS. Have a good day!

okynos avatar Apr 29 '25 21:04 okynos