[Libwebsockets] [libwebsockets] #74: ERROR opening socket on raspberry pi

Mike M lws14 at mordent.com
Thu Jun 26 13:17:11 CEST 2014


Yeah, I ran into this just last week.  It is definitely IPv6.  I had to 
disable it in my build (we don't use it on our device) to get things 
working again.  I found this out by turning on logging in the lws api.

-m

On 06/26/2014 05:32 AM, Graham Newton wrote:
> I remember coming across this this and from memory it is an ipv6 
> issue.  From what I remember the solution is to either disable IPv6 in 
> the libwebsockets compilation or enable IPv6 on the raspberry pi.
> I have libwebsockets running on my rpi and it works great.
> Regards
> Graham
> On 25/06/14 21:39, Trac wrote:
>> #74: ERROR opening socket on raspberry pi
>> ------------------------------------+-----------------
>>   Reporter:  DonWasabi               |      Owner:
>>       Type:  defect                  |     Status:  new
>>   Priority:  major                   |  Milestone:
>> Component:  libwebsocket test apps  |    Version:
>>   Keywords:                          |
>> ------------------------------------+-----------------
>>   hi :),
>>   the libwebsockets-test-server keeps telling me this
>>
>>   pi at raspberrypi ~/libwebsockets/build/bin $ ./libwebsockets-test-server
>>   lwsts[3235]: libwebsockets test server - (C) Copyright 2010-2013 Andy
>>   Green<andy at warmcat.com>  - licensed under LGPL2.1
>>   lwsts[3235]: Initial logging level 7
>>   lwsts[3235]: Library version: 1.3 dfca3ab
>>   lwsts[3235]: IPV6 compiled in and enabled
>>   lwsts[3235]: libev support not compiled in
>>   lwsts[3235]:  static allocation: 4468 + (12 x 1024 fds) = 16756 bytes
>>   lwsts[3235]:  canonical_hostname = raspberrypi
>>   lwsts[3235]:  per-conn mem: 128 + 1554 headers + protocol rx buf
>>   lwsts[3235]:  Compiled with OpenSSL support
>>   lwsts[3235]:  Using non-SSL mode
>>   lwsts[3235]: ERROR opening socket
>>   lwsts[3235]: libwebsocket_context_destroy
>>   lwsts[3235]: mirror protocol cleaning up
>>   lwsts[3235]: libwebsocket init failed
>>
>>   even after a fresh install with 2014-01-07-wheezy-raspbian.
>>
>>   Here is the list of comands i did directly after the install:
>>
>>   sudo apt-get update
>>   sudo apt-get upgrade
>>   sudo reboot
>>   sudo apt-get install cmake git libssl-dev
>>   sudo git clone git://git.warmcat.com/libwebsockets
>>   cd libwebsockets
>>   mkdir build
>>   cd build
>>   sudo cmake ..
>>   sudo make
>>   sudo make install
>>
>>   sudo ln -s /usr/local/lib/libwebsockets.so /usr/lib/libwebsockets.so
>>   sudo ln -s /usr/local/lib/libwebsockets.so.4.0.0
>>   /usr/lib/libwebsockets.so.4.0.0
>>
>>
>>   Did i do anything wrong or is it a bug? I would really enjoy using your
>>   lib but i can't get it working.
>>
>>   greetings
>>
>> --
>> Ticket URL:<http://libwebsockets.org/trac/libwebsockets/ticket/74>
>> libwebsockets<http://libwebsockets.org>
>> libwebsockets C library
>> _______________________________________________
>> Libwebsockets mailing list
>> Libwebsockets at ml.libwebsockets.org
>> http://ml.libwebsockets.org/mailman/listinfo/libwebsockets
>
> -- 
> Graham Newton
> Senior Software Engineer
> ------------------------------------------------------------------------
> Peavey Digital Research
> A Division of Peavey Electronics Corporation
>
>
> Phone 	+44 1865 734397
> Direct 	+44 1865 734397
> Email 	gnewton at peavey-eu.com
> Web 	www.peaveycommercialaudio.com 
> <http://www.peaveycommercialaudio.com> - mm.peavey.com 
> <http://mm.peavey.com> - www.crestaudio.com 
> <http://www.crestaudio.com> - aa.peavey.com <http://aa.peavey.com> - 
> www.peaveyoxford.com <http://www.peaveyoxford.com>
>
>
> *PEAVEY COMMERCIAL AUDIO* - Great Folds Road, Corby, Northamptonshire, 
> NN18 9ET UK
> *PEAVEY DIGITAL RESEARCH* - 6 Elm Place, Eynsham, Oxfordshire OX29 4BD UK
> *PEAVEY ITALIA* - Via P.La Torre 21, Zona Ind.le Cerretano, 60022 
> Castelfidardo An, Italy
> *PEAVEY CHINA* - 1F Taiping Yaoye, 3 Gongye Wu Lu, Shekou, Shenzhen 
> China 518067
> *PEAVEY ELECTRONICS CORPORATION* - 5022 Hartley Peavey Drive, 
> Meridian, MS 39305 USA
>
>
> Peavey Electronics Limited is a registered company in England & Wales, 
> Company Registration No.: 01249126
> Registered office: GREAT FOLDS ROAD OAKLEY HAY CORBY NORTHAMPTONSHIRE. 
> NN18 9ET
>
>
>
> _______________________________________________
> Libwebsockets mailing list
> Libwebsockets at ml.libwebsockets.org
> http://ml.libwebsockets.org/mailman/listinfo/libwebsockets

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://libwebsockets.org/pipermail/libwebsockets/attachments/20140626/58cf1ea6/attachment-0001.html>


More information about the Libwebsockets mailing list