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
Docker installation: Monitor doesn't seem to work #74
Comments
Monitor uses websockets; are you fronting Inbucket with a proxy, or doing anything else that would prevent a websocket connection from working? You can also confirm your browser is working by hitting the demo instance: http://demo.inbucket.org/monitor If browser is OK, take a look at browser dev tools (More tools -> Developer tools in Chrome) and see if there are any JavaScript errors, network errors. Client side code is here: https://github.com/jhillyerd/inbucket/blob/master/themes/bootstrap/public/monitor.js |
FWIW, just tried this and monitor worked in my env:
|
yes, it seems to be a problem with websockets - I get a
so maybe it's the different ports on server and client? |
Just tried the above config via Docker version 18.01.0-ce, build 03596f5 Have you tried other browsers? |
Hmmm, doesn't work here... Docker version 17.12.0-ce, build c97c6d6 On Debian stable, these seem to be the most recent versions |
I wouldn't expect the docker version to play a significant role unless they were drastically different. I'm not clear how much troubleshooting you have done so far, please be explicit. You haven't said if it works with the demo site, if you've tried other browsers, or even what browser you are using. Is Inbucket logging anything when you make the attempt? Would be good to know if it's actually returning the 400, or of the browser is faking it. |
Sorry for my late reply. I further investigated this issue. The monitor on the monitor site works. So does the monitor on my installation, when I access it over the port that docker made available. However, it doesn't work on the URL I assigned to inbucket. I therefore have to assume that I have to somehow enable in my apache config file:
|
Do you have https://httpd.apache.org/docs/2.4/mod/mod_proxy_wstunnel.html enabled? I haven't touched Apache in years, so I can't help much here - but this may be another one worth documenting if you can get it working. :) |
I just try to debug this. First I tried the proxy_wstunnel but I didn't succeed. Now I tried something like this
However, it's difficult to say whether the error comes from Apache or from Inbucket. Is there a log in the Inbucket container and if yes, where can I find it? Thank you! |
Never mind - seems I found it already:
Did I mention, that I am not very experienced with docker as well? What am I doing here... 😟 |
The start script inside the container lives here: https://github.com/jhillyerd/inbucket/blob/master/etc/docker/defaults/start-inbucket.sh I don't see it specifying a log file, so I'm pretty sure it's logging to stdout or stderr |
Yes, it is. I now see that the container is receiving the request but throws an error:
Let's see if I get further... |
Inbucket Monitor is my first and only experience with websocket, so I'm not very knowledgeable on how it works. but you might be able to leverage packet capture to compare packets entering and leaving the apache proxy: |
Hey guys,
I was able to solve it by adding ProxyPass rule for
Apache module @jhillyerd I think it will be helpful if settings for popular web servers (apache, nginx) are presented in a inbucket documentation |
The demo site is now built with docker-compose: https://github.com/jhillyerd/demo.inbucket.org When I have time I'll play around with reverse proxy + Let's Encrypt. |
@zaverden Hi! Thanks for your reply! But whats super-strange - when i open montoring page at first time - it says disconnected, but when i hit F5 (just refreshing) - it becomes connected and everything works! |
@jhillyerd thanks, this is not urgent, i living with this for 2 months or so :) |
I made works with apache proxy using a workaround for socket.io that can be found accross the web and unsetting the Origin header.
|
I just rebuilt my routing with nginx proxy manager (https://nginxproxymanager.com/). Now it works. From my point of view the issue is solved but it seems there are some other people who still have problems. I can provide my solution, if anyone is interested. |
I installed inbucket from docker - the Monitor doesn't seem to work. I only get the message
Disconnected
The text was updated successfully, but these errors were encountered: