Orbi WiFi 7 RBE973
Reply

Re: Accessing journalctl command on ReadyNAS 102

dpcsret
Aspirant

Accessing journalctl command on ReadyNAS 102

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.

journalctl_command.JPG

Message 1 of 12

Accepted Solutions
StephenB
Guru

Re: Accessing journalctl command on ReadyNAS 102


@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:~# 

 

View solution in original post

Message 2 of 12

All Replies
StephenB
Guru

Re: Accessing journalctl command on ReadyNAS 102


@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:~# 

 

Message 2 of 12
dpcsret
Aspirant

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

 

Message 3 of 12
StephenB
Guru

Re: Accessing journalctl command on ReadyNAS 102


@dpcsret wrote:

I am trying to delete old logs


Why?

Message 4 of 12
dpcsret
Aspirant

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.

Message 5 of 12
StephenB
Guru

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.

Message 6 of 12
dpcsret
Aspirant

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.

 

Message 7 of 12
StephenB
Guru

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.

Message 8 of 12
dpcsret
Aspirant

Re: Accessing journalctl command on ReadyNAS 102

Thanks

Will do.. are the other folks experiencing the same issue with Windows mappings dropping off ?

Message 9 of 12
StephenB
Guru

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.

Message 10 of 12
dpcsret
Aspirant

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 .

 

 

Message 11 of 12
StephenB
Guru

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"?

Message 12 of 12
Top Contributors
Discussion stats
  • 11 replies
  • 2287 views
  • 0 kudos
  • 2 in conversation
Announcements