salt-minion not starting on Alpine Linux in lxc container

111 views
Skip to first unread message

Stefan Beke

unread,
Sep 25, 2017, 10:42:28 AM9/25/17
to Salt-users
Trying to start salt-minion on Ubuntu 16.04  in lxc container, ( alpine  3.6.2 inside container ). 

If anyone more knowledgeable could please suggest how to troubleshoot and make it work.

Below is error after command execution, link to strace /usr/bin/salt-minion is in following gist, in case it helps ( https://gist.github.com/i4o/f103d3201707346da4e7f1ac265aa41e ).

root@alpine ~# /usr/bin/salt-minion 

[ERROR   ] [Errno 2] No such file or directory
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/salt/utils/parsers.py", line 213, in parse_args
    mixin_after_parsed_func(self)
  File "/usr/lib/python2.7/site-packages/salt/utils/parsers.py", line 809, in _setup_mp_logging_listener
    self._get_mp_logging_listener_queue()
  File "/usr/lib/python2.7/site-packages/salt/utils/parsers.py", line 803, in _get_mp_logging_listener_queue
    return log.get_multiprocessing_logging_queue()
  File "/usr/lib/python2.7/site-packages/salt/log/setup.py", line 776, in get_multiprocessing_logging_queue
    __MP_LOGGING_QUEUE = multiprocessing.Queue()
  File "/usr/lib/python2.7/multiprocessing/__init__.py", line 218, in Queue
    return Queue(maxsize)
  File "/usr/lib/python2.7/multiprocessing/queues.py", line 63, in __init__
    self._rlock = Lock()
  File "/usr/lib/python2.7/multiprocessing/synchronize.py", line 147, in __init__
    SemLock.__init__(self, SEMAPHORE, 1, 1)
  File "/usr/lib/python2.7/multiprocessing/synchronize.py", line 75, in __init__
    sl = self._semlock = _multiprocessing.SemLock(kind, value, maxvalue)
OSError: [Errno 2] No such file or directory
Usage: salt-minion [options]

salt-minion: error: Error while processing <bound method Minion._setup_mp_logging_listener of <salt.cli.daemons.Minion object at 0x7fe98c3c1e50>>: Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/salt/utils/parsers.py", line 213, in parse_args
    mixin_after_parsed_func(self)
  File "/usr/lib/python2.7/site-packages/salt/utils/parsers.py", line 809, in _setup_mp_logging_listener
    self._get_mp_logging_listener_queue()
  File "/usr/lib/python2.7/site-packages/salt/utils/parsers.py", line 803, in _get_mp_logging_listener_queue
    return log.get_multiprocessing_logging_queue()
  File "/usr/lib/python2.7/site-packages/salt/log/setup.py", line 776, in get_multiprocessing_logging_queue
    __MP_LOGGING_QUEUE = multiprocessing.Queue()
  File "/usr/lib/python2.7/multiprocessing/__init__.py", line 218, in Queue
    return Queue(maxsize)
  File "/usr/lib/python2.7/multiprocessing/queues.py", line 63, in __init__
    self._rlock = Lock()
  File "/usr/lib/python2.7/multiprocessing/synchronize.py", line 147, in __init__
    SemLock.__init__(self, SEMAPHORE, 1, 1)
  File "/usr/lib/python2.7/multiprocessing/synchronize.py", line 75, in __init__
    sl = self._semlock = _multiprocessing.SemLock(kind, value, maxvalue)
OSError: [Errno 2] No such file or directory

root@alpine ~# uname -a
Linux alpine 4.4.0-96-generic #119-Ubuntu SMP Tue Sep 12 14:59:54 UTC 2017 x86_64 Linux


Daniel Wallace

unread,
Sep 25, 2017, 10:43:27 AM9/25/17
to Salt-users
Can you provide your minion config file?
> --
> You received this message because you are subscribed to the Google Groups
> "Salt-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to salt-users+...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/salt-users/7776d2db-fba5-4edc-ae78-699dc14f91f5%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Stefan Beke

unread,
Sep 26, 2017, 6:17:51 PM9/26/17
to Salt-users
Of course:

master: xx.xx.net
id: lxc-alpine
hash_type: sha256

Sensornet NL

unread,
Nov 27, 2017, 11:17:03 AM11/27/17
to Salt-users
Reply all
Reply to author
Forward
0 new messages