Skip to content

Error when trying to download some scriptsΒ #551

@jtpache

Description

@jtpache

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

yes

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

Certain scripts present an error when attempting to download, particularly scripts marked New. Logs show a 404 when looking the script up in the github repository.

πŸ”„ Steps to reproduce the issue.

  1. Load the local repository web UI
  2. Select (for example) the Anchor script (AFFiNE also fails)
  3. Click the Load Script button
  4. See "[ERROR] Failed to load script" message under the button

❌ Paste the full error output (if available).

Apr 03 07:52:48 pve-scripts-local npm[276]: Loading script "Anchor" (anchor) from repository: https://github.com/community-scripts/ProxmoxVE
Apr 03 07:52:48 pve-scripts-local npm[276]: [Directory Creation] Ensuring directory exists: /opt/ProxmoxVE-Local/scripts/ct
Apr 03 07:52:48 pve-scripts-local npm[276]: [Directory Creation] Directory created/verified: /opt/ProxmoxVE-Local/scripts/ct
Apr 03 07:52:48 pve-scripts-local npm[276]: [Directory Creation] Ensuring directory exists: /opt/ProxmoxVE-Local/scripts/install
Apr 03 07:52:48 pve-scripts-local npm[276]: [Directory Creation] Directory created/verified: /opt/ProxmoxVE-Local/scripts/install
Apr 03 07:52:48 pve-scripts-local npm[276]: [Directory Creation] Ensuring directory exists: /opt/ProxmoxVE-Local/scripts/tools
Apr 03 07:52:48 pve-scripts-local npm[276]: [Directory Creation] Directory created/verified: /opt/ProxmoxVE-Local/scripts/tools
Apr 03 07:52:48 pve-scripts-local npm[276]: [Directory Creation] Ensuring directory exists: /opt/ProxmoxVE-Local/scripts/vm
Apr 03 07:52:48 pve-scripts-local npm[276]: [Directory Creation] Directory created/verified: /opt/ProxmoxVE-Local/scripts/vm
Apr 03 07:52:48 pve-scripts-local npm[276]: Downloading script file: ct/anchor.sh from https://github.com/community-scripts/ProxmoxVE
Apr 03 07:52:48 pve-scripts-local npm[276]: Downloading from repository: https://github.com/community-scripts/ProxmoxVE (ct/anchor.sh)
Apr 03 07:52:48 pve-scripts-local npm[276]: Error loading script: Error: Failed to download ct/anchor.sh: 404 Not Found
Apr 03 07:52:48 pve-scripts-local npm[276]: at g.downloadRawFile (.next/server/chunks/325.js:1:2063)
Apr 03 07:52:48 pve-scripts-local npm[276]: at async m.loadScript (.next/server/chunks/325.js:1:8491)
Apr 03 07:52:48 pve-scripts-local npm[276]: at async (.next/server/app/api/trpc/[trpc]/route.js:8:23597)
Apr 03 07:52:48 pve-scripts-local npm[276]: at async bB.middlewares (.next/server/app/api/trpc/[trpc]/route.js:5:7812)
Apr 03 07:52:48 pve-scripts-local npm[276]: at async bF (.next/server/app/api/trpc/[trpc]/route.js:8:69)
Apr 03 07:52:48 pve-scripts-local npm[276]: at async bF (.next/server/app/api/trpc/[trpc]/route.js:8:69)
Apr 03 07:52:48 pve-scripts-local npm[276]: at async b (.next/server/app/api/trpc/[trpc]/route.js:5:8048)
Apr 03 07:52:48 pve-scripts-local npm[276]: at async (.next/server/app/api/trpc/[trpc]/route.js:1:42951)

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

For what its worth, the particular script does not in fact exist in the github repo, but I'm not sure why the scripts show up in the interface in the first place, if they are not found in the repo.

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