Ticket #194 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

coherence webserver fails to start on OpenSolaris

Reported by: alfredpeng Assigned to: dev
Priority: major Milestone: 0.6.4
Component: Core Version:
Keywords: Cc:

Description

coherence webserver fails to start on OpenSolaris? with the error below:

File "/usr/lib/python2.4/site-packages/coherence/base.py", line 201, in new

File "/usr/lib/python2.4/site-packages/coherence/base.py", line 307, in setup

File "/usr/lib/python2.4/site-packages/coherence/upnp/core/utils.py", line 165, in get_host_address

File "/usr/lib/python2.4/site-packages/coherence/upnp/core/utils.py", line 119, in get_ip_address

exceptions.OverflowError?: long int too large to convert to int

The attached patch might be the fix.

Attachments

coherence-01-solaris.diff (379 bytes) - added by alfredpeng on 06.03.2009 09:58:21.
patch for OpenSolaris?

Change History

06.03.2009 09:58:21 changed by alfredpeng

  • attachment coherence-01-solaris.diff added.

patch for OpenSolaris?

06.03.2009 12:33:17 changed by dev

  • status changed from new to assigned.

Does the ioctl of OpenSolaris? return the correct interface name, when called with SIOCGIFADDR = 0x8915?

On my old SUN here I see in /usr/include/sys/sockio.h

#define SIOCGIFADDR _IOWR('i', 13, struct ifreq)

09.03.2009 17:38:06 changed by alfredpeng

ioctl can't return the correct interface when SIOCGIFADDR = 0x8915. So I think the patch doesn't work so well.

$ coherence no config file '/export/home/alfred/.coherence' found WARN coherence Mar 10 00:46:44 Coherence UPnP framework version 0.6.2 starting... (coherence/base.py:275) WARN coherence Mar 10 00:46:44 detection of own ip failed, using 127.0.0.1 as own address, functionality will be limited (coherence/base.py:311) WARN webserver Mar 10 00:46:44 WebServer? on port 45507 ready (coherence/base.py:110)

The latest OpenSolaris? still has "#define SIOCGIFADDR _IOWR('i', 13, struct ifreq)".

11.03.2009 18:58:41 changed by dev

(In [1204]) trying to find a more generic solution for detection of the IP address to use, re #194

12.05.2009 23:43:35 changed by dev

  • status changed from assigned to closed.
  • resolution set to fixed.

I assume this is fixed, pls reopen this ticket if more work needs to be done