crc-org / crc

CRC is a tool to help you run containers. It manages a local OpenShift 4.x cluster, Microshift or a Podman VM optimized for testing and development purposes
https://crc.dev
Apache License 2.0
1.26k stars 241 forks source link

Unexpected end of JSON input upon installation #2811

Closed rupeshad81 closed 3 years ago

rupeshad81 commented 3 years ago

General information

CRC version

# Put `crc version` output here

CRC status

# Put `crc status --log-level debug` output here

CRC config

# Put `crc config view` output here

Host Operating System

# Put the output of `cat /etc/os-release` in case of Linux
# put the output of `sw_vers` in case of Mac
# Put the output of `systeminfo` in case of Windows

Steps to reproduce

Expected

Actual

Logs

Before gather the logs try following if that fix your issue

$ crc delete -f
$ crc cleanup
$ crc setup
$ crc start --log-level debug

While installing the crc 1.34.1, getting below issue:

[crc@eaas-crc ~]$ crc config set proxy-ca-file /tmp/amdocs-cert.crt unexpected end of JSON input

rupeshad81 commented 3 years ago

Hi,

[crc@eaas-crc ~]$ crc config set no-proxy .apps.ilocpfnd401.ocp.corp.amdocs.com,.cluster.local,.ilocpfnd401.ocp.corp.amdocs.com,.svc,10.0.0.0/16,10.254.0.0/16,127.0.0.1,172.30.0.0/nt.ilocpfnd401.ocp.corp.amdocs.com,api.ilocpfnd401.ocp.corp.amdocs.com,etcd-0.ilocpfnd401.ocp.corp.amdocs.com,etcd-1.ilocpfnd401.ocp.corp.amdocs.com,etcd-2.ilocpfnd401.ocp.corp.amdocs.com,ilvcos01.corp.amdocs.com,localhost,.corp.amdocs.com,.apps-crc.testing,.crc.testing unexpected end of JSON input

praveenkumar commented 3 years ago

@rupeshad81 looks like you manually edited ~/.crc/crc.json file which made it corrupted, try following.

$ crc delete
$ rm -fr ~/.crc/crc.json
$ crc setup
$ crc config set proxy-ca-file /tmp/amdocs-cert.crt
$ crc config set no-proxy <no_proxies>

Don't try to edit ~/.crc/crc.json file manually.

gbraad commented 3 years ago

Incomplete description of the issue. As mentioned earlier, you need to fill the issue template.

Please read instructions, like:

$ crc delete -f
$ crc cleanup
$ crc setup
$ crc start --log-level debug

and perform these steps and provide the output. But as mentioned, we are sure this is an invalid issue as the crc.json likely got modified or 'corrupted' by outside factors. Closing

gbraad commented 3 years ago

While installing the crc 1.34.1, getting below issue:

As you can see: https://developers.redhat.com/content-gateway/rest/mirror/pub/openshift-v4/clients/crc/1.34.1 this version does not exist. Take more care when filing an issue. The warning still stands.

rupeshad81 commented 3 years ago

Hi, Yes it was mistake. Correct version.

[crc@eaas-crc ~]$ crc version CodeReady Containers version: 1.34.0+34c31851 OpenShift version: 4.9.0 (embedded in executable)

rupeshad81 commented 3 years ago

Hi,

Getting below errors :

[crc@eaas-crc ~]$ crc setup CodeReady Containers is constantly improving and we would like to know more about usage (more details at https://developers.redhat.com/article/tool-data-collection) Your preference can be changed manually if desired using 'crc config set consent-telemetry <yes/no>' Would you like to contribute anonymous usage statistics? [y/N]: y Thanks for helping us! You can disable telemetry with the command 'crc config set consent-telemetry no'. INFO Checking if running as non-root INFO Checking if running inside WSL2 INFO Checking if crc-admin-helper executable is cached INFO Checking for obsolete admin-helper executable INFO Checking if running on a supported CPU architecture INFO Checking minimum RAM requirements INFO Checking if crc executable symlink exists INFO Checking if Virtualization is enabled INFO Checking if KVM is enabled INFO Checking if libvirt is installed INFO Checking if user is part of libvirt group INFO Adding user to libvirt group INFO Using root access: Adding user to the libvirt group INFO Checking if active user/process is currently part of the libvirt group INFO Checking if libvirt daemon is running INFO Checking if a supported libvirt version is installed INFO Checking if crc-driver-libvirt is installed INFO Installing crc-driver-libvirt INFO Checking crc daemon systemd service INFO Setting up crc daemon systemd service INFO Checking crc daemon systemd socket units INFO Setting up crc daemon systemd socket units ERRO sending request - Post "https://api.segment.io/v1/batch": dial tcp: lookup api.segment.io on 10.232.217.1:53: no such host ERRO 2 messages dropped because they failed to be sent and the client was closed Executing systemctl action failed: exit status 1: Failed to connect to bus: No such file or directory

gbraad commented 3 years ago

Closed; marked as Invalid

[crc@eaas-crc ~]$ crc setup

... finished correctly. Indicating the crc.json file was malformed.

rupeshad81 commented 3 years ago

Hi, Not able to run the crc setup