-
Notifications
You must be signed in to change notification settings - Fork 81
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
tr: Illegal byte sequence #2
Comments
Seems to work OK now:
|
Thanks for verifying! That is the "correct" output now. |
I'm see similar issue with current master / head commit e65032e881877d39dbd652561f6ec061fc5f2241 (HEAD -> master, origin/master, origin/HEAD)
Author: Alexander Trost <[email protected]>
Date: Mon Mar 4 18:36:33 2019 +0100
Removed mentions of unused vagrant-plugin-vagrant-reload plugin
Use Google DNS servers for Ubuntu as the "default" ones are sometimes
broken causing the whole environment install to fail.
Signed-off-by: Alexander Trost <[email protected]> Using vagrant version; $ vagrant version
Installed Version: 2.2.4
Latest Version: 2.2.4
You're running an up-to-date version of Vagrant! Running the following command. $ NODE_MEMORY_SIZE_GB=3 NODE_CPUS=2 NODE_COUNT=3 make up -j4
tr: Illegal byte sequence
tr: Illegal byte sequence
tr: Illegal byte sequence
tr: Illegal byte sequence
if !(vagrant box list | grep -q generic/fedora29); then \
vagrant \
box \
add \
--provider=virtualbox \
generic/fedora29; \
else \
vagrant box update --box=generic/fedora29; \
fi
==> box: Loading metadata for box 'generic/fedora29'
box: URL: https://vagrantcloud.com/generic/fedora29 Host info $ sw_vers
ProductName: Mac OS X
ProductVersion: 10.12.6
BuildVersion: 16G1815 |
@galexrt on my specific version of OSX the issue can be fixed by using LC_ALL rather than LC_CTYPE, see below. Also note in the makefile there is an if statement that is being written to console, added an @ to silence. $ git diff
diff --git a/Makefile b/Makefile
index 94ce364..a9ade67 100644
--- a/Makefile
+++ b/Makefile
@@ -54,7 +54,7 @@ token: ## Generate a kubeadm join token, if needed (token file is `DIRECTORY_OF_
fi
@if [ ! -f "$(MFILECWD)/.vagrant/KUBETOKEN" ]; then \
if [ -z "$(KUBETOKEN)" ]; then \
- echo "$(shell LC_CTYPE=C tr -cd 'a-z0-9' < /dev/urandom | fold -w 6 | head -n 1).$(shell cat /dev/urandom | LC_CTYPE=C tr -cd 'a-z0-9' < /dev/urandom | fold -w 16 | head -n 1)" > "$(MFILECWD)/.vagrant/KUBETOKEN"; \
+ echo "$(shell LC_ALL=C tr -cd 'a-z0-9' < /dev/urandom | fold -w 6 | head -n 1).$(shell cat /dev/urandom | LC_ALL=C tr -cd 'a-z0-9' < /dev/urandom | fold -w 16 | head -n 1)" > "$(MFILECWD)/.vagrant/KUBETOKEN"; \
else \
echo "$(KUBETOKEN)" > "$(MFILECWD)/.vagrant/KUBETOKEN"; \
fi; \
@@ -119,7 +119,7 @@ kubectl: ## Configure kubeconfig context for the cluster using `kubectl config`
@echo
pull: ## Add and download, or update the box image on the host.
- if !(vagrant box list | grep -q $(shell grep "^\$$box_image.*=.*'.*'\.freeze" "$(MFILECWD)/vagrantfiles/$(BOX_OS)/common" | cut -d\' -f2)); then \
+ @if !(vagrant box list | grep -q $(shell grep "^\$$box_image.*=.*'.*'\.freeze" "$(MFILECWD)/vagrantfiles/$(BOX_OS)/common" | cut -d\' -f2)); then \
vagrant \
box \
add \
|
@damianoneill I see, thanks for debugging this! Do you want to open a PR with this fix? |
update to #2 fix for osx Co-authored-by: null <[email protected]>
Signed-off-by: Alexander Trost <[email protected]>
When running commit 27c3304 on my Mac, I see the following messages from
tr
as the first output ofmake up
. The installation completes and the Kubernetes cluster seems functional, so this may not be a big issue.The text was updated successfully, but these errors were encountered: