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

vagrant up not working on mac #16

Open
tdcwilliams opened this issue May 7, 2016 · 7 comments
Open

vagrant up not working on mac #16

tdcwilliams opened this issue May 7, 2016 · 7 comments

Comments

@tdcwilliams
Copy link

did "git pull"
and sudo port upgrade outdated

so code & ansible etc should be up-to-date

error:
==> course: Running provisioner: ansible...
course: Running ansible-playbook...
PYTHONUNBUFFERED=1 ANSIBLE_FORCE_COLOR=true ANSIBLE_HOST_KEY_CHECKING=false ANSIBLE_SSH_ARGS='-o UserKnownHostsFile=/dev/null -o IdentitiesOnly=yes -i '/Users/timill/GITHUB-REPOSITORIES/python/nersc-vagrant/.vagrant/machines/course/virtualbox/private_key' -o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=60s' ansible-playbook --connection=ssh --timeout=30 --extra-vars=ansible_ssh_user='vagrant' --limit='course' --inventory-file=provisioning/hosts -v provisioning/site.yml
Traceback (most recent call last):
File "/opt/local/bin/ansible-playbook", line 110, in
display.error("Unexpected Exception: %s" % to_unicode(e), wrap_text=False)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/ansible/utils/display.py", line 261, in error
self.display(new_msg, color='red', stderr=True)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/ansible/utils/display.py", line 124, in display
msg2 = to_bytes(msg2, encoding=self._output_encoding(stderr=stderr))
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/ansible/utils/unicode.py", line 208, in to_bytes
return obj.encode(encoding, errors)
LookupError: unknown encoding:
Ansible failed to complete successfully. Any error output should be
visible above. Please fix these errors and try again.

@mortenwh
Copy link
Contributor

mortenwh commented May 7, 2016

Why "port upgrade"? Should be enough with "vagrant provision course"..?
7. mai 2016 10.28 skrev "Timothy Williams" notifications@github.com:

did "git pull"
and sudo port upgrade outdated

so code & ansible etc should be up-to-date

error:
==> course: Running provisioner: ansible...
course: Running ansible-playbook...
PYTHONUNBUFFERED=1 ANSIBLE_FORCE_COLOR=true
ANSIBLE_HOST_KEY_CHECKING=false ANSIBLE_SSH_ARGS='-o
UserKnownHostsFile=/dev/null -o IdentitiesOnly=yes -i
'/Users/timill/GITHUB-REPOSITORIES/python/nersc-vagrant/.vagrant/machines/course/virtualbox/private_key'
-o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=60s'
ansible-playbook --connection=ssh --timeout=30
--extra-vars=ansible_ssh_user='vagrant' --limit='course'
--inventory-file=provisioning/hosts -v provisioning/site.yml
Traceback (most recent call last):
File "/opt/local/bin/ansible-playbook", line 110, in
display.error("Unexpected Exception: %s" % to_unicode(e), wrap_text=False)
File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/ansible/utils/display.py",
line 261, in error
self.display(new_msg, color='red', stderr=True)
File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/ansible/utils/display.py",
line 124, in display
msg2 = to_bytes(msg2, encoding=self._output_encoding(stderr=stderr))
File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/ansible/utils/unicode.py",
line 208, in to_bytes
return obj.encode(encoding, errors)
LookupError: unknown encoding:
Ansible failed to complete successfully. Any error output should be
visible above. Please fix these errors and try again.


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#16

@tdcwilliams
Copy link
Author

to make sure ansible was updated (via macports) - it's not part of the
repo right?
"vagrant provision course"
gives the same error

On 07/05/16 10:41, Morten W. Hansen wrote:

Why "port upgrade"? Should be enough with "vagrant provision course"..?
7. mai 2016 10.28 skrev "Timothy Williams" notifications@github.com:

did "git pull"
and sudo port upgrade outdated

so code & ansible etc should be up-to-date

error:
==> course: Running provisioner: ansible...
course: Running ansible-playbook...
PYTHONUNBUFFERED=1 ANSIBLE_FORCE_COLOR=true
ANSIBLE_HOST_KEY_CHECKING=false ANSIBLE_SSH_ARGS='-o
UserKnownHostsFile=/dev/null -o IdentitiesOnly=yes -i

'/Users/timill/GITHUB-REPOSITORIES/python/nersc-vagrant/.vagrant/machines/course/virtualbox/private_key'
-o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=60s'
ansible-playbook --connection=ssh --timeout=30
--extra-vars=ansible_ssh_user='vagrant' --limit='course'
--inventory-file=provisioning/hosts -v provisioning/site.yml
Traceback (most recent call last):
File "/opt/local/bin/ansible-playbook", line 110, in
display.error("Unexpected Exception: %s" % to_unicode(e), wrap_text=False)
File

"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/ansible/utils/display.py",
line 261, in error
self.display(new_msg, color='red', stderr=True)
File

"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/ansible/utils/display.py",
line 124, in display
msg2 = to_bytes(msg2, encoding=self._output_encoding(stderr=stderr))
File

"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/ansible/utils/unicode.py",
line 208, in to_bytes
return obj.encode(encoding, errors)
LookupError: unknown encoding:
Ansible failed to complete successfully. Any error output should be
visible above. Please fix these errors and try again.


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#16


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#16 (comment)

@mortenwh
Copy link
Contributor

mortenwh commented May 7, 2016

Strange. You should check the git log of nersc-vagrant if any changes was
made lately that could affect the course vm. Do you know which version you
used before the pull? An option could be to just check out an earlier
version... or fix the error if you find it
7. mai 2016 10.44 skrev "Timothy Williams" notifications@github.com:

to make sure ansible was updated (via macports) - it's not part of the
repo right?
"vagrant provision course"
gives the same error

On 07/05/16 10:41, Morten W. Hansen wrote:

Why "port upgrade"? Should be enough with "vagrant provision course"..?
7. mai 2016 10.28 skrev "Timothy Williams" notifications@github.com:

did "git pull"
and sudo port upgrade outdated

so code & ansible etc should be up-to-date

error:
==> course: Running provisioner: ansible...
course: Running ansible-playbook...
PYTHONUNBUFFERED=1 ANSIBLE_FORCE_COLOR=true
ANSIBLE_HOST_KEY_CHECKING=false ANSIBLE_SSH_ARGS='-o
UserKnownHostsFile=/dev/null -o IdentitiesOnly=yes -i

'/Users/timill/GITHUB-REPOSITORIES/python/nersc-vagrant/.vagrant/machines/course/virtualbox/private_key'

-o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=60s'
ansible-playbook --connection=ssh --timeout=30
--extra-vars=ansible_ssh_user='vagrant' --limit='course'
--inventory-file=provisioning/hosts -v provisioning/site.yml
Traceback (most recent call last):
File "/opt/local/bin/ansible-playbook", line 110, in
display.error("Unexpected Exception: %s" % to_unicode(e),
wrap_text=False)
File

"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/ansible/utils/display.py",

line 261, in error
self.display(new_msg, color='red', stderr=True)
File

"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/ansible/utils/display.py",

line 124, in display
msg2 = to_bytes(msg2, encoding=self._output_encoding(stderr=stderr))
File

"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/ansible/utils/unicode.py",

line 208, in to_bytes
return obj.encode(encoding, errors)
LookupError: unknown encoding:
Ansible failed to complete successfully. Any error output should be
visible above. Please fix these errors and try again.


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#16


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
<
#16 (comment)


You are receiving this because you commented.
Reply to this email directly or view it on GitHub
#16 (comment)

@tdcwilliams
Copy link
Author

not sure what the old version was (quite old), but that had the same
error. Maybe it is an issue with ansible itself, but wouldn't know where
to start with fixing the error...

On 07/05/16 10:56, Morten W. Hansen wrote:

Strange. You should check the git log of nersc-vagrant if any changes was
made lately that could affect the course vm. Do you know which version you
used before the pull? An option could be to just check out an earlier
version... or fix the error if you find it
7. mai 2016 10.44 skrev "Timothy Williams" notifications@github.com:

to make sure ansible was updated (via macports) - it's not part of the
repo right?
"vagrant provision course"
gives the same error

On 07/05/16 10:41, Morten W. Hansen wrote:

Why "port upgrade"? Should be enough with "vagrant provision course"..?
7. mai 2016 10.28 skrev "Timothy Williams" notifications@github.com:

did "git pull"
and sudo port upgrade outdated

so code & ansible etc should be up-to-date

error:
==> course: Running provisioner: ansible...
course: Running ansible-playbook...
PYTHONUNBUFFERED=1 ANSIBLE_FORCE_COLOR=true
ANSIBLE_HOST_KEY_CHECKING=false ANSIBLE_SSH_ARGS='-o
UserKnownHostsFile=/dev/null -o IdentitiesOnly=yes -i

'/Users/timill/GITHUB-REPOSITORIES/python/nersc-vagrant/.vagrant/machines/course/virtualbox/private_key'

-o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=60s'
ansible-playbook --connection=ssh --timeout=30
--extra-vars=ansible_ssh_user='vagrant' --limit='course'
--inventory-file=provisioning/hosts -v provisioning/site.yml
Traceback (most recent call last):
File "/opt/local/bin/ansible-playbook", line 110, in
display.error("Unexpected Exception: %s" % to_unicode(e),
wrap_text=False)
File

"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/ansible/utils/display.py",

line 261, in error
self.display(new_msg, color='red', stderr=True)
File

"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/ansible/utils/display.py",

line 124, in display
msg2 = to_bytes(msg2, encoding=self._output_encoding(stderr=stderr))
File

"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/ansible/utils/unicode.py",

line 208, in to_bytes
return obj.encode(encoding, errors)
LookupError: unknown encoding:
Ansible failed to complete successfully. Any error output should be
visible above. Please fix these errors and try again.


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#16


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
<

#16 (comment)


You are receiving this because you commented.
Reply to this email directly or view it on GitHub

#16 (comment)


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#16 (comment)

@tdcwilliams
Copy link
Author

actually, from google, setting LC_ALL and LANG
to en_US.UTF-8

fixed it, and it seemed to work, except there were a lot of messages saying:

PLAY


skipping: no hosts matched

On 07/05/16 10:56, Morten W. Hansen wrote:

Strange. You should check the git log of nersc-vagrant if any changes was
made lately that could affect the course vm. Do you know which version you
used before the pull? An option could be to just check out an earlier
version... or fix the error if you find it
7. mai 2016 10.44 skrev "Timothy Williams" notifications@github.com:

to make sure ansible was updated (via macports) - it's not part of the
repo right?
"vagrant provision course"
gives the same error

On 07/05/16 10:41, Morten W. Hansen wrote:

Why "port upgrade"? Should be enough with "vagrant provision course"..?
7. mai 2016 10.28 skrev "Timothy Williams" notifications@github.com:

did "git pull"
and sudo port upgrade outdated

so code & ansible etc should be up-to-date

error:
==> course: Running provisioner: ansible...
course: Running ansible-playbook...
PYTHONUNBUFFERED=1 ANSIBLE_FORCE_COLOR=true
ANSIBLE_HOST_KEY_CHECKING=false ANSIBLE_SSH_ARGS='-o
UserKnownHostsFile=/dev/null -o IdentitiesOnly=yes -i

'/Users/timill/GITHUB-REPOSITORIES/python/nersc-vagrant/.vagrant/machines/course/virtualbox/private_key'

-o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=60s'
ansible-playbook --connection=ssh --timeout=30
--extra-vars=ansible_ssh_user='vagrant' --limit='course'
--inventory-file=provisioning/hosts -v provisioning/site.yml
Traceback (most recent call last):
File "/opt/local/bin/ansible-playbook", line 110, in
display.error("Unexpected Exception: %s" % to_unicode(e),
wrap_text=False)
File

"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/ansible/utils/display.py",

line 261, in error
self.display(new_msg, color='red', stderr=True)
File

"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/ansible/utils/display.py",

line 124, in display
msg2 = to_bytes(msg2, encoding=self._output_encoding(stderr=stderr))
File

"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/ansible/utils/unicode.py",

line 208, in to_bytes
return obj.encode(encoding, errors)
LookupError: unknown encoding:
Ansible failed to complete successfully. Any error output should be
visible above. Please fix these errors and try again.


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#16


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
<

#16 (comment)


You are receiving this because you commented.
Reply to this email directly or view it on GitHub

#16 (comment)


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#16 (comment)

@akorosov
Copy link
Member

akorosov commented May 9, 2016

These messages are OK. They tell you only run provisioning of the 'course' machine.

Where did you have to specify LC_ALL and LANG? In your machine or on the guest machine? I was trying to fix that issue here:
11f7235
But that affects only the guest machine, of course.

@tdcwilliams
Copy link
Author

That was on my personal machine.

On 09/05/16 11:15, Anton Korosov wrote:

These messages are OK. They tell you only run provisioning of the
'course' machine.

Where did you have to specify LC_ALL and LANG? In your machine or on the
guest machine? I was trying to fix that issue here:
11f7235
11f7235
But that affects only the guest machine, of course.


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#16 (comment)

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

3 participants