-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Logging not working #28
Comments
Hi @courtesysoft, I can look into this if @rflament and other contributors are okay. |
@courtesysoft did you use " -l log-file" option start "loggedfs" ? Can you let me know the command how you launched it to reproduce the issue? |
Hi @mnjdhl, I encountered the same issue I think. The command I ran was I hope you or someone else can fix this :) |
Damn, sorry for such a late response. Here is the command i used to instantiate it: Here's loggedfs.conf ( configured to only log writes and ignore reads happening over our IDE via SSHFS ):
In my case, -c was pointing to a file that didn't exist. My bad. I fixed this. What i find is that i have to sudo this command for this to work. Otherwise loggedfs would just close, complaining about the user_allow_other setting in /etc/fuse.conf. After setting that, it complains about a -o nonempty fuse command, and will close itself instead of run. With running it as sudo, the above configuration now works. Perhaps this should be clarified in the documentation. The documentation doesn't state you have ot use sudo or be the root user. LoggedFS should have some kind of sanity check to let you know this is a requirement. |
Actually i still have a problem. Both of these commands are equivalent to start loggedfs: From the command line, these won't result in launching as a background process. The terminal will not return to bash. This is expected when using the -f in the command line. But i want loggedFS to run as a background service. And here's my problem. in /lib/systemd/system/loggedfs.service, i have this pointing at a shell script that contains:
When i start this service, the command line hangs and eventually terminates itself and closes loggedfs. If i change loggedFS command line to: The process successfully starts and runs in the background, but loggedFS doesn't log at all. I think it's possible my systemd file is not jiving with how loggedFS works with -f. Any clues? |
I think i finally have it licked: loggedfs-l.sh: loggedfs.service: `[Unit] [Service] [Install] loggedfs.conf:
This has been working for more than a few minutes. |
@courtesysoft Good to know that it's working. If anything I can help pl let me know |
Thanks for your responses, and also building this thing! While i have you here, do you plan for any updates to this software? i see it hasn't had an update in 6 years. I'm just wondering if it will get updates in the future? |
Hey, great piece of software; i'm using it to monitor systems now :)
The logging feature is not working for me in ubuntu 20.04 straight from the repo ( not sure what version i picked up )
It writes something like bootup messages and then logs nothing.
Switch over to -f and i get the messages.
Quite a bummer.. can it be fixed? until then i'll be doing loggedfs > /var/log/loggedfs.log 2>&1
The text was updated successfully, but these errors were encountered: