Chocobozzz / PeerTube

ActivityPub-federated video streaming platform using P2P directly in your web browser
https://joinpeertube.org/
GNU Affero General Public License v3.0
13.1k stars 1.51k forks source link

Custom plugin install error #6646

Closed stevespaw closed 1 month ago

stevespaw commented 1 month ago

Describe the current behavior

This has worked perfectly until trying on a new clean 6.3.1 install, but now our plug-in will not install.. This is a big deal for us.

Steps to reproduce

  1. Install via CLI peertube-cli plugins install --path /app/data/storage/plugins/company/myplug --url https://video.xxx.com --username root --password XXXXX

3.This error in the log: error[10/1/2024, 11:00:03 AM] Cannot install plugin /app/data/storage/plugins/company/myplug, removing it... { "err": { "stack": "Error: ENOENT: no such file or directory, open '/app/data/storage/plugins/node_modules/peertube-theme-myplug/package.json'", "message": "ENOENT: no such file or directory, open '/app/data/storage/plugins/node_modules/peertube-theme-myplug/package.json'", "errno": -2, "code": "ENOENT", "syscall": "open", "path": "/app/data/storage/plugins/node_modules/peertube-theme-myplug/package.json" } }

  1. This seems to be added erroneously "/node_modules/peertube-theme-"

Describe the expected behavior

The plug-in should install. It might be connected to the path string that is added somewhere.

Additional information

Chocobozzz commented 1 month ago

Can you paste the output of ls /app/data/storage/plugins/company/myplug?

stevespaw commented 1 month ago

assets client main.js package-lock.json package.json public

image

stevespaw commented 1 month ago

image

stevespaw commented 1 month ago

image

Chocobozzz commented 1 month ago

Can you enable debug logs and paste more logs? I don't know what happens :thinking:

stevespaw commented 1 month ago

Thanks for the update - On closer inspection, I found that the plug-in folder name first letter was capitalized. Sorry, I am still getting used to the Linux sensibility for these things on a daily basis. The issue is closed for me now.. It installed fine after changing the folder name.