Tag Archives: note

[note] solve the problem of error during websocket Handshake: Net:: err when using workerman and Apache to create WSS service_ RESPONSE_ HEADER…

The error during websocket Handshake: Net:: err often appears in WSS services generated by Apache proxy_ RESPONSE_ HEADERS_ Truncated , but you can connect successfully by refreshing the page several times

No way was found in the official documents, and finally in the https://github.com/ratchetphp/Ratchet/issues/645 A solution has been found

This is not a worker’s warehouse, but the solution is universal

I could say that when some client disconnects without default websockt close protocol, ratchet keeps the connection “open”, but when a new user connects then ratchet reuses somehow the last “open”(closed) connection… Because the new client uses a old “active” connection, when it sends the HTTP handshake, ratchet complains because it isn’t the default message frame.

It’s the reuse of connections that causes this problem

Modify the configuration file of Apache conf.d/ssl.conf

Add a configuration disableeuse = on in the reverse proxy, and the problem is solved

ProxyPass /wss ws://127.0.0.1:8282/wss disablereuse=On
ProxyPassReverse /wss ws://127.0.0.1:8282/wss

Reference Links

https://github.com/ratchetphp/Ratchet/issues/645

http://doc.workerman.net/faq/secure-websocket-server.html

Docker startup container Error response from daemon: OCI runtime create failed: container_ linux.go:349

This is the error reported to start the container, docker logs is not, the container is created, but can not start the container
Error response from daemon: OCI runtime create failed: container_linux.go:349: starting container process caused “process_linux.go:449: container init caused “rootfs_linux.go:58: mounting \”/etc/timezone\” to rootfs \”/var/lib/docker/overlay2/132f5ea82c98a1206ccb13e13f06c96737036c722c290e989b462c2d77458a8f/merged\” at \”/var/lib/docker/overlay2/132f5ea82c98a1206ccb13e13f06c96737036c722c290e989b462c2d77458a8f/merged/etc/timezone\” caused \“not a directory\”””: unknown: Are you trying to mount a directory onto a file (or vice-versa)?Check if the specified host path exists and is the expected type
Error: failed to start containers: 6e3a9e751884
Check that it is a mapping problem, after checking that the host does not have a directory to be mapped, create the directory and the container will start normally.

WslRegisterDistribution failed with error: 0x800701bc

Installing, this may take a few minutes…
WslRegisterDistribution failed with error: 0x800701bc
Error: 0x800701bc WSL 2 ???https://aka.ms/wsl2kernel

Press any key to continue…

This is the opposite of the government 35770; the link https://github.com/microsoft/WSL/issues/5393
This is loaded in 38142142nd; https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi