- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Re: Accessing journalctl command on ReadyNAS 102
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have enabled SSH on my ReadyNAS and granted the default admin command SSH access. I can SSH to the NAS (using Putty) and logon with the admin command.
I am issuing the command journalctl --disk-usage. I am getting an error as seen in the screen print that says the account does not have permissions to access the files due to insufficient permissions.
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@dpcsret wrote:
I am issuing the command journalctl --disk-usage. I am getting an error as seen in the screen print that says the account does not have permissions to access the files due to insufficient permissions.
Log in as root, using the NAS admin password.
This command only tells you how much space the log is using.
root@NAS:~# journalctl --disk-usage
Archived and active journals take up 50.1M on disk.
root@NAS:~#
All Replies
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@dpcsret wrote:
I am issuing the command journalctl --disk-usage. I am getting an error as seen in the screen print that says the account does not have permissions to access the files due to insufficient permissions.
Log in as root, using the NAS admin password.
This command only tells you how much space the log is using.
root@NAS:~# journalctl --disk-usage
Archived and active journals take up 50.1M on disk.
root@NAS:~#
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Accessing journalctl command on ReadyNAS 102
Ahh.. Thanks. That did the trick. I am trying to delete old logs - I clicked the CLEAR LOGS from the admin page but when I dumped the logs I still see old entries in some log files like smdb.log and smtp.log. I was going to issue as found in this article How To Clear The systemd journal Logs (journalctl) - Linux Uprising Blog
sudo journalctl --rotate
sudo journalclt --vaccum-time=1s
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Accessing journalctl command on ReadyNAS 102
No real reason.. maintenance. Emptying logs so any entries are more current. Size is not an issue - only 16MB used.
Is there a reason this is not a good idea ? I have log dump zip files for prior reference if need be.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Accessing journalctl command on ReadyNAS 102
@dpcsret wrote:
Is there a reason this is not a good idea ?
Generally if something does go wrong, it's best to have all the information. It's easier to do this from one log zip, and not piece things together.
If you do want to clear them, you can also do this from the NAS web ui.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Accessing journalctl command on ReadyNAS 102
I did the CLEAR LOGS from the web UI. It did not clear all the logs..
I was just playing around with SSH. I can leave the logs alone.
Prepping for steps to stop ReadyCloud log activity from tying up the unit and making it occasionally unavailable (assumption).
Thanks for the quick response. I will mark it as the resolution.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Accessing journalctl command on ReadyNAS 102
Try this for the leafp2p problem (logging in as root):
systemctl stop leafp2p rcbrokerd
systemctl disable leafp2p rcbrokerd
Wait a bit (perhaps 30 minutes), and download the log zip. After you confirm that the leafp2p messages stopped, try rebooting the NAS, and then download them again with a delay. Then confirm that the fix survived the reboot.
Though you should also be able to see these messages from journalctl, so that would be another way to confirm.
There are certainly other folks with this issue - I saw it in another log zip I received today.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Accessing journalctl command on ReadyNAS 102
Thanks
Will do.. are the other folks experiencing the same issue with Windows mappings dropping off ?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Accessing journalctl command on ReadyNAS 102
@dpcsret wrote:
Are the other folks experiencing the same issue with Windows mappings dropping off ?
I don't recall the earlier one(s) well enough. But not the most recent one I've seen. However, that person has a higher-end NAS, so the service would be less likely to bog down the system.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Accessing journalctl command on ReadyNAS 102
FYI - I did run the journalctl --rotate and journalctl --vacuum-time=1s.
It did what I wanted and emptied the logs. I rebooted the NAS and dumped the logs. The leafp2p log indicates the service is still starting up.
But this is going from bad (losing mapped drives) to becoming unmanageable.
- I am getting kicked out of Putty session or get a connection refused when attempting to open a session.
- unable to open admin page.
- get prompted for credentials when running RAIDar when trying to dump the logs, run diagnostics, restart - it says the credentials are not valid - I am positive I am typing the password correctly. After I reset the NAS I am able to run these routines on RAIDar for a short period of time.
At this point I have to manually reset the NAS by removing the power and putting it back in. It will work for short while.
I purchased this in November of 2015 - not sure what the life expectancy is for these units.
Not sure if a factory reset is going to help but at this point it is pretty much useless .
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Accessing journalctl command on ReadyNAS 102
@dpcsret wrote:
Not sure if a factory reset is going to help but at this point it is pretty much useless .
That is easy to check if yoiu have a spare disk. Just power down, remove the operational disks, and then do a factory install on the spare.
@dpcsret wrote:
FYI - I did run the journalctl --rotate and journalctl --vacuum-time=1s.
It did what I wanted and emptied the logs. I rebooted the NAS and dumped the logs. The leafp2p log indicates the service is still starting up.
It sounds like you were not able to run the commands I posted above. Is that the case?
It'd be useful to know, as if you didn't run them, then it must be the journalctl commands that destablized the NAS.
@dpcsret wrote:
After I reset the NAS I am able to run these routines on RAIDar for a short period of time.
At this point I have to manually reset the NAS by removing the power and putting it back in. It will work for short while.
What are the routines you are running? Are you saying you are able to get the logs?
So you are power-cycling the NAS? That is what you mean when you say "reset"?