tteck / Proxmox

Proxmox VE Helper-Scripts
https://Helper-Scripts.com
MIT License
13.23k stars 2.05k forks source link

Receiving a couple of errors when attempting to install Docker LXC #1787

Closed rolltidehero closed 1 year ago

rolltidehero commented 1 year ago

Please verify that you have read and understood the guidelines.

yes

A clear and concise description of the issue.

Command used:

pct create 121 local:vztmpl/debian-12-standard_12.0-1_amd64.tar.zst -features fuse=1,keyctl=1,nesting=1 -hostname docker -tags proxmox-helper-scripts -net0 name=eth0,bridge=vmbr0,ip=192.168.1.121/24,gw=192.168.1.1 -onboot 1 -cores 72 -memory 8196 -unprivileged 0 -password *** -rootfs local-zfs:40

Here is a breakdown of the different components of the command:

Which Linux distribution are you employing?

Debian 12

If relevant, including screenshots or a code block can be helpful in clarifying the issue.

 ✓ Installed Dependencies
++ get_latest_release moby/moby
++ curl -sL https://api.github.com/repos/moby/moby/releases/latest
++ grep '"tag_name":'
++ cut '-d"' -f4
+++ error_handler 23 'cut -d'\''"'\'' -f4'
+++ local exit_code=1
+++ local line_number=23
+++ local 'command=cut -d'\''"'\'' -f4'
+++ local 'error_message=\033[01;31m[ERROR]\033[m in line \033[01;31m23\033[m: exit code \033[01;31m1\033[m: while executing command \033[33mcut -d'\''"'\'' -f4\033[m'
+++ echo -e '\n\033[01;31m[ERROR]\033[m in line \033[01;31m23\033[m: exit code \033[01;31m1\033[m: while executing command \033[33mcut -d'\''"'\'' -f4\033[m'
+++ [[ 23 -eq 24 ]]
+++ error_handler 26 'cut -d'\''"'\'' -f4'
+++ local exit_code=1
+++ local line_number=26
+++ local 'command=cut -d'\''"'\'' -f4'
+++ local 'error_message=\033[01;31m[ERROR]\033[m in line \033[01;31m26\033[m: exit code \033[01;31m1\033[m: while executing command \033[33mcut -d'\''"'\'' -f4\033[m'
+++ echo -e '\n\033[01;31m[ERROR]\033[m in line \033[01;31m26\033[m: exit code \033[01;31m1\033[m: while executing command \033[33mcut -d'\''"'\'' -f4\033[m'
+++ [[ 26 -eq 24 ]]
+ DOCKER_LATEST_VERSION='
[ERROR] in line 23: exit code 1: while executing command cut -d'\''"'\'' -f4

[ERROR] in line 26: exit code 1: while executing command cut -d'\''"'\'' -f4'
++ error_handler 26 'DOCKER_LATEST_VERSION=$(get_latest_release "moby/moby")'
++ local exit_code=1
++ local line_number=26
++ local 'command=DOCKER_LATEST_VERSION=$(get_latest_release "moby/moby")'
++ local 'error_message=\033[01;31m[ERROR]\033[m in line \033[01;31m26\033[m: exit code \033[01;31m1\033[m: while executing command \033[33mDOCKER_LATEST_VERSION=$(get_latest_release "moby/moby")\033[m'
++ echo -e '\n\033[01;31m[ERROR]\033[m in line \033[01;31m26\033[m: exit code \033[01;31m1\033[m: while executing command \033[33mDOCKER_LATEST_VERSION=$(get_latest_release "moby/moby")\033[m'

[ERROR] in line 26: exit code 1: while executing command DOCKER_LATEST_VERSION=$(get_latest_release "moby/moby")
++ [[ 26 -eq 24 ]]
+ exit
root@pve:~# 

Please provide detailed steps to reproduce the issue.

No response

tteck commented 1 year ago

The script runs without any problems from this end.

    ____             __            
   / __ \____  _____/ /_  __  _____
  / / / / __ \/ ___/ //_/ _ \/ ___/
 / /_/ / /_/ / /__/ ,< /  __/ /    
/_____/\____/\___/_/|_|\___/_/     

Using Advanced Settings
Using Distribution: debian
Using debian Version: 12
Using Container Type: 1
Using Root Password: Automatic Login
Container ID: 113
Using Hostname: docker
Using Disk Size: 4
Allocated Cores: 2
Allocated RAM: 2048
Using Bridge: vmbr0
Using IP Address: dhcp
Using Gateway IP Address: Default
Disable IPv6: yes
Using Interface MTU Size: Default
Using DNS Search Domain: Host
Using DNS Server IP Address: Host
Using MAC Address: AE:1A:60:07:B7:59
Using Vlan: Default
Enable Root SSH Access: no
Enable Fuse Overlayfs (ZFS): no
Enable Verbose Mode: no
Creating a Docker LXC using the above advanced settings
 ✓ Using local for Template Storage.
 ✓ Using local-lvm for Container Storage.
 ✓ Updated LXC Template List
 ✓ LXC Container 113 was successfully created.
 ✓ Started LXC Container
 ✓ Set up Container OS
 ✓ Network Connected: 192.168.86.253 
 ✓ Internet Connected
 ✓ DNS Resolved github.com to 140.82.112.4
 ✓ Updated Container OS
 ✓ Installed Dependencies
 ✓ Installed Docker v24.0.6
Would you like to add Portainer? <y/N> y
 ✓ Installed Portainer 2.19.0
Would you like to add Docker Compose? <y/N> y
 ✓ Installed Docker Compose v2.21.0
 ✓ Customized Container
 ✓ Cleaned
 ✓ Completed Successfully!
tteck commented 1 year ago

As this issue is unrelated to the script, it is considered closed.

GregHilston commented 10 months ago

@rolltidehero Did you make any progress on figuring this out, as I'm also experiencing this issue. Here's my verbose logs:

 ✓ Installed Dependencies
++ get_latest_release moby/moby
++ curl -sL https://api.github.com/repos/moby/moby/releases/latest
++ cut '-d"' -f4
++ grep '"tag_name":'
+++ error_handler 23 'cut -d'\''"'\'' -f4'
+++ local exit_code=1
+++ local line_number=23
+++ local 'command=cut -d'\''"'\'' -f4'
+++ local 'error_message=\033[01;31m[ERROR]\033[m in line \033[01;31m23\033[m: exit code \033[01;31m1\033[m: while executing command \033[33mcut -d'\''"'\'' -f4\033[m'
+++ echo -e '\n\033[01;31m[ERROR]\033[m in line \033[01;31m23\033[m: exit code \033[01;31m1\033[m: while executing command \033[33mcut -d'\''"'\'' -f4\033[m'
+++ [[ 23 -eq 24 ]]
+++ error_handler 26 'cut -d'\''"'\'' -f4'
+++ local exit_code=1
+++ local line_number=26
+++ local 'command=cut -d'\''"'\'' -f4'
+++ local 'error_message=\033[01;31m[ERROR]\033[m in line \033[01;31m26\033[m: exit code \033[01;31m1\033[m: while executing command \033[33mcut -d'\''"'\'' -f4\033[m'
+++ echo -e '\n\033[01;31m[ERROR]\033[m in line \033[01;31m26\033[m: exit code \033[01;31m1\033[m: while executing command \033[33mcut -d'\''"'\'' -f4\033[m'
+++ [[ 26 -eq 24 ]]
+ DOCKER_LATEST_VERSION='
[ERROR] in line 23: exit code 1: while executing command cut -d'\''"'\'' -f4

[ERROR] in line 26: exit code 1: while executing command cut -d'\''"'\'' -f4'
++ error_handler 26 'DOCKER_LATEST_VERSION=$(get_latest_release "moby/moby")'
++ local exit_code=1
++ local line_number=26
++ local 'command=DOCKER_LATEST_VERSION=$(get_latest_release "moby/moby")'
++ local 'error_message=\033[01;31m[ERROR]\033[m in line \033[01;31m26\033[m: exit code \033[01;31m1\033[m: while executing command \033[33mDOCKER_LATEST_VERSION=$(get_latest_release "moby/moby")\033[m'
++ echo -e '\n\033[01;31m[ERROR]\033[m in line \033[01;31m26\033[m: exit code \033[01;31m1\033[m: while executing command \033[33mDOCKER_LATEST_VERSION=$(get_latest_release "moby/moby")\033[m'

[ERROR] in line 26: exit code 1: while executing command DOCKER_LATEST_VERSION=$(get_latest_release "moby/moby")
++ [[ 26 -eq 24 ]]
+ exit
djismgaming commented 9 months ago

I did receive this same message today, but on a second try of the script, all ran correctly. Could be some timeout in the network, I guess.