Opening shell instantly tries to change directory

eseanq

Dabbler
Joined
Mar 25, 2019
Messages
39
I feel like this is a easy fix but for the life of me cannot figure out what changed or how to fix it, but when I open shell or an SSH session within a few seconds the active directory tries to be changed.

How do I fix this?
 

Attachments

  • Screen Shot 2024-02-05 at 8.57.59 AM.png
    Screen Shot 2024-02-05 at 8.57.59 AM.png
    67.7 KB · Views: 53
Joined
Oct 22, 2019
Messages
3,641
Have you made any manual modification's to the root account's shell/config files? (Such as the .bashrc file.)

* This assumes that bash is the default shell for SCALE. I am not familiar with SCALE.
 

eseanq

Dabbler
Joined
Mar 25, 2019
Messages
39
I have not done that, no. And currently shell for the root account is set to zsh
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
If you hit ENTER pwd ENTER in rapid succession, what is shown? I suspect nobody is trying to change your current directory but some background process running as root is spamming its error message to your SSH session.
 

eseanq

Dabbler
Joined
Mar 25, 2019
Messages
39
If you hit ENTER pwd ENTER in rapid succession, what is shown? I suspect nobody is trying to change your current directory but some background process running as root is spamming its error message to your SSH session.
Not sure if by coincidence but it seems to briefly stop, eventually coming back though.
 

Attachments

  • Screen Shot 2024-02-05 at 11.49.17 AM.png
    Screen Shot 2024-02-05 at 11.49.17 AM.png
    60.8 KB · Views: 44

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
And the output of the pwd command is /root - your current directory. So my suspicion is probably correct. [1]

On my SCALE system the missing directory looks like this - it points to the system dataset:
Code:
lrwxrwxrwx  1 root 55 Jan 24 19:14 netdata -> /var/db/system/netdata-5a0a2a47cd884dbcbe527966286bfc29/

What you could try to do is assign the system dataset to a different pool from the one it is currently assigned to, and then back again. Perhaps that fixes things.

[1] Part of the reporting subsystem (probably) tries to change into that directory, fails because the directory is missing (probably) and pesters root about that.
 
Last edited:

eseanq

Dabbler
Joined
Mar 25, 2019
Messages
39
Hmm. I'll look into doing that.
The strange thing though is that the directory does exist.

Is it a permission thing?
 

Attachments

  • Screen Shot 2024-02-05 at 12.38.49 PM.png
    Screen Shot 2024-02-05 at 12.38.49 PM.png
    106.9 KB · Views: 31
  • Screen Shot 2024-02-05 at 12.40.13 PM.png
    Screen Shot 2024-02-05 at 12.40.13 PM.png
    135.5 KB · Views: 35

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
No idea, sorry.
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,554
A process lacking ability to chdir into a directory may also mean a permissions issue on a parent path. E.g. `/var/`, `/var/db`, or `/var/db/system`. In this case execute for "other" would be required on each path component.
 
Top