https://rancher.com/ logo
#general
Title
# general
a

adamant-kite-43734

01/26/2023, 3:58 PM
This message was deleted.
f

future-coat-18059

01/26/2023, 6:09 PM
Copy code
sudo docker run -d --restart=unless-stopped -p 80:80 -p 443:443 -v /perfios/rancher/lib/:/var/lib/ --privileged rancher/rancher
Command used
m

microscopic-diamond-94749

01/26/2023, 6:43 PM
any errors in the logs?
f

future-coat-18059

01/27/2023, 3:23 AM
Copy code
2023/01/27 03:03:21 [INFO] getReleaseConfig: reloading config for k3s
2023/01/27 03:03:21 [INFO] getReleaseConfig: reloading config for rke2
2023/01/27 03:03:25 [ERROR] error syncing 'c-t9dmz': handler cluster-provisioner-controller: failed to find system images for version v1.22.9-rancher1-1: <http://rkek8ssystemimages.management.cattle.io|rkek8ssystemimages.management.cattle.io> "v1.22.9-rancher1-1" not found, requeuing
2023/01/27 03:03:48 [INFO] Loaded configuration from <https://releases.rancher.com/kontainer-driver-metadata/release-v2.7/data.json> in [0x6d10098]
2023/01/27 03:03:48 [INFO] driverMetadata: refreshing data from upstream <https://releases.rancher.com/kontainer-driver-metadata/release-v2.7/data.json>
2023/01/27 03:03:48 [INFO] Retrieve data.json from local path /var/lib/rancher-data/driver-metadata/data.json
2023/01/27 03:03:48 [WARNING] failed to create or update driverMetadata: open /var/lib/rancher-data/driver-metadata/data.json: no such file or directory, Fallback to refresh from local file path /var/lib/rancher-data/driver-metadata/data.json
2023/01/27 03:03:48 [INFO] Retrieve data.json from local path /var/lib/rancher-data/driver-metadata/data.json
2023/01/27 03:03:48 [ERROR] error syncing 'rke-metadata-config': handler rke-metadata-handler: failed to refresh from local file path: /var/lib/rancher-data/driver-metadata/data.json: open /var/lib/rancher-data/driver-metadata/data.json: no such file or directory, requeuing
2023/01/27 03:03:49 [INFO] Loaded configuration from <https://releases.rancher.com/kontainer-driver-metadata/release-v2.7/data.json> in [0x6d10098]
2023/01/27 03:04:11 [INFO] update kontainerdriver amazonelasticcontainerservice
2023/01/27 03:04:11 [INFO] update kontainerdriver azurekubernetesservice
2023/01/27 03:04:11 [INFO] update kontainerdriver googlekubernetesengine
2023/01/27 03:04:11 [INFO] update kontainerdriver huaweicontainercloudengine
2023/01/27 03:04:11 [INFO] update kontainerdriver linodekubernetesengine
2023/01/27 03:04:11 [INFO] update kontainerdriver opentelekomcloudcontainerengine
2023/01/27 03:04:11 [INFO] update kontainerdriver rancherkubernetesengine
2023/01/27 03:04:11 [INFO] update kontainerdriver aliyunkubernetescontainerservice
2023/01/27 03:04:11 [INFO] update kontainerdriver baiducloudcontainerengine
2023/01/27 03:04:11 [INFO] update kontainerdriver oraclecontainerengine
2023/01/27 03:04:11 [INFO] update kontainerdriver tencentkubernetesengine
2023/01/27 03:04:11 [ERROR] error parsing azure-group-cache-size, skipping update strconv.Atoi: parsing "": invalid syntax
2023/01/27 03:04:11 [INFO] Refreshing driverMetadata in 1440 minutes
2023/01/27 03:04:11 [INFO] getReleaseConfig: reloading config for rke2
2023/01/27 03:04:11 [INFO] getReleaseConfig: reloading config for k3s
2023/01/27 03:04:11 [ERROR] error syncing 'c-t9dmz': handler cluster-provisioner-controller: failed to find system images for version v1.22.9-rancher1-1: <http://rkek8ssystemimages.management.cattle.io|rkek8ssystemimages.management.cattle.io> "v1.22.9-rancher1-1" not found, requeuing
2023/01/27 03:04:12 [INFO] [snapshotbackpopulate] rkecluster fleet-local/local: processing configmap kube-system/k3s-etcd-snapshots
2023/01/27 03:04:12 [INFO] Updating TLS secret for cattle-system/tls-rancher-internal (count: 2): map[<http://field.cattle.io/projectId:local:p-rtln5|field.cattle.io/projectId:local:p-rtln5> <http://listener.cattle.io/cn-10.43.223.223:10.43.223.223|listener.cattle.io/cn-10.43.223.223:10.43.223.223> <http://listener.cattle.io/fingerprint:SHA1=0881D29F9569E70FFFB370BCBDBD7A0A51BF5240|listener.cattle.io/fingerprint:SHA1=0881D29F9569E70FFFB370BCBDBD7A0A51BF5240>]
2023/01/27 03:04:12 [INFO] Updating TLS secret for cattle-system/serving-cert (count: 6): map[<http://field.cattle.io/projectId:local:p-rtln5|field.cattle.io/projectId:local:p-rtln5> <http://listener.cattle.io/cn-127.0.0.1:127.0.0.1|listener.cattle.io/cn-127.0.0.1:127.0.0.1> <http://listener.cattle.io/cn-172.26.0.2:172.26.0.2|listener.cattle.io/cn-172.26.0.2:172.26.0.2> <http://listener.cattle.io/cn-192.168.62.66:192.168.62.66|listener.cattle.io/cn-192.168.62.66:192.168.62.66> <http://listener.cattle.io/cn-localhost:localhost|listener.cattle.io/cn-localhost:localhost> <http://listener.cattle.io/cn-rancher.cattle-system:rancher.cattle-system|listener.cattle.io/cn-rancher.cattle-system:rancher.cattle-system> <http://listener.cattle.io/fingerprint:SHA1=2732F6CC6333BFF8CC54666B3ED507E8F8B5AA92]|listener.cattle.io/fingerprint:SHA1=2732F6CC6333BFF8CC54666B3ED507E8F8B5AA92]>
2023/01/27 03:04:16 [INFO] kontainerdriver googlekubernetesengine listening on address 127.0.0.1:44487
2023/01/27 03:04:16 [INFO] kontainerdriver azurekubernetesservice listening on address 127.0.0.1:35259
2023/01/27 03:04:16 [INFO] kontainerdriver googlekubernetesengine stopped
2023/01/27 03:04:16 [INFO] kontainerdriver azurekubernetesservice stopped
2023/01/27 03:04:16 [INFO] dynamic schema for kontainerdriver azurekubernetesservice updating
2023/01/27 03:04:16 [INFO] dynamic schema for kontainerdriver googlekubernetesengine updating
2023/01/27 03:04:16 [INFO] kontainerdriver amazonelasticcontainerservice listening on address 127.0.0.1:42065
2023/01/27 03:04:16 [INFO] kontainerdriver amazonelasticcontainerservice stopped
2023/01/27 03:04:16 [INFO] dynamic schema for kontainerdriver amazonelasticcontainerservice updating
time="2023-01-27 03:04:18" level=info msg="Collecting anonymous data from <https://localhost:443/v3>"
time="2023-01-27 03:04:18" level=error msg="Failed to get Cluster Loggings err=Unknown schema type [clusterLogging]"
time="2023-01-27 03:04:18" level=error msg="Failed to get Namespaces for project c-t9dmz:p-5kgdk err=Unknown schema type [namespace]"
time="2023-01-27 03:04:18" level=error msg="Failed to get Workload for project c-t9dmz:p-5kgdk err=Unknown schema type [workload]"
time="2023-01-27 03:04:18" level=error msg="Failed to get Pipelines for project c-t9dmz:p-5kgdk err=Unknown schema type [pipeline]"
time="2023-01-27 03:04:18" level=error msg="Failed to get SourceCodeProvider for project c-t9dmz:p-5kgdk err=Unknown schema type [sourceCodeProvider]"
time="2023-01-27 03:04:18" level=error msg="Failed to get HPA for project c-t9dmz:p-5kgdk err=Unknown schema type [horizontalPodAutoscaler]"
time="2023-01-27 03:04:18" level=error msg="Failed to get Pod for project c-t9dmz:p-5kgdk err=Unknown schema type [pod]"
time="2023-01-27 03:04:18" level=error msg="Failed to get Namespaces for project c-t9dmz:p-9b65b err=Unknown schema type [namespace]"
time="2023-01-27 03:04:18" level=error msg="Failed to get Workload for project c-t9dmz:p-9b65b err=Unknown schema type [workload]"
time="2023-01-27 03:04:18" level=error msg="Failed to get Pipelines for project c-t9dmz:p-9b65b err=Unknown schema type [pipeline]"
time="2023-01-27 03:04:18" level=error msg="Failed to get SourceCodeProvider for project c-t9dmz:p-9b65b err=Unknown schema type [sourceCodeProvider]"
time="2023-01-27 03:04:18" level=error msg="Failed to get HPA for project c-t9dmz:p-9b65b err=Unknown schema type [horizontalPodAutoscaler]"
time="2023-01-27 03:04:18" level=error msg="Failed to get Pod for project c-t9dmz:p-9b65b err=Unknown schema type [pod]"
time="2023-01-27 03:04:18" level=error msg="Failed to get Pipelines for project local:p-9mvtz err=Unknown schema type [pipeline]"
time="2023-01-27 03:04:18" level=error msg="Failed to get SourceCodeProvider for project local:p-9mvtz err=Unknown schema type [sourceCodeProvider]"
time="2023-01-27 03:04:18" level=error msg="Failed to get Pipelines for project local:p-rtln5 err=Unknown schema type [pipeline]"
time="2023-01-27 03:04:18" level=error msg="Failed to get SourceCodeProvider for project local:p-rtln5 err=Unknown schema type [sourceCodeProvider]"
2023/01/27 03:04:23 [INFO] driverMetadata: refreshing data from upstream <https://releases.rancher.com/kontainer-driver-metadata/release-v2.7/data.json>
2023/01/27 03:04:23 [INFO] Retrieve data.json from local path /var/lib/rancher-data/driver-metadata/data.json
2023/01/27 03:04:23 [WARNING] failed to create or update driverMetadata: open /var/lib/rancher-data/driver-metadata/data.json: no such file or directory, Fallback to refresh from local file path /var/lib/rancher-data/driver-metadata/data.json
2023/01/27 03:04:23 [INFO] Retrieve data.json from local path /var/lib/rancher-data/driver-metadata/data.json
2023/01/27 03:04:23 [ERROR] error syncing 'rke-metadata-config': handler rke-metadata-handler: failed to refresh from local file path: /var/lib/rancher-data/driver-metadata/data.json: open /var/lib/rancher-data/driver-metadata/data.json: no such file or directory, requeuing
2023/01/27 03:04:33 [INFO] Loaded configuration from <https://releases.rancher.com/kontainer-driver-metadata/release-v2.7/data.json> in [0x6d10098]
2023/01/27 03:04:39 [INFO] Loaded configuration from <https://releases.rancher.com/kontainer-driver-metadata/release-v2.7/data.json> in [0x6d10098]
2023/01/27 03:05:26 [ERROR] error syncing 'c-t9dmz': handler cluster-provisioner-controller: failed to find system images for version v1.22.9-rancher1-1: <http://rkek8ssystemimages.management.cattle.io|rkek8ssystemimages.management.cattle.io> "v1.22.9-rancher1-1" not found, requeuing
2023/01/27 03:05:48 [INFO] Refreshing driverMetadata in 1440 minutes
2023/01/27 03:05:48 [INFO] getReleaseConfig: reloading config for rke2
2023/01/27 03:05:48 [INFO] getReleaseConfig: reloading config for k3s
2023/01/27 03:06:00 [INFO] Loaded configuration from <https://releases.rancher.com/kontainer-driver-metadata/release-v2.7/data.json> in [0x6d10098]
2023/01/27 03:06:15 [INFO] driverMetadata: refreshing data from upstream <https://releases.rancher.com/kontainer-driver-metadata/release-v2.7/data.json>
2023/01/27 03:06:15 [INFO] Retrieve data.json from local path /var/lib/rancher-data/driver-metadata/data.json
2023/01/27 03:06:15 [WARNING] failed to create or update driverMetadata: open /var/lib/rancher-data/driver-metadata/data.json: no such file or directory, Fallback to refresh from local file path /var/lib/rancher-data/driver-metadata/data.json
2023/01/27 03:06:15 [INFO] Retrieve data.json from local path /var/lib/rancher-data/driver-metadata/data.json
2023/01/27 03:06:15 [ERROR] error syncing 'rke-metadata-config': handler rke-metadata-handler: failed to refresh from local file path: /var/lib/rancher-data/driver-metadata/data.json: open /var/lib/rancher-data/driver-metadata/data.json: no such file or directory, requeuing
2023/01/27 03:06:16 [INFO] Loaded configuration from <https://releases.rancher.com/kontainer-driver-metadata/release-v2.7/data.json> in [0x6d10098]
@microscopic-diamond-94749 even I tried to manually mention the version in yaml file. Still its not creating
m

microscopic-diamond-94749

01/27/2023, 8:51 AM
@future-coat-18059 you need to start the container with a different bind mount, only persisting /var/lib/rancher, not the whole of /var/lib
Copy code
docker run -d --restart=unless-stopped \
  -p 80:80 -p 443:443 \
  -v /opt/rancher:/var/lib/rancher \
  --privileged \
  rancher/rancher:latest
but I would probably recommend a single node Kubernetes Cluster instead, anyway.
f

future-coat-18059

01/27/2023, 8:56 AM
Let me try. Thanks a lot Johannes…
76 Views