Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AMQP 2.1.4 fails on Windows with [Errno 10042] An unknown, invalid, or unsupported option or level was specified in a getsockopt or setsockopt call #135

Closed
cyberMe opened this issue Feb 3, 2017 · 2 comments

Comments

@cyberMe
Copy link

cyberMe commented Feb 3, 2017

Tested on Windows7 x64 and Windows8 x32 with Python 2.7.13, 2.7.8, 3.6.0. RabbitMq 3.6.5.

Stack trace:

Traceback (most recent call last):
  File ".\main.py", line 12, in <module>
    c = main()
  File ".\main.py", line 8, in main
    conn.connect()
  File "C:\Python27\lib\site-packages\amqp\connection.py", line 294, in connect
    self.transport.connect()
  File "C:\Python27\lib\site-packages\amqp\transport.py", line 122, in connect
    self.socket_settings, self.read_timeout, self.write_timeout,
  File "C:\Python27\lib\site-packages\amqp\transport.py", line 174, in _init_socket
    self._set_socket_options(socket_settings)
  File "C:\Python27\lib\site-packages\amqp\transport.py", line 204, in _set_socket_options
    self.sock.setsockopt(SOL_TCP, opt, val)
  File "C:\Python27\lib\socket.py", line 228, in meth
    return getattr(self._sock,name)(*args)
socket.error: [Errno 10042] An unknown, invalid, or unsupported option or level was specified in a getsockopt or setsockopt call

Sample code:

import amqp

def main():
	port = 5672
	host = 'localhost'
	user = 'guest'
	conn = amqp.connection.Connection(host=host, port=port, username=user, password=user)
	conn.connect()
	return conn

if __name__ == '__main__':
	c = main()
	if c.connected:
		c.close()
	del c
andreibacos added a commit to cloudbase/neutron-ci that referenced this issue Mar 8, 2017
andreibacos referenced this issue in cloudbase/nova-ci Mar 8, 2017
andreibacos added a commit to cloudbase/cinder-ci that referenced this issue Mar 8, 2017
andreibacos added a commit to cloudbase/cinder-ci that referenced this issue Mar 8, 2017
andreibacos added a commit to cloudbase/manila-ci that referenced this issue Mar 8, 2017
openstack-gerrit pushed a commit to openstack/openstack that referenced this issue Mar 8, 2017
Project: openstack/requirements  1923578abef936a95b780e41fe5a63c702f85b4b

excludes amqp 2.1.4 and kombu 4.0.2

amqp 2.1.4 breaks support for Windows [1], causing services (nova-compute,
neutron-hyperv-agent, neutron-ovs-agent, etc.) to fail to connect to the
AMQP server.

kombu 4.0.2 requires amqp 2.1.4, which can cause a version conflict. [2]

[1] celery/py-amqp#135
[2] celery/kombu@34eb5c7
[3] Hyper-V nova CI run using amqp 2.1.4 and kombu 4.0.2:
http://64.119.130.115/nova/442914/1/Hyper-V_logs/c2-r22-u32-n01-compute01/nova-compute.log.gz
http://64.119.130.115/nova/442914/1/Hyper-V_logs/c2-r22-u32-n01-compute01/pip_freeze.log.gz

Change-Id: I089a2d231dcee268d9e7048d4be612cd60cd391f
openstack-gerrit pushed a commit to openstack/requirements that referenced this issue Mar 8, 2017
amqp 2.1.4 breaks support for Windows [1], causing services (nova-compute,
neutron-hyperv-agent, neutron-ovs-agent, etc.) to fail to connect to the
AMQP server.

kombu 4.0.2 requires amqp 2.1.4, which can cause a version conflict. [2]

[1] celery/py-amqp#135
[2] celery/kombu@34eb5c7
[3] Hyper-V nova CI run using amqp 2.1.4 and kombu 4.0.2:
http://64.119.130.115/nova/442914/1/Hyper-V_logs/c2-r22-u32-n01-compute01/nova-compute.log.gz
http://64.119.130.115/nova/442914/1/Hyper-V_logs/c2-r22-u32-n01-compute01/pip_freeze.log.gz

Change-Id: I089a2d231dcee268d9e7048d4be612cd60cd391f
openstack-gerrit pushed a commit to openstack/openstack that referenced this issue Mar 8, 2017
Project: openstack/requirements  1923578abef936a95b780e41fe5a63c702f85b4b

excludes amqp 2.1.4 and kombu 4.0.2

amqp 2.1.4 breaks support for Windows [1], causing services (nova-compute,
neutron-hyperv-agent, neutron-ovs-agent, etc.) to fail to connect to the
AMQP server.

kombu 4.0.2 requires amqp 2.1.4, which can cause a version conflict. [2]

[1] celery/py-amqp#135
[2] celery/kombu@34eb5c7
[3] Hyper-V nova CI run using amqp 2.1.4 and kombu 4.0.2:
http://64.119.130.115/nova/442914/1/Hyper-V_logs/c2-r22-u32-n01-compute01/nova-compute.log.gz
http://64.119.130.115/nova/442914/1/Hyper-V_logs/c2-r22-u32-n01-compute01/pip_freeze.log.gz

Change-Id: I089a2d231dcee268d9e7048d4be612cd60cd391f
maratkomarov pushed a commit to Scalr/py-amqp that referenced this issue Sep 19, 2017
@frol
Copy link

frol commented Sep 28, 2017

This seems to be resolved in #136.

@auvipy
Copy link
Member

auvipy commented Jan 15, 2018

thanks frol

@auvipy auvipy closed this as completed Jan 15, 2018
tanaypf9 pushed a commit to tanaypf9/pf9-requirements that referenced this issue May 20, 2024
amqp 2.1.4 breaks support for Windows [1], causing services (nova-compute,
neutron-hyperv-agent, neutron-ovs-agent, etc.)to fail to connect to the
AMQP server.

kombu 4.1.2 requires amqp 2.1.4, which can cause a version conflict. [2]

[1] celery/py-amqp#135
[2] celery/kombu@34eb5c7

Change-Id: I089a2d231dcee268d9e7048d4be612cd60cd391f
tanaypf9 pushed a commit to tanaypf9/pf9-requirements that referenced this issue May 20, 2024
amqp 2.1.4 breaks support for Windows [1], causing services (nova-compute,
neutron-hyperv-agent, neutron-ovs-agent, etc.) to fail to connect to the
AMQP server.

kombu 4.0.2 requires amqp 2.1.4, which can cause a version conflict. [2]

[1] celery/py-amqp#135
[2] celery/kombu@34eb5c7
[3] Hyper-V nova CI run using amqp 2.1.4 and kombu 4.0.2:
http://64.119.130.115/nova/442914/1/Hyper-V_logs/c2-r22-u32-n01-compute01/nova-compute.log.gz
http://64.119.130.115/nova/442914/1/Hyper-V_logs/c2-r22-u32-n01-compute01/pip_freeze.log.gz

Change-Id: I089a2d231dcee268d9e7048d4be612cd60cd391f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants