Can't access web gui? Beta2

kspare

Guru
Joined
Feb 19, 2015
Messages
507
I get this when I ssh in?

File "/usr/local/sbin/hactl", line 173, in <module>
main(args.command, args.q)
File "/usr/local/sbin/hactl", line 17, in main
client = Client()
File "/usr/local/lib/python3.8/site-packages/middlewared/client/client.py", line 281, in __init__
self._ws.connect()
File "/usr/local/lib/python3.8/site-packages/middlewared/client/client.py", line 124, in connect
rv = super(WSClient, self).connect()
File "/usr/local/lib/python3.8/site-packages/ws4py/client/__init__.py", line 216, in connect
self.sock.connect(self.bind_addr)
ConnectionRefusedError: [Errno 61] Connection refused
 

crlorentzen

Cadet
Joined
Apr 6, 2020
Messages
9
In the RELEASE version I see this error on ssh, however, no impact to gui. I upgraded from 11.3u5

I expect that since I am running TrueNAS CORE, not a TrueNAS system hactl shouldn't even be trying to run. perhaps there is a flag issue somewhere...?
Code:
Last login: Wed Oct 28 22:45:47 2020 from 10.1.10.11
FreeBSD 12.2-RC3 7c4ec6ff02c(HEAD) TRUENAS

        TrueNAS (c) 2009-2020, iXsystems, Inc.
        All rights reserved.
        TrueNAS code is released under the modified BSD license with some
        files copyrighted by (c) iXsystems, Inc.

        For more information, documentation, help or support, go here:
        http://truenas.com

Traceback (most recent call last):
  File "/usr/local/sbin/hactl", line 171, in <module>
    main(args.command, args.q)
  File "/usr/local/sbin/hactl", line 17, in main
    client = Client()
  File "/usr/local/lib/python3.8/site-packages/middlewared/client/client.py", line 281, in __init__
    self._ws.connect()
  File "/usr/local/lib/python3.8/site-packages/middlewared/client/client.py", line 124, in connect
    rv = super(WSClient, self).connect()
  File "/usr/local/lib/python3.8/site-packages/ws4py/client/__init__.py", line 216, in connect
    self.sock.connect(self.bind_addr)
PermissionError: [Errno 13] Permission denied

Warning: settings changed through the CLI are not written to
the configuration database and will be reset on reboot.


I noticed just now that hactl is run by the .zlogin from my existing admin user
Code:
if [ -f /usr/local/sbin/hactl ]; then
        /usr/local/sbin/hactl status -q
fi

cat ~/.warning


It must be an artifact of how I setup my ssh admin user, I probably copied from the /root hoom and the .zlogin has this call for hactl which will fail as it is, I expect attempting to listen on a privileged port.

So, for anyone seeing this error when ssh'ing as a non-root user check your .profile/.zlogin/.zshrc for hactl attempting to run, probably should be removed from your profile file. At least that's what I have done.
 
Top