Skip to content

Instantly share code, notes, and snippets.

View dhutty's full-sized avatar

Duncan Hutty dhutty

View GitHub Profile
04e1c1d268db8849ebc7f91e41294ec372a74051f93c976401f8a103e2f5198522ce9821282d79a33d9d67fa2b4862811ae97282259ba66623f0edf48abccca07b
@dhutty
dhutty / gist:136085d7479f105566cdde993d3d1450
Created September 7, 2017 19:43
GH OAuth login stacaktrace
Stack trace
java.net.ConnectException: Connection refused (Connection refused)
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:668)
ERROR! Syntax Error while loading YAML.
The error appears to have been in '/data/ansible/inventory/group_vars/all.yml': line 2, column 21, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
---
test_encrypted_var: !vault |
virtualenv -p python3.4 venv3
Running virtualenv with interpreter /bin/python3.4
Using base prefix '/usr'
New python executable in venv3/bin/python3.4
Also creating executable in venv3/bin/python
Failed to import the site module
Traceback (most recent call last):
File "/home/admin/venv3/lib64/python3.4/site.py", line 67, in <module>
import os
File "/home/admin/venv3/lib64/python3.4/os.py", line 616, in <module>
python -c "import requests; requests.get('https://dashboard-proxmox16-1.paslab016001.mc.metacloud.in', verify=False).status"
/usr/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py:838: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/security.html
InsecureRequestWarning)
/usr/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py:838: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/security.html
InsecureRequestWarning)
Traceback (most recent call last):
File "<string>", line 1, in <module>
AttributeError: 'Response' object has no attribute 'status'
CONNECTED(00000003)
depth=0 C = US, ST = California, L = Pasadena, O = Metapod, CN = dashboard-proxmox16-1.paslab016001.mc.metacloud.in
verify return:1
---
Certificate chain
0 s:/C=US/ST=California/L=Pasadena/O=Metapod/CN=dashboard-proxmox16-1.paslab016001.mc.metacloud.in
i:/C=US/ST=California/L=Pasadena/O=Metapod/CN=dashboard-proxmox16-1.paslab016001.mc.metacloud.in
---
Server certificate
-----BEGIN CERTIFICATE-----
try:
logging.debug('Connecting to %s' % (url, ))
sslcontext = ssl.create_default_context()
sslcontext.load_verify_locations("/etc/ssl/certs/ca-bundle.crt")
sslcontext.load_verify_locations("/etc/ssl/certs/ca-bundle.trust.crt")
try:
if args.no_verify:
sslcontext.check_hostname = False
zap.urlopen(url, context=sslcontext)
except ssl.SSLError as e:
2014/05/09 09:12:50 Packer Version: 0.6.0 12e28f257f66299e3bb13a053bf06ccd236e7efd
2014/05/09 09:12:50 Packer Target OS/Arch: linux amd64
2014/05/09 09:12:50 Built with Go Version: go1.2
2014/05/09 09:12:50 Detected home directory from env var: /home/dhutty
2014/05/09 09:12:50 Attempting to open config file: /home/dhutty/.packerconfig
2014/05/09 09:12:50 File doesn't exist, but doesn't need to. Ignoring.
2014/05/09 09:12:50 Packer config: &{PluginMinPort:0 PluginMaxPort:0 Builders:map[virtualbox-ovf:packer-builder-virtualbox-ovf amazon-ebs:packer-builder-amazon-ebs googlec
ompute:packer-builder-googlecompute virtualbox-iso:packer-builder-virtualbox-iso vmware-vmx:packer-builder-vmware-vmx parallels-pvm:packer-builder-parallels-pvm amazon-chr
oot:packer-builder-amazon-chroot amazon-instance:packer-builder-amazon-instance digitalocean:packer-builder-digitalocean docker:packer-builder-docker openstack:packer-buil
der-openstack qemu:packer-builder-qemu parallels-iso:packer-builder-parallels-iso vmware-iso:packer