openhab / openhab-cloud

Cloud companion for openHAB instances
Eclipse Public License 2.0
311 stars 162 forks source link

OpenHAB Cloud Installation erros #461

Open kristofrk opened 3 weeks ago

kristofrk commented 3 weeks ago

I am trying to install OpenHAB Cloud on a Ubuntu 24.04 LTS AMI. The 'npm install' command comes up with errors. First it shows While resolving: bcrypt-cache@2.0.1 npm ERR! Found: bcrypt@5.0.1 npm ERR! node_modules/bcrypt npm ERR! bcrypt@"^5.0.1" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer bcrypt@"^1.0.0" from bcrypt-cache@2.0.1 npm ERR! node_modules/bcrypt-cache npm ERR! bcrypt-cache@"^2.0.1" from the root project npm ERR! npm ERR! Conflicting peer dependency: bcrypt@1.0.3 npm ERR! node_modules/bcrypt npm ERR! peer bcrypt@"^1.0.0" from bcrypt-cache@2.0.1 npm ERR! node_modules/bcrypt-cache npm ERR! bcrypt-cache@"^2.0.1" from the root project npm ERR! npm ERR! Fix the upstream dependency conflict, or retry npm ERR! this command with --force or --legacy-peer-deps npm ERR! to accept an incorrect (and potentially broken) dependency resolution. npm ERR! When I retry with either of the above options, it gives an error for /home/ubuntu/openhab-cloud/node_modules/heapdump an an exit cod 1 for gyp. Any suggestions?

kristofrk commented 2 weeks ago

I have fixed those problems, but when directing the browser to the IP address of my AMI, I get a 404 error from nginx. I am using the default configuration provided in the installation/customization instructions.

kristofrk commented 1 week ago

This is the error I am getting: 024/06/17 18:57:55 [error] 449#449: *1 connect() failed (111: Unknown error) while connecting to upstream, client: 73.234.97.133, server: , request: "GET /favicon.ico HTTP/1.1", upstream: "http://127.0.0.1:3000/favicon.ico", host: "52.23.169.119", referrer: "http://52.23.169.119/" app.js is running (albeit not finding Authkey.p8), the configuration correctly specifies 127.0.0.1:3000.

kristofrk commented 1 week ago

NGINX is actually showing an internal error.