Skip to content
This repository has been archived by the owner on Jul 19, 2024. It is now read-only.

Issue: Check for openssl during install #117

Closed
mtbitcoin opened this issue Oct 25, 2014 · 15 comments
Closed

Issue: Check for openssl during install #117

mtbitcoin opened this issue Oct 25, 2014 · 15 comments
Assignees
Labels

Comments

@mtbitcoin
Copy link

Please see https://forums.counterparty.io/discussion/748/counterpartyd-v9-45-0-released-how-to-update#latest

Unable to run counterpartyd if the openssl dlls are not already available under the windows folders.

@robby-d
Copy link
Contributor

robby-d commented Oct 25, 2014

So to fix, will a download and install from http://slproweb.com/download/Win32OpenSSL_Light-1_0_1j.exe work ??? If so, I can enhance the installation docs to add that as a prerequisite

alternatively, there may be another package or additional packages we need to install from http://slproweb.com/products/Win32OpenSSL.html ...just let me know and i'll enhance the docs

@robby-d robby-d added the bug label Oct 25, 2014
@robby-d robby-d self-assigned this Oct 25, 2014
@ivanaszuber
Copy link

I'll try it now

@mtbitcoin
Copy link
Author

The installation of http://slproweb.com/download/Win32OpenSSL_Light-1_0_1j.exe appears to have taken me pass where I was stuck. However, there is also prompt stating that the c++ 2008 distributables are required for this to work correctly when installing the Win32OpenSSL_Light-1_0_1j.exe . I am not sure if it will work without it.

@robby-d
Copy link
Contributor

robby-d commented Oct 25, 2014

Ok, then you'll need http://www.microsoft.com/downloads/details.aspx?familyid=9B2DA534-3E03-4391-8A4D-074B9F2BC1BF as well (linked to from that page)

@ivanaszuber
Copy link

yeah, the install helped with the error above, but when I try to do a market --give-asset=BTC I get the following error:

Status: Connecting to database.
Status: Running v9.45.0 of counterpartyd.
Traceback (most recent call last):
File "C:\counterpartyd_build\env\lib\site-packages\requests\packages\urllib3\c
onnectionpool.py", line 493, in urlopen
body=body, headers=headers)
File "C:\counterpartyd_build\env\lib\site-packages\requests\packages\urllib3\c
onnectionpool.py", line 291, in _make_request
conn.request(method, url, **httplib_request_kw)
File "C:\Python34\Lib\http\client.py", line 1090, in request
self._send_request(method, url, body, headers)
File "C:\Python34\Lib\http\client.py", line 1128, in _send_request
self.endheaders(body)
File "C:\Python34\Lib\http\client.py", line 1086, in endheaders
self._send_output(message_body)
File "C:\Python34\Lib\http\client.py", line 924, in _send_output
self.send(msg)
File "C:\Python34\Lib\http\client.py", line 859, in send
self.connect()
File "C:\counterpartyd_build\env\lib\site-packages\requests\packages\urllib3\c
onnection.py", line 106, in connect
conn = self._new_conn()
File "C:\counterpartyd_build\env\lib\site-packages\requests\packages\urllib3\c
onnection.py", line 90, in _new_conn
(self.host, self.port), self.timeout, *extra_args)
File "C:\Python34\Lib\socket.py", line 509, in create_connection
raise err
File "C:\Python34\Lib\socket.py", line 500, in create_connection
sock.connect(sa)
ConnectionRefusedError: [WinError 10061] No connection could be made because the
target machine actively refused it

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\counterpartyd_build\env\lib\site-packages\requests\adapters.py", line
327, in send
timeout=timeout
File "C:\counterpartyd_build\env\lib\site-packages\requests\packages\urllib3\c
onnectionpool.py", line 543, in urlopen
raise MaxRetryError(self, url, e)
requests.packages.urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='loc
alhost', port=4000): Max retries exceeded with url: / (Caused by <class 'Connect
ionRefusedError'>: [WinError 10061] No connection could be made because the targ
et machine actively refused it)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\counterpartyd_build\dist\counterpartyd\counterpartyd.py", line 1091,
in
market(args.give_asset, args.get_asset)
File "C:\counterpartyd_build\dist\counterpartyd\counterpartyd.py", line 108, i
n market
awaiting_btcs = util.api('get_order_matches', {'filters': filters, 'filterop
': 'OR', 'status': 'pending'})
File "C:\counterpartyd_build\dist\counterpartyd\lib\util.py", line 38, in api
response = requests.post(config.RPC, data=json.dumps(payload), headers=heade
rs)
File "C:\counterpartyd_build\env\lib\site-packages\requests\api.py", line 88,
in post
return request('post', url, data=data, *_kwargs)
File "C:\counterpartyd_build\env\lib\site-packages\requests\api.py", line 44,
in request
return session.request(method=method, url=url, *_kwargs)
File "C:\counterpartyd_build\env\lib\site-packages\requests\sessions.py", line
456, in request
resp = self.send(prep, *_send_kwargs)
File "C:\counterpartyd_build\env\lib\site-packages\requests\sessions.py", line
559, in send
r = adapter.send(request, *_kwargs)
File "C:\counterpartyd_build\env\lib\site-packages\requests\adapters.py", line
375, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=4
000): Max retries exceeded with url: / (Caused by <class 'ConnectionRefusedError
'>: [WinError 10061] No connection could be made because the target machine acti
vely refused it)

@robby-d
Copy link
Contributor

robby-d commented Oct 25, 2014

@ivanaszuber is your bitcoind running? was this all working for you before the upgrade of counterpartyd?

@ivanaszuber
Copy link

bitcoind is running, yes, and I was able execute the same request 2 days ago... I'll try again, it could be I'm doing something wrong...

@ivanaszuber
Copy link

sorry, my bad, it's working... I restarted counterpartyd, synced everything up and got the market result now

@mtbitcoin
Copy link
Author

@ivanaszuber is your counterpartyd synced up to the latest blocks? After the database reparse has completed have you tried restarting counterpartyd ?? I am running into issues after restarting and am not sure if this is something on my end or more

@ivanaszuber
Copy link

@mtbitcoin my counterpartyd server wasn't synced up with the latest block (which is probably why I got the error), so I restarted the server, synced up with the latest block and tried to execute the --get-asset command. It was working. But then I restarted the server again (due to issues I'm having when trying to run counterpartyd on testnet) and now I get stuck on "Status: Checking version." It's hanging like that for the last 5-10 min

@mtbitcoin
Copy link
Author

ahh.. ok so I am not alone then :-) I am going to open an issue

running counterpartyd on windows can be lonely at times

@ghost
Copy link

ghost commented Oct 26, 2014

I don't have any 3rd party SSL packages and I've never had this problem (and I use the Windows version all the time). Maybe I have OpenSSL installed by some other developer packages on my OS (e.g. Apache) and they're in my PATH variable. Still, I find this weird.
Why is SSL used in the first place?

@mtbitcoin
Copy link
Author

@Rippler Most likely you already have the openssl installed. It is used in many other open/closed source applications and could have been installed in the past.

@ghost
Copy link

ghost commented Oct 28, 2014

@mtbitcoin, I think something else was the problem.

  1. A while ago I installed CP on a clean VM and didn't have to install this or similar package
    https://wiki.counterparty.io/w/Counterparty_with_64-bit_Python_3.4
  2. How come everyone's counterpartyd worked fine before, but couldn't work after this upgrade?
    (3. And I still wonder why is SSL necessary for counterpartyd?)

@ghost
Copy link

ghost commented Oct 28, 2014

To answer my question number 3: it seems this is where the need for SSL was introduced.
CounterpartyXCP/counterparty-core@ffde476
I updated the Wiki article.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants