Salt API is failing to authenticate on stage.1

82 views
Skip to first unread message

Valentin Atanassov

unread,
Nov 17, 2017, 5:14:10 AM11/17/17
to openATTIC Users
I am getting constantly this error:
Salt API is failing to authenticate - try 'systemctl restart salt-master

salt_master:
----------
          ID: salt-api failed
    Function: salt.state
        Name: just.exit
      Result: False
     Comment: No highstate or sls specified, no execution made
     Started: 12:00:56.647572
    Duration: 0.73 ms
     Changes:
 But salt minions are OK:
 salt '*' test.ping
node3:
    True
node2:
    True
node1:
    True
salt:
    True
and also sharedsecret is working:

salt -a sharedsecret '*' test.ping
username: admin
node1:
    True
node2:
    True
node3:
    True
salt:
    True

but when run:
curl -si localhost:8000/login -H "Accept: application/json" -d username='admin'  -d eauth='sharedsecret'

I am getting:
 HTTP/1.1 503 Service Unavailable
Salt Master is not available

but salt-master is up:
salt-master.service - The Salt Master Server
   Loaded: loaded (/usr/lib/systemd/system/salt-master.service; enabled; vendor preset: disabled)
   Active: active (running) since Fri 2017-11-17 11:46:34 CAT; 26min ago
     Docs: man:salt-master(1)
           file:///usr/share/doc/salt/html/contents.html
           https://docs.saltstack.com/en/latest/contents.html
 Main PID: 13373 (salt-master)
    Tasks: 41
   CGroup: /system.slice/salt-master.service
           ├─13373 /usr/bin/python /usr/bin/salt-master
           ├─13378 /usr/bin/python /usr/bin/salt-master
           ├─13381 /usr/bin/python /usr/bin/salt-master
           ├─13384 /usr/bin/python /usr/bin/salt-master
           ├─13385 /usr/bin/python /usr/bin/salt-master
           ├─13386 /usr/bin/python /usr/bin/salt-master
           ├─13387 /usr/bin/python /usr/bin/salt-master
           ├─13388 /usr/bin/python /usr/bin/salt-master
           ├─13389 /usr/bin/python /usr/bin/salt-master
           ├─13396 /usr/bin/python /usr/bin/salt-master
           ├─13397 /usr/bin/python /usr/bin/salt-master
           ├─13398 /usr/bin/python /usr/bin/salt-master
           └─13399 /usr/bin/python /usr/bin/salt-master

Nov 17 11:46:34 salt systemd[1]: Started The Salt Master Server.

Any help will be appreciated.




Valentin Atanassov

unread,
Nov 17, 2017, 5:38:06 AM11/17/17
to openATTIC Users
Never mind. Sort it by simply deleting /etc/salt/master.d/sharedsecret.conf

Lenz Grimmer

unread,
Nov 17, 2017, 5:46:09 AM11/17/17
to openatt...@googlegroups.com
Hi Valentin,

On 11/17/2017 11:38 AM, Valentin Atanassov wrote:

> Never mind. Sort it by simply deleting /etc/salt/master.d/sharedsecret.conf

Glad you were able to sort it out :)

For Salt/DeepSea-related issues, it's probably better to discuss them on
the project's dedicated mailing list - there you have a higher chance of
getting help from the developers actually working on the code:

http://lists.suse.com/mailman/listinfo/deepsea-users

Lenz

--
SUSE Linux GmbH - Maxfeldstr. 5 - 90409 Nuernberg (Germany)
GF:Felix Imendörffer,Jane Smithard,Graham Norton,HRB 21284 (AG Nürnberg)

signature.asc

Valentin Atanassov

unread,
Nov 17, 2017, 9:49:47 AM11/17/17
to openATTIC Users
Thanks, Lenz. I will ask only openattic questions than.
Reply all
Reply to author
Forward
0 new messages