Bug#1021317: salt-master: Fails to start with "zmq.error.ZMQError: Invalid argument"

2022-12-18 Thread Stijn Segers

Hi!

Applying the fix linked in https://github.com/saltstack/salt/pull/62119 
resolves the ZMQ error, but unmasks another one - the 
salt.transport.base module. The base module is not part of 3004.1 (or 
.2). It was introduced with version 3005. Pulling the base.py file from 
https://github.com/saltstack/salt/tree/v3005/salt/transport doesn't 
solve it since Salt will start complaining about a missing 
'ZeroMQPubServerChannel' attribute.


I've checked the Debian package and it contains a lot of patches, so it 
looks like the Debian version is  heavily modified (diffing the 
upstream 3004.1 zeromq.py code against the Debian package zeromq.py 
confirms this).






dec 15 22:32:25 localhost salt-master[69709]: self.master.start()
dec 15 22:32:25 localhost salt-master[69709]: File 
"/usr/lib/python3/dist-packages/salt/master.py", line 711, in start
dec 15 22:32:25 localhost salt-master[69709]: chan = 
salt.transport.server.PubServerChannel.factory(opts)
dec 15 22:32:25 localhost salt-master[69709]: File 
"/usr/lib/python3/dist-packages/salt/transport/server.py", line 76, in 
factory
dec 15 22:32:25 localhost salt-master[69709]: import 
salt.transport.zeromq
dec 15 22:32:25 localhost salt-master[69709]: File 
"/usr/lib/python3/dist-packages/salt/transport/zeromq.py", line 102, in 

dec 15 22:32:25 localhost salt-master[69709]: class 
PublishClient(salt.transport.base.PublishClient):
dec 15 22:32:25 localhost salt-master[69709]: AttributeError: module 
'salt.transport' has no attribute 'base'


Cheers



Bug#1021317: salt-master: Fails to start with "zmq.error.ZMQError: Invalid argument"

2022-11-02 Thread Benoit Friry

It can be linked to https://github.com/saltstack/salt/issues/62092.
I have the same issue, and python3-zmq on my system is 24.0.1-1.

Bug#1021317: salt-master: Fails to start with "zmq.error.ZMQError: Invalid argument"

2022-10-05 Thread Vincas Dargis
Package: salt-master
Version: 3004.1+dfsg-2
Severity: grave
Justification: renders package unusable

Dear Maintainer,

salt-master fails to start.

journalctl shows:

```
spal. 05 20:47:04 salt-master[11925]: Traceback (most recent call last):
spal. 05 20:47:04 salt-master[11925]:   File 
"/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
spal. 05 20:47:04 salt-master[11925]: self.run()
spal. 05 20:47:04 salt-master[11925]:   File 
"/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
spal. 05 20:47:04 salt-master[11925]: self._target(*self._args, 
**self._kwargs)
spal. 05 20:47:04 salt-master[11925]:   File 
"/usr/lib/python3/dist-packages/salt/transport/zeromq.py", line 899, in 
_publish_daemon
spal. 05 20:47:04 salt-master[11925]: pub_sock.setsockopt(zmq.HWM, 
self.opts.get("pub_hwm", 1000))
spal. 05 20:47:04 salt-master[11925]:   File "zmq/backend/cython/socket.pyx", 
line 453, in zmq.backend.cython.socket.Socket.set
spal. 05 20:47:04 salt-master[11925]:   File "zmq/backend/cython/socket.pyx", 
line 285, in zmq.backend.cython.socket._setsockopt
spal. 05 20:47:04 salt-master[11925]:   File "zmq/backend/cython/checkrc.pxd", 
line 28, in zmq.backend.cython.checkrc._check_rc
spal. 05 20:47:04 salt-master[11925]: zmq.error.ZMQError: Invalid argument
```


-- System Information:
Debian Release: bookworm/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'unstable'), (1, 
'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.19.0-2-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=lt_LT.UTF-8, LC_CTYPE=lt_LT.UTF-8 (charmap=UTF-8), LANGUAGE=lt
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages salt-master depends on:
ii  adduser3.129
ii  init-system-helpers1.65.2
ii  python33.10.6-1
ii  python3-pycryptodome   3.11.0+dfsg1-3+b1
ii  python3-systemd235-1
ii  python3-zmq24.0.1-1
ii  salt-common3004.1+dfsg-2
ii  sysvinit-utils [lsb-base]  3.05-6

Versions of packages salt-master recommends:
ii  python3-pygit2  1.10.1-2

salt-master suggests no packages.

-- no debconf information