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

HTTPS not works after update 1.5 #255

Closed
arteck opened this issue Sep 12, 2018 · 15 comments
Closed

HTTPS not works after update 1.5 #255

arteck opened this issue Sep 12, 2018 · 15 comments

Comments

@arteck
Copy link

arteck commented Sep 12, 2018

i have here a white site...
grafik

without Authentification its ok....

with auth
grafik

@AlCalzone
Copy link
Collaborator

AlCalzone commented Sep 13, 2018

Some investigation:
https://github.com/ioBroker/ioBroker.admin/blob/master/lib/web.js#L426
adapter.config.certificates is probably undefined, which means that in
https://github.com/ioBroker/ioBroker.js-controller/blob/master/lib/letsencrypt.js#L173
certificates is undefined.

Seems to be the same error as https://forum.iobroker.net/viewtopic.php?p=134532#p134532, what fixed that one?

@arteck
Copy link
Author

arteck commented Sep 13, 2018

no its other problem.

grafik

after open visu. web adapther with auth.. bäääm

@arteck arteck changed the title HTTPS not works HTTPS not works after update 1.5 Sep 13, 2018
@AlCalzone
Copy link
Collaborator

AlCalzone commented Sep 13, 2018

But the root cause is the same if I belive your post in the forums:

2018-09-12 20:31:51.974  - [31merror[39m: admin.0 TypeError: Cannot read property 'NPNProtocols' of undefined
    at new Server (https.js:15:40)
    at Object.exports.createServer (https.js:47:10)
    at Object.createServer (/opt/iobroker/node_modules/iobroker.js-controller/lib/letsencrypt.js:173:39)
    at __construct (/opt/iobroker/node_modules/iobroker.admin/lib/web.js:426:32)
    at new Web (/opt/iobroker/node_modules/iobroker.admin/lib/web.js:457:7)
    at /opt/iobroker/node_modules/iobroker.admin/main.js:292:29

This means the certificates are not provided correctly and the https server is never started.

@arteck
Copy link
Author

arteck commented Sep 13, 2018

so. admin works with auth.. vis not ..

@AlCalzone
Copy link
Collaborator

What did you change?

@arteck
Copy link
Author

arteck commented Sep 13, 2018

das Problem bestand schon mal nach wechsel zu 1.4.2.. bluefox hat das dann korrigiert..
so wie es aussieht geht die session verloren.. ich kann keine VIS Editieren wenn ich auth eingeschaltet lasse und mich auch nicht einlogen (das login kommt garnicht mit den Fehlern von oben)

forum

kontrolliere einfach bei dir obs geht.. https an und auth an..
nimm die schon vorhanden zertifikate

@BuZZy1337
Copy link
Contributor

iobroker-community-adapters/ioBroker.telegram#70 (comment)

Gibt's hier vielleicht ein Zusammenhang?!

@vr6syncro
Copy link

ioBroker/ioBroker.telegram#70 (comment)

Gibt's hier vielleicht ein Zusammenhang?!

Auch mit 1.5.2 geht es nicht mit SSL

@arteck
Copy link
Author

arteck commented Sep 16, 2018

mit 1.5.3 auch nicht.. da stimmt mit den sessions was nicht.. die werden nicht durchgereicht habe ich das gefühl..
vom Admin mit auth in der version 1.5.3 lädt garnichts. ich komme auf kein Tab drauf..
Visu Edit läuft garnicht..
geschweige denn das Login

@Apollon77
Copy link
Collaborator

Sicher das alles sauber nach Update neu gestartet wurde und wirklich die 1.5.3 läuft?

@arteck
Copy link
Author

arteck commented Sep 16, 2018

aber sowas von.. :-) mach es ja nicht zum ersten mal..

@Ilovegym66
Copy link

Ilovegym66 commented Sep 16, 2018

Hi, hab mal rumgespielt.. kann man nachvollziehen, wenn man im Webadapter Auth einschaltet, aber bei socket.io nicht. Es muss beides auf Auth stehen, dann geht es - ABER:
es werden nicht die vorhandenen Configs von Vis, Habpanel und Material übernommen, sondern neue erzeugt.. also irgendwo ist da noch was... ( loginname?)
Update: mit chrome auf dem Handy s.o., mit Firefox gehts.. ?

@arteck hast du den Socket.io installiert? Was hast du da eingestellt?

js-controller 1.5.3, npm 6.4.0, node 8.11.4

@arteck
Copy link
Author

arteck commented Sep 17, 2018

ja ich habe socket.io auch am laufen.. nur hier benötige ich den auth nicht..

@Apollon77
Copy link
Collaborator

@arteck Geht das jetzt auch "plötzlich"?

@Apollon77 Apollon77 added this to the 1.5 milestone Nov 16, 2018
@arteck
Copy link
Author

arteck commented Nov 16, 2018

geht

@arteck arteck closed this as completed Nov 16, 2018
foxriver76 referenced this issue in foxriver76/ioBroker.js-controller May 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants