Skip to content

Error in script nextcloudpi.shΒ #4958

@shahab-cl

Description

@shahab-cl

βœ… Have you read and understood the above guidelines?

yes

πŸ“œ What is the name of the script you are using?

ct/nextcloudpi.sh

πŸ“‚ What was the exact command used to execute the script?

bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/nextcloudpi.sh)"

βš™οΈ What settings are you using?

  • Default Settings
  • Advanced Settings

πŸ–₯️ Which Linux distribution are you using?

No response

πŸ“ Provide a clear and concise description of the issue.

This is a folowup to #4817

I dont think this is related to DNS. Here is the output when I select "Advanced setting" from the menu.

bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/nextcloudpi.sh)"

_   __          __  ________                ______  _ 
/ | / /__ _ / // / / __ / / __ ()
/ |/ / _ | |// __/ / / / __ / / / / __ / // / /
/ /| / __/> </ // // / // / // / // / __/ /
// |/_//||_/_//_/_,/_,// //

🧩 Using Advanced Settings on node pve
πŸ–₯️ Operating System: debian
🌟 Version: 12
πŸ“¦ Container Type: Unprivileged
πŸ” Root Password: ********
πŸ†” Container ID: 101
🏠 Hostname: nextcloudpi
πŸ’Ύ Disk Size: 8 GB
🧠 CPU Cores: 2
πŸ› οΈ RAM Size: 2048 MiB
πŸŒ‰ Bridge: vmbr0
πŸ“‘ IP Address: dhcp
🌐 Gateway IP Address: Default
πŸ“‘ APT-Cacher IP Address: Default
🚫 Disable IPv6: no
βš™οΈ Interface MTU Size: Default
πŸ” DNS Search Domain: Host
πŸ“‘ DNS Server IP Address: Host
🏷️ Vlan: Default
πŸ“‘ Tags: community-script;cloud
πŸ”‘ Root SSH Access: no
πŸ—‚οΈ Enable FUSE Support: no
πŸ” Verbose Mode: no
πŸš€ Creating a NextCloudPi LXC using the above advanced settings
βœ”οΈ Using local for Template Storage.
βœ”οΈ Using local-lvm for Container Storage.
βœ”οΈ Updated LXC Template List
βœ”οΈ LXC Template is ready to use.
βœ”οΈ LXC Container 101 was successfully created.
βœ”οΈ Started LXC Container
βœ”οΈ Set up Container OS
βœ”οΈ Network Connected: 2600:4040:2883:da00:be24:11ff:fe89:d8c
βœ–οΈ IPv4 Internet Not Connected
βœ”οΈ IPv6 Internet Connected
βœ–οΈ DNS Lookup Failure
βœ”οΈ Updated Container OS
β Έ/dev/stdin: line 72: curl: command not found

[ERROR] in line 51: exit code 0: while executing command "$@" > /dev/null 2>&1
/dev/stdin: line 84: post_update_to_api: command not found
/dev/stdin: line 218: pop_var_context: head of shell_variables not a function context
/dev/stdin: line 14: pop_var_context: head of shell_variables not a function context
/dev/fd/63: line 74: SPINNER_PID: unbound variable
root@pve:~#

And Here is the output when I select "Default Settings"

_   __          __  ________                ______  _ 
/ | / /__ _ / // / / __ / / __ ()
/ |/ / _ | |// __/ / / / __ / / / / __ / // / /
/ /| / __/> </ // // / // / // / // / __/ /
// |/_//||_/_//_/_,/_,// //

βš™οΈ Using Default Settings on node pve
πŸ–₯️ Operating System: debian
🌟 Version: 12
πŸ“¦ Container Type: Unprivileged
πŸ’Ύ Disk Size: 8 GB
🧠 CPU Cores: 2
πŸ› οΈ RAM Size: 2048 MiB
πŸ†” Container ID: 101
πŸš€ Creating a NextCloudPi LXC using the above default settings

βœ”οΈ Using local for Template Storage.
βœ”οΈ Using local-lvm for Container Storage.
βœ”οΈ Updated LXC Template List
βœ”οΈ LXC Template is ready to use.
βœ”οΈ LXC Container 101 was successfully created.
βœ”οΈ Started LXC Container
βœ”οΈ Set up Container OS
βœ”οΈ Network Connected: 192.168.1.191 2600:4040:2883:da00:be24:11ff:fe12:88fc
βœ”οΈ IPv4 Internet Connected
βœ”οΈ IPv6 Internet Connected
βœ”οΈ DNS Resolved github.com to 140.82.113.4
βœ”οΈ Updated Container OS
βœ”οΈ Core dependencies installed
βœ”οΈ Installed NextCloudPi
βœ”οΈ Customized Container
βœ”οΈ Cleaned
βœ”οΈ Completed Successfully!

πŸš€ NextCloudPi setup has been successfully initialized!
πŸ’‘ Access it using the following URL:
🌐 http://192.168.1.191/
root@pve:~#

This is installed on the same PVE server. Only difference is the Default vs advanced settings.

πŸ”„ Steps to reproduce the issue.

Tried the script with default settings (no user input) and it works as expected. And then tried it with "Advanced setting" and the script fails. The same server is used for both cases so there is no issue with DNS on the "Default settings"

❌ Paste the full error output (if available).

`/ | / /__ _ / // / / __ / / __ ()
/ |/ / _ | |// __/ / / / __ / / / / __ / // / /
/ /| / __/> </ // // / // / // / // / __/ /
// |///||////,/,// //

🧩 Using Advanced Settings on node pve
πŸ–₯️ Operating System: debian
🌟 Version: 12
πŸ“¦ Container Type: Unprivileged
πŸ” Root Password: ********
πŸ†” Container ID: 101
🏠 Hostname: nextcloudpi
πŸ’Ύ Disk Size: 8 GB
🧠 CPU Cores: 2
πŸ› οΈ RAM Size: 2048 MiB
πŸŒ‰ Bridge: vmbr0
πŸ“‘ IP Address: dhcp
🌐 Gateway IP Address: Default
πŸ“‘ APT-Cacher IP Address: Default
🚫 Disable IPv6: no
βš™οΈ Interface MTU Size: Default
πŸ” DNS Search Domain: Host
πŸ“‘ DNS Server IP Address: Host
🏷️ Vlan: Default
πŸ“‘ Tags: community-script;cloud
πŸ”‘ Root SSH Access: no
πŸ—‚οΈ Enable FUSE Support: no
πŸ” Verbose Mode: no
πŸš€ Creating a NextCloudPi LXC using the above advanced settings
βœ”οΈ Using local for Template Storage.
βœ”οΈ Using local-lvm for Container Storage.
βœ”οΈ Updated LXC Template List
βœ”οΈ LXC Template is ready to use.
βœ”οΈ LXC Container 101 was successfully created.
βœ”οΈ Started LXC Container
βœ”οΈ Set up Container OS
βœ”οΈ Network Connected: 2600:4040:2883:da00:be24:11ff:fe89:d8c
βœ–οΈ IPv4 Internet Not Connected
βœ”οΈ IPv6 Internet Connected
βœ–οΈ DNS Lookup Failure
βœ”οΈ Updated Container OS
β Έ/dev/stdin: line 72: curl: command not found

[ERROR] in line 51: exit code 0: while executing command "$@" > /dev/null 2>&1
/dev/stdin: line 84: post_update_to_api: command not found
/dev/stdin: line 218: pop_var_context: head of shell_variables not a function context
/dev/stdin: line 14: pop_var_context: head of shell_variables not a function context
/dev/fd/63: line 74: SPINNER_PID: unbound variable
root@pve:~#`

πŸ–ΌοΈ Additional context (optional).

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions