Giter Club home page Giter Club logo

hassio-addons's People

Contributors

dependabot[bot] avatar mdegat01 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

hassio-addons's Issues

SSL: permissions error reading certificates

Hi

I am trying to run HedgeDoc for the first time, and I am getting this error:

s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
cont-init: info: running /etc/cont-init.d/00-banner.sh
-----------------------------------------------------------
 Add-on: HedgeDoc
 HedgeDoc for Home Assistant
-----------------------------------------------------------
 Add-on version: 1.6.3
 You are running the latest version of this add-on.
 System: Home Assistant OS 10.5  (amd64 / qemux86-64)
 Home Assistant Core: 2023.8.4
 Home Assistant Supervisor: 2023.08.3
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
cont-init: info: /etc/cont-init.d/00-banner.sh exited 0
cont-init: info: running /etc/cont-init.d/01-log-level.sh
Log level is set to INFO
cont-init: info: /etc/cont-init.d/01-log-level.sh exited 0
cont-init: info: running /etc/cont-init.d/30-config.sh
[13:24:31] INFO: Setting up SSL...
cont-init: info: /etc/cont-init.d/30-config.sh exited 0
cont-init: info: running /etc/cont-init.d/40-mysql.sh
[13:24:32] NOTICE: Hedgedoc is using the Maria DB addon's database
[13:24:32] NOTICE: Please ensure that addon is included in your backups
[13:24:32] NOTICE: Uninstalling the Maria DB addon will also remove Hedgedoc's data
cont-init: info: /etc/cont-init.d/40-mysql.sh exited 0
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
services-up: info: copying legacy longrun hedgedoc (no readiness notification)
s6-rc: info: service legacy-services successfully started
[13:24:32] INFO: Hedgedoc log level set to info
[13:24:32] INFO: Handing over control to Hedgedoc...
2023-09-11T12:24:33.040Z warn: 	Overriding protocolUseSSL to 'true' as useSSL is enabled.
2023-09-11T12:24:33.331Z error: 	uncaughtException: EACCES: permission denied, open '/ssl/privkey.pem'
Error: EACCES: permission denied, open '/ssl/privkey.pem'
    at Object.openSync (node:fs:585:3)
    at Object.readFileSync (node:fs:453:35)
    at Object.<anonymous> (/opt/hedgedoc/app.js:47:13)
    at Module._compile (node:internal/modules/cjs/loader:1105:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)
    at node:internal/main/run_main_module:17:47

My certificates are working fine for other things, like my main Home Assistant UI which is open to the Internet via https.

The certificates directory is like this:

โžœ  config ll /ssl
total 20K
-rw-r--r--    1 root     root        4.0K Sep 11 03:01 fullchain.pem
-rw-r--r--    1 root     root        1.0K May 25 15:22 hass.crt
-rw-------    1 root     root         227 May 25 15:28 hass_private.key
-rw-------    1 root     root         227 Sep 11 03:01 privkey.pem

From what I read online, these are the correct ownerships/permissions. Am I wrong?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.