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

Issue running on ubuntu #10

Closed
ghost opened this issue Mar 15, 2014 · 12 comments
Closed

Issue running on ubuntu #10

ghost opened this issue Mar 15, 2014 · 12 comments

Comments

@ghost
Copy link

ghost commented Mar 15, 2014

Hi
So I had problems getting libSodium to work as it kept throwing
error while loading shared libraries: libsodium.so.4 when I tried to run seed.js

I eventually worked around this by doing a separate sodium standard build that put the file into /usr/local/lib

But now I am recieving
CS3a failed to load { [Error: Cannot find module './tobuffer'] code: 'MODULE_NOT_FOUND' }

Is there a file missing from the CS3a module?

Thanks

@quartzjer
Copy link
Member

Can you still get a stack trace for both? It should fallback gracefully in either case, I'll try to reproduce and make sure :)

On Mar 14, 2014, at 7:06 PM, tearmann notifications@github.com wrote:

Hi
So I had problems getting libSodium to work as it kept throwing
error while loading shared libraries: libsodium.so.4 when I tried to run seed.js

I eventually worked around this by doing a separate sodium standard build that put the file into /usr/local/lib

But now I am recieving

CS3a failed to load {
[Error: Cannot find module './tobuffer']
code: 'MODULE_NOT_FOUND' }

Is there a file missing from the CS3a module?

Thanks


Reply to this email directly or view it on GitHub.

@ghost
Copy link
Author

ghost commented Mar 15, 2014

OK so it's a bug with sodium
The package in npm has a bug where the filename is toBuffer.js instead of tobuffer.js required in the code.
I will raise a pull with them and reference it here.
BTW I ran the code again with the -v option got more message info but the error was still the same as I posted previously. Do you want me to raise an issue for better error logging?

@quartzjer
Copy link
Member

can you run it w/ the -v and post the full output on this issue? I can probably fix it here and add better logging too :)

@ghost
Copy link
Author

ghost commented Mar 15, 2014

CS3a failed to load { [Error: Cannot find module './tobuffer'] code: 'MODULE_NOT_FOUND' }
adding new path 0 {"type":"ipv4","ip":"208.68.164.253","port":42424}
89a4cbc6c27eb913c1bcaf06bac2d8b872c7cbef626b35b6d7eaf993590d37de ipv4 {"type":"ipv4","ip":"208.68.164.253","port":42424}
adding new path 1 {"type":"ipv6","ip":"2605:da00:5222:5269:230:48ff:fe35:6572","port":42424}
89a4cbc6c27eb913c1bcaf06bac2d8b872c7cbef626b35b6d7eaf993590d37de ipv6 {"type":"ipv6","ip":"2605:da00:5222:5269:230:48ff:fe35:6572","port":42424}
adding new path 2 {"type":"http","http":"http://208.68.164.253:42424"}
89a4cbc6c27eb913c1bcaf06bac2d8b872c7cbef626b35b6d7eaf993590d37de http {"type":"http","http":"http://208.68.164.253:42424"}
adding new path 0 {"type":"ipv4","ip":"208.126.199.195","port":42424}
f50f423ce7f94fe98cdd09268c7e57001aed300b23020840a84a881c76739471 ipv4 {"type":"ipv4","ip":"208.126.199.195","port":42424}
adding new path 1 {"type":"ipv6","ip":"2001:470:c0a6:3::10","port":42424}
f50f423ce7f94fe98cdd09268c7e57001aed300b23020840a84a881c76739471 ipv6 {"type":"ipv6","ip":"2001:470:c0a6:3::10","port":42424}
adding new path 2 {"type":"http","http":"http://208.126.199.195:42424"}
f50f423ce7f94fe98cdd09268c7e57001aed300b23020840a84a881c76739471 http {"type":"http","http":"http://208.126.199.195:42424"}
<<<< Sat Mar 15 2014 23:04:46 GMT+0000 (GMT) 186 lan,,, undefined
new unreliable channel 89a4cbc6c27eb913c1bcaf06bac2d8b872c7cbef626b35b6d7eaf993590d37de link 2
SEND link {"seed":true,"see":[],"type":"link","c":2}
alive failthrough undefined []
<<<< Sat Mar 15 2014 23:04:46 GMT+0000 (GMT) 1094 ipv4,208.68.164.253,42424, 89a4cbc6c27eb913c1bcaf06bac2d8b872c7cbef626b35b6d7eaf993590d37de
<<<< Sat Mar 15 2014 23:04:46 GMT+0000 (GMT) 1094 ipv6,2605:da00:5222:5269:230:48ff:fe35:6572,42424, 89a4cbc6c27eb913c1bcaf06bac2d8b872c7cbef626b35b6d7eaf993590d37de
<<<< Sat Mar 15 2014 23:04:46 GMT+0000 (GMT) 1094 http,,, 89a4cbc6c27eb913c1bcaf06bac2d8b872c7cbef626b35b6d7eaf993590d37de
seek starting with []
SEEK LOOP []
new unreliable channel f50f423ce7f94fe98cdd09268c7e57001aed300b23020840a84a881c76739471 link 2
SEND link {"seed":true,"see":[],"type":"link","c":2}
alive failthrough undefined []
<<<< Sat Mar 15 2014 23:04:46 GMT+0000 (GMT) 1094 ipv4,208.126.199.195,42424, f50f423ce7f94fe98cdd09268c7e57001aed300b23020840a84a881c76739471
<<<< Sat Mar 15 2014 23:04:46 GMT+0000 (GMT) 1094 ipv6,2001:470:c0a6:3::10,42424, f50f423ce7f94fe98cdd09268c7e57001aed300b23020840a84a881c76739471
<<<< Sat Mar 15 2014 23:04:46 GMT+0000 (GMT) 1094 http,,, f50f423ce7f94fe98cdd09268c7e57001aed300b23020840a84a881c76739471
seek starting with []
SEEK LOOP []

Sat Mar 15 2014 23:04:46 GMT+0000 (GMT) 186 undefined undefined ipv4,172.17.42.1,42424,
Sat Mar 15 2014 23:04:46 GMT+0000 (GMT) 186 undefined undefined ipv4,192.168.0.5,42424,
Sat Mar 15 2014 23:04:46 GMT+0000 (GMT) 186 undefined undefined ipv4,192.168.0.5,42424,
Sat Mar 15 2014 23:04:47 GMT+0000 (GMT) 1094 undefined undefined ipv4,208.126.199.195,42424,
couldn't decode open { err:
[TypeError: Property 'length' of object 0��"0
� _�H��
����\00����\000��
����\00�e��z4r�ܥ�Oa7|>�Ma�
==A���v�_Q�k���WO8�ʋmV���p����7���?Uٽ�bZ��
�����y�ôdidž�yY������[��e\H����hH��E7NsJ�κ�7��Zw���/���-����\�=��[l�t�q�_�e����|b��.�䀛-���;} ��t٨��_BC�<�0q����<�6�Si��_�jE��[�H e.T�\��-���| z���"Z�B2s�P�T�F$4A�jR��_�^̧�ʭ��7(o��o���\00� is not a function] } Sat Mar 15 2014 23:04:47 GMT+0000 (GMT) 1094 undefined undefined ipv4,208.68.164.253,42424, couldn't decode open { err: [TypeError: Property 'length' of object 0��"0 � _�H�� ����\00����\000�� ����\00��a�-�e�k����y�D���33����ωͩ�/E���J�m��!\���,R3�{�{]6��e!�����Ή�@��L����/w1P�ט@c�v�Ϻ�q���2K�(��(
|l����z�\00��+��6��7� �G�bG�� !Y��SVb�s�f�+����0"� �b��FWR���X�Ic�����Ƒ����V������l{@��e�접�&���A��7��DXV��^��-5���JF�!�/�)��M��wM��ӏ=��ֹ ���=K���[��Y���\00� is not a function] } SEND link {"seed":true,"see":[],"type":"link","c":2} alive failthrough 1394924686650 [] <<<< Sat Mar 15 2014 23:04:47 GMT+0000 (GMT) 1094 ipv4,208.68.164.253,42424, 89a4cbc6c27eb913c1bcaf06bac2d8b872c7cbef626b35b6d7eaf993590d37de <<<< Sat Mar 15 2014 23:04:47 GMT+0000 (GMT) 1094 ipv6,2605:da00:5222:5269:230:48ff:fe35:6572,42424, 89a4cbc6c27eb913c1bcaf06bac2d8b872c7cbef626b35b6d7eaf993590d37de <<<< Sat Mar 15 2014 23:04:47 GMT+0000 (GMT) 1094 http,,, 89a4cbc6c27eb913c1bcaf06bac2d8b872c7cbef626b35b6d7eaf993590d37de SEND link {"seed":true,"see":[],"type":"link","c":2} alive failthrough 1394924686751 [] <<<< Sat Mar 15 2014 23:04:47 GMT+0000 (GMT) 1094 ipv4,208.126.199.195,42424, f50f423ce7f94fe98cdd09268c7e57001aed300b23020840a84a881c76739471 <<<< Sat Mar 15 2014 23:04:47 GMT+0000 (GMT) 1094 ipv6,2001:470:c0a6:3::10,42424, f50f423ce7f94fe98cdd09268c7e57001aed300b23020840a84a881c76739471 <<<< Sat Mar 15 2014 23:04:47 GMT+0000 (GMT) 1094 http,,, f50f423ce7f94fe98cdd09268c7e57001aed300b23020840a84a881c76739471 Sat Mar 15 2014 23:04:47 GMT+0000 (GMT) 1094 undefined undefined http,,, couldn't decode open { err: [TypeError: Property 'length' of object 0��"0 � *�H�� ����\00����\000�� ����\00�e��z4r�ܥ�Oa~7|>�Ma� ==A���v�_Q�k���WO8�ʋmV���p����7���?Uٽ�bZ��~������y�ôdidž�yY������[��e\H����hH��E7NsJ�κ�7��Zw���/���-����\�=��[l�t�q�_�e����|b��.�䀛-���;} ��t٨��_BC�<�0q����<�6�Si��_�jE��[�H e.T�\��-���| z���"Z�B2s�P�T�F$4A�jR��_�^̧�ʭ��7(o��o���\00� is not a function] }
Sat Mar 15 2014 23:04:47 GMT+0000 (GMT) 255 undefined undefined http,,,
unknown line received 6b6e6c41b190f582e39f835b75449621 {"type":"http","http":"http://208.126.199.195:42424","json":{"type":"http","http":"http://208.126.199.195:42424"},"priority":0,"lastOut":1394924687753}
Sat Mar 15 2014 23:04:47 GMT+0000 (GMT) 259 undefined undefined ipv4,208.126.199.195,42424,
unknown line received 6b6e6c41b190f582e39f835b75449621 {"type":"ipv4","ip":"208.126.199.195","port":42424}
Sat Mar 15 2014 23:04:47 GMT+0000 (GMT) 1094 undefined undefined ipv4,208.68.164.253,42424,
couldn't decode open { err:
[TypeError: Property 'length' of object 0��"0
� _�H��
����\00����\000��
����\00��a�-�e�k����y�D���33����ωͩ�/E���J�m��!\���,R3�{�{]6��e!�����Ή�@��L����/w1P�ט@c�v�~Ϻ�q���2K�(��( |l����z�\00��+��6��7� �G�bG�� !Y��SVb�s�f�+����0"�
�b��FWR���X�Ic�����Ƒ����V������l{@��e�접�&���A��7��DXV��^��-5���JF�!�/�)��M��wM��ӏ=��ֹ ���=K���[��Y���\00� is not a function] }
Sat Mar 15 2014 23:04:48 GMT+0000 (GMT) 1094 undefined undefined http,,,
couldn't decode open { err:
[TypeError: Property 'length' of object 0��"0
� *�H��
����\00����\000��
����\00�e��z4r�ܥ�Oa
7|>�Ma�
==A���v�_Q�k���WO8�ʋmV���p����7���?Uٽ�bZ�������y�ôdidž�yY������[��e\H����hH��E7NsJ�κ�7��Zw���/���-����\�=��[l�t�q�_�e����|b��.�䀛-���;} ��t٨��_BC�<�0q����<�6�Si��_�jE��[�H e.T�\��-���| z���"Z�B2s�P�T�F$4A�jR��_�^̧�ʭ��7(o��o���\00� is not a function] } Sat Mar 15 2014 23:04:48 GMT+0000 (GMT) 1094 undefined undefined ipv4,208.126.199.195,42424, couldn't decode open { err: [TypeError: Property 'length' of object 0��"0 � _�H�� ����\00����\000�� ����\00�e��z4r�ܥ�Oa~7|>�Ma� ==A���v�_Q�k���WO8�ʋmV���p����7���?Uٽ�bZ��~������y�ôdidž�yY������[��e\H����hH��E7NsJ�κ�7��Zw���/���-����\�=��[l�t�q�_�e����|b��.�䀛-���;} ��t٨��_BC�<�0q����<�6�Si��_�jE��[�H e.T�\��-���| z���"Z�B2s�P�T�F$4A�jR��_�^̧�ʭ��7(o��o���\00� is not a function] }
Sat Mar 15 2014 23:04:48 GMT+0000 (GMT) 257 undefined undefined ipv4,208.68.164.253,42424,
unknown line received e2a461e234578b0f63431436e94a856a {"type":"ipv4","ip":"208.68.164.253","port":42424}
Sat Mar 15 2014 23:04:48 GMT+0000 (GMT) 1094 undefined undefined http,,,
couldn't decode open { err:
[TypeError: Property 'length' of object 0��"0
� _�H��
����\00����\000��
����\00��a�-�e�k����y�D���33����ωͩ�/E���J�m��!\���,R3�{�{]6��e!�����Ή�@��L����/w1P�ט@c�v�~Ϻ�q���2K�(��( |l����z�\00��+��6��7� �G�bG�� !Y��SVb�s�f�+����0"�
�b��FWR���X�Ic�����Ƒ����V������l{@��e�접�&���A��7��DXV��^��-5���JF�!�/�)��M��wM��ӏ=��ֹ ���=K���[��Y���\00� is not a function] }
Sat Mar 15 2014 23:04:48 GMT+0000 (GMT) 253 undefined undefined http,,,
unknown line received e2a461e234578b0f63431436e94a856a {"type":"http","http":"http://208.68.164.253:42424","json":{"type":"http","http":"http://208.68.164.253:42424"},"priority":0,"lastOut":1394924687651}
Sat Mar 15 2014 23:04:48 GMT+0000 (GMT) 1094 undefined undefined http,,,
couldn't decode open { err:
[TypeError: Property 'length' of object 0��"0
� *�H��
����\00����\000��
����\00��a�-�e�k����y�D���33����ωͩ�/E���J�m��!\���,R3�{�{]6��e!�����Ή�@��L����/w1P�ט@c�v�~Ϻ�q���2K�(��( |l����z�\00��+��6��7� �G�bG�� !Y��SVb�s�f�+����0"�
�b��FWR���X�Ic�����Ƒ����V������l{@��e�접�&���A��7��DXV��^��-5���JF�!�/�)��M��wM��ӏ=��ֹ ���=K���[��Y���\00� is not a function] }
SEND link {"seed":true,"see":[],"type":"link","c":2}
alive failthrough 1394924686650 []
<<<< Sat Mar 15 2014 23:04:49 GMT+0000 (GMT) 1094 ipv4,208.68.164.253,42424, 89a4cbc6c27eb913c1bcaf06bac2d8b872c7cbef626b35b6d7eaf993590d37de
<<<< Sat Mar 15 2014 23:04:49 GMT+0000 (GMT) 1094 ipv6,2605:da00:5222:5269:230:48ff:fe35:6572,42424, 89a4cbc6c27eb913c1bcaf06bac2d8b872c7cbef626b35b6d7eaf993590d37de
<<<< Sat Mar 15 2014 23:04:49 GMT+0000 (GMT) 1094 http,,, 89a4cbc6c27eb913c1bcaf06bac2d8b872c7cbef626b35b6d7eaf993590d37de
SEND link {"seed":true,"see":[],"type":"link","c":2}
alive failthrough 1394924686751 []
<<<< Sat Mar 15 2014 23:04:49 GMT+0000 (GMT) 1094 ipv4,208.126.199.195,42424, f50f423ce7f94fe98cdd09268c7e57001aed300b23020840a84a881c76739471
<<<< Sat Mar 15 2014 23:04:49 GMT+0000 (GMT) 1094 ipv6,2001:470:c0a6:3::10,42424, f50f423ce7f94fe98cdd09268c7e57001aed300b23020840a84a881c76739471
<<<< Sat Mar 15 2014 23:04:49 GMT+0000 (GMT) 1094 http,,, f50f423ce7f94fe98cdd09268c7e57001aed300b23020840a84a881c76739471
Sat Mar 15 2014 23:04:49 GMT+0000 (GMT) 1094 undefined undefined http,,,
couldn't decode open { err:
[TypeError: Property 'length' of object 0��"0
� *�H��
����\00����\000��
����\00��a�-�e�k����y�D���33����ωͩ�/E���J�m��!\���,R3�{�{]6��e!�����Ή�@��L����/w1P�ט@c�v�~Ϻ�q���2K�(��( |l����z�\00��+��6��7� �G�bG�� !Y��SVb�s�f�+����0"�
�b��FWR���X�Ic�����Ƒ����V������l{@��e�접�&���A��7��DXV��^��-5���JF�!�/�)��M��wM��ӏ=��ֹ ���=K���[��Y���\00� is not a function] }
Sat Mar 15 2014 23:04:50 GMT+0000 (GMT) 1094 undefined undefined ipv4,208.68.164.253,42424,
couldn't decode open { err:
[TypeError: Property 'length' of object 0��"0
� *�H��
����\00����\000��
����\00��a�-�e�k����y�D���33����ωͩ�/E���J�m��!\���,R3�{�{]6��e!�����Ή�@��L����/w1P�ט@c�v�~Ϻ�q���2K�(��( |l����z�\00��+��6��7� �G�bG�� !Y��SVb�s�f�+����0"�
�b��FWR���X�Ic�����Ƒ����V������l{@��e�접�&���A��7��DXV��^��-5���JF�!�/�)��M��wM��ӏ=��ֹ ���=K���[��Y���\00� is not a function] }
Sat Mar 15 2014 23:04:50 GMT+0000 (GMT) 1094 undefined undefined ipv4,208.126.199.195,42424,
couldn't decode open { err:
[TypeError: Property 'length' of object 0��"0
� *�H��
����\00����\000��
����\00�e��z4r�ܥ�Oa
7|>�Ma�
==A���v�_Q�k���WO8�ʋmV���p����7���?Uٽ�bZ�������y�ôdidž�yY������[��e\H����hH��E7NsJ�κ�7��Zw���/���-����\�=��[l�t�q�_�e����|b��.�䀛-���;} ��t٨��_BC�<�0q����<�6�Si��_�jE��[�H e.T�\��-���| z���"Z�B2s�P�T�F$4A�jR��_�^̧�ʭ��7(o��o���\00� is not a function] } Sat Mar 15 2014 23:04:50 GMT+0000 (GMT) 1094 undefined undefined http,,, couldn't decode open { err: [TypeError: Property 'length' of object 0��"0 � _�H�� ����\00����\000�� ����\00�e��z4r�ܥ�Oa~7|>�Ma� ==A���v�_Q�k���WO8�ʋmV���p����7���?Uٽ�bZ��~������y�ôdidž�yY������[��e\H����hH��E7NsJ�κ�7��Zw���/���-����\�=��[l�t�q�_�e����|b��.�䀛-���;} ��t٨��_BC�<�0q����<�6�Si��_�jE��[�H e.T�\��-���| z���"Z�B2s�P�T�F$4A�jR��_�^̧�ʭ��7(o��o���\00� is not a function] }
SEND link {"seed":true,"see":[],"type":"link","c":2}
alive failthrough 1394924686650 []
<<<< Sat Mar 15 2014 23:04:53 GMT+0000 (GMT) 1094 ipv4,208.68.164.253,42424, 89a4cbc6c27eb913c1bcaf06bac2d8b872c7cbef626b35b6d7eaf993590d37de
<<<< Sat Mar 15 2014 23:04:53 GMT+0000 (GMT) 1094 ipv6,2605:da00:5222:5269:230:48ff:fe35:6572,42424, 89a4cbc6c27eb913c1bcaf06bac2d8b872c7cbef626b35b6d7eaf993590d37de
<<<< Sat Mar 15 2014 23:04:53 GMT+0000 (GMT) 1094 http,,, 89a4cbc6c27eb913c1bcaf06bac2d8b872c7cbef626b35b6d7eaf993590d37de
seek starting with []
SEEK LOOP []
SEND link {"seed":true,"see":[],"type":"link","c":2}
alive failthrough 1394924686751 []
<<<< Sat Mar 15 2014 23:04:53 GMT+0000 (GMT) 1094 ipv4,208.126.199.195,42424, f50f423ce7f94fe98cdd09268c7e57001aed300b23020840a84a881c76739471
<<<< Sat Mar 15 2014 23:04:53 GMT+0000 (GMT) 1094 ipv6,2001:470:c0a6:3::10,42424, f50f423ce7f94fe98cdd09268c7e57001aed300b23020840a84a881c76739471
<<<< Sat Mar 15 2014 23:04:53 GMT+0000 (GMT) 1094 http,,, f50f423ce7f94fe98cdd09268c7e57001aed300b23020840a84a881c76739471
seek starting with []
SEEK LOOP []
Sat Mar 15 2014 23:04:54 GMT+0000 (GMT) 1094 undefined undefined ipv4,208.68.164.253,42424,
couldn't decode open { err:
[TypeError: Property 'length' of object 0��"0
� _�H��
����\00����\000��
����\00��a�-�e�k����y�D���33����ωͩ�/E���J�m��!\���,R3�{�{]6��e!�����Ή�@��L����/w1P�ט@c�v�~Ϻ�q���2K�(��( |l����z�\00��+��6��7� �G�bG�� !Y��SVb�s�f�+����0"�
�b��FWR���X�Ic�����Ƒ����V������l{@��e�접�&���A��7��DXV��^��-5���JF�!�/�)��M��wM��ӏ=��ֹ ���=K���[��Y���\00� is not a function] }
Sat Mar 15 2014 23:04:54 GMT+0000 (GMT) 1094 undefined undefined http,,,
couldn't decode open { err:
[TypeError: Property 'length' of object 0��"0
� *�H��
����\00����\000��
����\00��a�-�e�k����y�D���33����ωͩ�/E���J�m��!\���,R3�{�{]6��e!�����Ή�@��L����/w1P�ט@c�v�~Ϻ�q���2K�(��( |l����z�\00��+��6��7� �G�bG�� !Y��SVb�s�f�+����0"�
�b��FWR���X�Ic�����Ƒ����V������l{@��e�접�&���A��7��DXV��^��-5���JF�!�/�)��M��wM��ӏ=��ֹ ���=K���[��Y���\00� is not a function] }
Sat Mar 15 2014 23:04:54 GMT+0000 (GMT) 1094 undefined undefined http,,,
couldn't decode open { err:
[TypeError: Property 'length' of object 0��"0
� *�H��
����\00����\000��
����\00�e��z4r�ܥ�Oa
7|>�Ma�
==A���v�_Q�k���WO8�ʋmV���p����7���?Uٽ�bZ��~������y�ôdidž�yY������[��e\H����hH��E7NsJ�κ�7��Zw���/���-����\�=��[l�t�q�_�e����|b��.�䀛-���;} ��t٨��_BC�<�0q����<�6�Si��_�jE��[�H e.T�\��-���| z���"Z�B2s�P�T�F$4A�jR��_�^̧�ʭ��7(o��o���\00� is not a function] } Sat Mar 15 2014 23:04:54 GMT+0000 (GMT) 1094 undefined undefined ipv4,208.126.199.195,42424, couldn't decode open { err: [TypeError: Property 'length' of object 0��"0 � _�H�� ����\00����\000�� ����\00�e��z4r�ܥ�Oa~7|>�Ma� ==A���v�_Q�k���WO8�ʋmV���p����7���?Uٽ�bZ��~������y�ôdidž�yY������[��e\H����hH��E7NsJ�κ�7��Zw���/���-����\�=��[l�t�q�_�e����|b��.�䀛-���;} ��t٨��_BC�<�0q����<�6�Si��_�jE��[�H e.T�\��-���| z���"Z�B2s�P�T�F$4A�jR��_�^̧�ʭ��7(o��o���\00� is not a function] }

@quartzjer
Copy link
Member

Can you try pulling from the node-telehash repo and npm update to make sure everything is updated? I can't reproduce the length error, and am not sure if it was the few fixes in the last day or so?

@ghost
Copy link
Author

ghost commented Mar 16, 2014

So that still gives me the same ./tobuffer error but the length error is gone and I get
connected to 2 mesh seed peers.
I think we are done here if issues 9 on sodium closes :)

CS3a failed to load { [Error: Cannot find module './tobuffer'] code: 'MODULE_NOT_FOUND' }
89a4cbc6c27eb913c1bcaf06bac2d8b872c7cbef626b35b6d7eaf993590d37de ipv4 {"type":"ipv4","ip":"208.68.164.253","port":42424}
89a4cbc6c27eb913c1bcaf06bac2d8b872c7cbef626b35b6d7eaf993590d37de ipv6 {"type":"ipv6","ip":"2605:da00:5222:5269:230:48ff:fe35:6572","port":42424}
89a4cbc6c27eb913c1bcaf06bac2d8b872c7cbef626b35b6d7eaf993590d37de http {"type":"http","http":"http://208.68.164.253:42424"}
f50f423ce7f94fe98cdd09268c7e57001aed300b23020840a84a881c76739471 ipv4 {"type":"ipv4","ip":"208.126.199.195","port":42424}
f50f423ce7f94fe98cdd09268c7e57001aed300b23020840a84a881c76739471 ipv6 {"type":"ipv6","ip":"2001:470:c0a6:3::10","port":42424}
f50f423ce7f94fe98cdd09268c7e57001aed300b23020840a84a881c76739471 http {"type":"http","http":"http://208.126.199.195:42424"}
bouncing unknown channel/type { seed: true, c: 14 }
bouncing unknown channel/type { seed: true, c: 9 }
PATHS { http: { type: 'http', port: 42424, http: undefined },
  lan4: { type: 'lan4', ip: '172.17.42.1', port: 42424 },
  lan6: { type: 'lan6', ip: 'fe80::c060:1dff:fe5f:1146', port: 42424 } }
{
  "cb7162c0dad56e07eda3acf8e523b5eb2e821d5313c6f10189e308cadf68de93": {
    "paths": [
      {
        "type": "ipv4",
        "ip": "172.17.42.1",
        "port": 42424
      },
      {
        "type": "ipv6",
        "ip": "fe80::c060:1dff:fe5f:1146",
        "port": 42424
      },
      {
        "type": "http",
        "http": "http://172.17.42.1:42424"
      }
    ],
    "parts": {
      "2a": "dc224b4493c82723638caa0827a98fbfe9c0e6b24ad2ae1fac44eebb17d55fd9",
      "1a": "c86b7867d978adc50f4fec00866c098eb456c257"
    },
    "keys": {
      "2a": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArXVM8nEpOYlWshaaYBoMASoozygjid/wwjUUtZpBOo0dDHv0FE5+AQ7CcF8iKwagw73w4SDX/7KWHdpSuWBrohf+nNVQzfa3YnnZC5MCD165NlXQAq4W7jdbwJ5Q9IEd0fBLNPO7CIVCs2kUHnCKiOZ14WDCR44+qDHvewJcgxbS3sdMBhQwW5ATDvEFak3ZQXcQJS2OgaPgq9jAqa77rel7kkwYPeEYN2iRjH6OZX4nxqCMAFqOdL2O2roG184hifgtJKY6kCJUOBCDoz75jd9SZWjrmC+4kVhy3Kk0siIDyutMkiPqL9HtyX3KKO99eOGOxNgca7OEvpcCB321BwIDAQAB",
      "1a": "vwZb2Ykj87RgeYPzoPfNj2zWGDjaKwe/A6lmgWuKNs4CeP4u4/ZBKA=="
    },
    "bridge": true
  }
}
connected to 2 mesh seed peers
old channel id 11 17
b819cc62d95ea1d41684a7b86f5e043e302ed0ec5a1cd8999741b641f11b3271 ipv4 {"type":"ipv4","ip":"162.243.1.152","port":42424}
b819cc62d95ea1d41684a7b86f5e043e302ed0ec5a1cd8999741b641f11b3271 relay {"type":"relay","relay":"89a4cbc6c27eb913c1bcaf06bac2d8b872c7cbef626b35b6d7eaf993590d37de"}

@quartzjer
Copy link
Member

Yep, awesome!!! Also, if it doesn't close by tomorrow, I may just fork node sodium and point to a git dependency instead of the npm ver for cs3a :)

@ghost
Copy link
Author

ghost commented Mar 16, 2014

Sounds reasonable
Looking at the commit rate on the repo I am not holding my breath.
Shame really as it needs some extra-love to get the windows build together too.

Can I ask why you use it if there is a fallback anyway?

@quartzjer
Copy link
Member

The fallback is just lesser crypto, so it's preferable to have sodium working whenever possible, and when we get closer to stable then definitely want it working well. I've been wanting to set up a fallback to https://github.com/tonyg/js-nacl, or find some way to merge the two so it presents the same interface to node and browserify.

If you're up for forking and maintaining a more stable version and/or heading down that path, I'm totally happy to point to your repo instead of the npm one :)

@ghost
Copy link
Author

ghost commented Mar 17, 2014

K point to https://github.com/tearmann/node-sodium for now.

Would be nice to have the node version abstraction such as https://github.com/rvagg/nan as well as a safer windows build.

@quartzjer
Copy link
Member

Heh, tried pointing to yours, errors on osx :) Totally agree on the compiled mess w/ node :/

make sodium
cd libsodium;
./autogen.sh;
./configure;
make
/bin/bash: line 0: cd: libsodium: No such file or directory
/bin/bash: ./autogen.sh: No such file or directory
/bin/bash: ./configure: No such file or directory
Run make test-cov for coverage reports
Mocha and Instanbul Node.js must be installed globally
/bin/bash: mocha: command not found
make[1]: *** [test] Error 127
make: *** [sodium] Error 2
npm WARN optional dep failed, continuing sodium@1.0.9

@ghost
Copy link
Author

ghost commented Mar 21, 2014

@quartzjer closing as sodium 1.0.11 in NPM now builds without submodule support on Linux and Mac with Windows coming soom.

@ghost ghost closed this as completed Mar 21, 2014
This issue was closed.
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

1 participant