Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not installing on Homebridge Docker #85

Open
mgoeppl opened this issue Jan 10, 2023 · 4 comments
Open

Not installing on Homebridge Docker #85

mgoeppl opened this issue Jan 10, 2023 · 4 comments
Labels

Comments

@mgoeppl
Copy link

mgoeppl commented Jan 10, 2023

Describe Your Problem:
Plugin does not install, see error below.

Logs:

USER: root
DIR: /var/lib/homebridge
CMD: npm install --save [email protected]

npm ERR! code 128
npm ERR! An unknown git error occurred
npm ERR! command git --no-replace-objects ls-remote ssh://[email protected]/homeinstalator/syno.git
npm ERR! No user exists for uid 1000
npm ERR! fatal: Could not read from remote repository.
npm ERR! 
npm ERR! Please make sure you have the correct access rights
npm ERR! and the repository exists.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/homebridge/.npm/_logs/2023-01-10T19_44_24_992Z-debug-0.log

Operation failed. Please review log for details.

Plugin Config:

        {
            "accessory": "Synology",
            "name": "Diskstation",
            "host": "192.168.3.2",
            "mac": "90:23:45:56:2C",
            "port": 5001,
            "protocol": "https",
            "username": "synoadmin",
            "password": "synoadmin",
            "version": "6.2.2",
            "otp": "ISDHIAGDUYEGU***",
            "startupTime": 60,
            "shutdownTime": 60,
            "disabled": [
                "switch"
            ]
        }

Environment:

  • Plugin Version:
  • Homebridge Version: v4.50.2
  • Node.js Version: v18.13.0
  • NPM Version: 8.19.3
  • Operating System: Docker (Ubuntu Focal Fossa (20.04.5 LTS))
@Vaifranz
Copy link

Vaifranz commented Mar 7, 2023

Same problem, error 128

PlugIn version: 0.5.2
Homebridge Version: 4.50.2
Nede.js Version: 16.14.0
Operating System: Docker (Alpine Linux (3.12.9)) on Synology

Same problem with previous plugin. What do I do? Thanks

@fatez
Copy link

fatez commented Apr 8, 2023

same issue here :

74 verbose stack Error: An unknown git error occurred
74 verbose stack     at makeError (/opt/homebridge/lib/node_modules/npm/node_modules/@npmcli/git/lib/make-error.js:28:13)
74 verbose stack     at /opt/homebridge/lib/node_modules/npm/node_modules/@npmcli/git/lib/spawn.js:37:26
75 verbose cwd /homebridge
76 verbose Linux 6.2.10-x64v3-xanmod1
77 verbose node v18.13.0
78 verbose npm  v8.19.3
79 error code 128
80 error An unknown git error occurred
81 error command git --no-replace-objects ls-remote ssh://[email protected]/homeinstalator/syno.git
82 error No user exists for uid 1000
82 error fatal: Could not read from remote repository.
82 error
82 error Please make sure you have the correct access rights
82 error and the repository exists.
83 verbose exit 128
84 timing npm Completed in 2464ms
85 verbose unfinished npm timer reify 1680953773244
86 verbose unfinished npm timer reify:loadTrees 1680953773246
87 verbose code 128

and from root :

git --no-replace-objects ls-remote ssh://[email protected]/homeinstalator/syno.git
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

I figured out how to do it, if it helps anyone I will leave it written here.

You have to go into bash on the container and give this command from root:

hb-service add homebridge-synology

@rdenimal
Copy link

I figured out how to do it, if it helps anyone I will leave it written here.

You have to go into bash on the container and give this command from root:

hb-service add homebridge-synology

Thanks @fatez that worked for me too !

@dgauche
Copy link

dgauche commented Jul 11, 2023

You have to go into bash on the container and give this command from root:

hb-service add homebridge-synology

This worked for me, but I first needed to upgrade npm with:
npm install -g

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants