cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
444
Views
0
Helpful
2
Replies
Highlighted
Beginner

Libcurl error when run standalone Hostscan (csd-wrapper) on Linux.

Hi guys,

I'm seeing a weird and not trivial message when I run cstub on Linux. Specially with libcurl.

I replaced the real address to MY_HOSTNAME var just to hide it, but my address is working and pinging.

[Tue Dec 11 21:48:45.641 2018][cstub][trace][hs_transport_setpeer] setting l2 peer: (https://MY_HOSTNAME)
[Tue Dec 11 21:48:45.641 2018][cstub][trace][hs_transport_setpeer] setting peer done. peer = https://MY_HOSTNAME, referrer =
[Tue Dec 11 21:48:45.641 2018][cstub][trace][hs_transport_setpeer] host changed
[Tue Dec 11 21:48:45.641 2018][cstub][trace][hs_transport_detect_proxy] detecting proxy...
[Tue Dec 11 21:48:45.641 2018][cstub][debug][hs_transport_curl_setproxy_none] setting proxy to none
[Tue Dec 11 21:48:45.641 2018][cstub][trace][hs_transport_detect_proxy] verifying proxy...
[Tue Dec 11 21:48:45.641 2018][cstub][trace][hs_transport_probe] sending probe request
[Tue Dec 11 21:48:46.000 2018][cstub][debug][hs_transport_curl_probe] libcurl error: Error

[Tue Dec 11 21:48:46.000 2018][cstub][warn][hs_transport_probe] sending probe request failed
[Tue Dec 11 21:48:46.001 2018][cstub][trace][hs_transport_detect_proxy] verifying proxy... failed.
[Tue Dec 11 21:48:46.001 2018][cstub][debug][hs_transport_curl_setproxy_autoenv] setting proxy from environment proxy values
[Tue Dec 11 21:48:46.001 2018][cstub][trace][hs_transport_detect_proxy] verifying proxy...
[Tue Dec 11 21:48:46.001 2018][cstub][trace][hs_transport_probe] sending probe request
[Tue Dec 11 21:48:46.364 2018][cstub][debug][hs_transport_curl_probe] libcurl error: Error

[Tue Dec 11 21:48:46.365 2018][cstub][warn][hs_transport_probe] sending probe request failed
[Tue Dec 11 21:48:46.365 2018][cstub][trace][hs_transport_detect_proxy] verifying proxy... failed.
[Tue Dec 11 21:48:46.366 2018][cstub][debug][hs_transport_curl_setproxy_autoenvhttps] setting proxy from environment proxy values for https
[Tue Dec 11 21:48:46.366 2018][cstub][debug][hs_transport_curl_setproxy_autoenvhttps] no proxy environment variables found
[Tue Dec 11 21:48:46.367 2018][cstub][debug][hs_transport_curl_setproxy_autogconfhttps] setting proxy from gconf proxy values for https
[Tue Dec 11 21:48:46.426 2018][cstub][debug][hs_transport_curl_setproxy_autogconfhttp] setting proxy from gconf proxy values for http
[Tue Dec 11 21:48:46.449 2018][cstub][error][hs_transport_detect_proxy] unable to contact peer (https://MY_HOSTNAME)
[Tue Dec 11 21:48:46.449 2018][cstub][debug][hs_transport_detect_proxy] detecting proxy... failed.
[Tue Dec 11 21:48:46.449 2018][cstub][error][hs_transport_setpeer] unable to reach peer (https://MY_HOSTNAME)
[Tue Dec 11 21:48:46.449 2018][cstub][error][hs_download_file_to_buffer] unable to setup transport.
[Tue Dec 11 21:48:46.449 2018][cstub][warn][download_manifest] unable to download manifest: /CACHE/sdesktop/hostscan/linux_x64/manifest
[Tue Dec 11 21:48:46.450 2018][cstub][debug][hs_get_from_cache] No cache for '0'
[Tue Dec 11 21:48:46.450 2018][cstub][warn][verify_file] unable to obtain library manifest.
[Tue Dec 11 21:48:46.450 2018][cstub][trace][hs_transport_uriencode] uri-encoding string
[Tue Dec 11 21:48:46.450 2018][cstub][trace][hs_transport_uriencode] unencoded: (libcsd.so.gz)
[Tue Dec 11 21:48:46.450 2018][cstub][trace][hs_transport_uriencode] uri-encoding string done
[Tue Dec 11 21:48:46.450 2018][cstub][trace][hs_transport_uriencode] encoded: (libcsd.so.gz)
[Tue Dec 11 21:48:46.452 2018][cstub][debug][update_file] downloading to (/home/julio/.cisco/hostscan/lib/libcsd.so.gz) and upacking to (/home/julio/.cisco/hostscan/lib/libcsd.so)
[Tue Dec 11 21:48:46.452 2018][cstub][debug][hs_download_file] attempting to download file: /CACHE/sdesktop/hostscan/linux_x64/libcsd.so.gz
[Tue Dec 11 21:48:46.452 2018][cstub][trace][hs_transport_setpeer] setting peer
[Tue Dec 11 21:48:46.452 2018][cstub][trace][hs_transport_setpeer] setting l2 peer: (https://MY_HOSTNAME)
[Tue Dec 11 21:48:46.452 2018][cstub][trace][hs_transport_setpeer] setting peer done. peer = https://MY_HOSTNAME, referrer = https://MY_HOSTNAME
[Tue Dec 11 21:48:46.452 2018][cstub][trace][hs_transport_setredircount] setting redirects
[Tue Dec 11 21:48:46.452 2018][cstub][trace][hs_transport_setredircount] setting redirects: (10)
[Tue Dec 11 21:48:46.452 2018][cstub][trace][hs_transport_setredircount] setting redirects done
[Tue Dec 11 21:48:46.452 2018][cstub][trace][hs_transport_get] sending get request
[Tue Dec 11 21:48:46.811 2018][cstub][debug][hs_transport_curl_get] libcurl error: Error

[Tue Dec 11 21:48:46.811 2018][cstub][warn][hs_transport_get] sending get request failed
[Tue Dec 11 21:48:46.812 2018][cstub][error][hs_download_file] unable to contact peer: (https://MY_HOSTNAME).

I'm trying to use OpenConnect with Cisco Anyconnect Wrapper: https://gist.github.com/l0ki000/56845c00fd2a0e76d688

If I use the same address and use Mobility Client to connect, I see the same logs but without libcurl errors.

Am I missing anything? Any local daemon? The services ciscod and vpnagentd are running normally.

Everyone's tags (4)
2 REPLIES 2
Highlighted
Beginner

Re: Libcurl error when run standalone Hostscan (csd-wrapper) on Linux.

Apparently libcurl works properly when I remove the argument '-ticket'.
So, the question changes to: how to pass ticket session value without this error?
Highlighted
Beginner

Re: Libcurl error when run standalone Hostscan (csd-wrapper) on Linux.

Fixed the problem using version 4.7.