My Web App is running on Debian 12 on a LightSail server, installed with Tim’s LifeBoat. My app is depending heavily on UrlConnection because almost all it does is communicate with other servers and show the outcome in a customer facing portal. I have subclassed UrlConnection and use it for async communications, so I use delegation with ‘WeakAddressOf’ a lot to handle loading data in the fields and listboxes upon ContentReceived.
Every now and then, and hard to reproduce (and only occuring on Linux!), the app crashes with the above mentioned error I found in the log. The numbers that are shown in the errordescription vary a little bit. In nginx log I find a more detailed description of the error:
2024/11/04 13:01:36 [error] 15158#15158: *6980 connect() failed (111: Connection refused) while connecting to upstream, client: 213.34.xxx.xxx, server: demo.xxxxx.cloud, request: “POST /9041C0EF367D81556B9B8892F273BF4EDF7B07A2
D1308B799149FB94ACE65B1B/data/wjteJp/rowdata HTTP/1.1”, upstream: “http://127.0.0.1:42002/9041C0EF367D81556B9B8892F273BF4EDF7B07A2D1308B799149FB94ACE65B1B/data/wjteJp/rowdata”, host: “demo.xxxxx.cloud”, referrer: “https://demo
.xxxxx.cloud/”
demo.xxxxx.cloud is the server running my app and the IP address is my public IP address from where I was accessing the app through my browser.
At first I thought my app was creating too many connections. But also when I limit that to 1 connection per user action this error occurs.
I hope that anybody has a clue or knows a solution. Below a ldd of the loaded libraries, nothing strange there I think:
linux-vdso.so.1 (0x00007ffdc2ba3000)
XojoConsoleFramework64.so => /home/admin/.com.strawberrysw.Lifeboat/demoxxxxxcloud/xxxxx Libs/XojoConsoleFramework64.so (0x00007f32d0e00000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f32d0c1f000)
libgobject-2.0.so.0 => /lib/x86_64-linux-gnu/libgobject-2.0.so.0 (0x00007f32d0bc0000)
libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007f32d0a88000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f32d3466000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f32d3461000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f32d345c000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f32d09a9000)
libunwind.so.8 => /lib/x86_64-linux-gnu/libunwind.so.8 (0x00007f32d3440000)
libunwind-x86_64.so.8 => /lib/x86_64-linux-gnu/libunwind-x86_64.so.8 (0x00007f32d098c000)
libc++.so.1 => /home/admin/.com.strawberrysw.Lifeboat/demoxxxxxcloud/xxxxx_portal Libs/libc++.so.1 (0x00007f32d0400000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f32d096c000)
/lib64/ld-linux-x86-64.so.2 (0x00007f32d3473000)
libffi.so.8 => /lib/x86_64-linux-gnu/libffi.so.8 (0x00007f32d3432000)
libpcre2-8.so.0 => /lib/x86_64-linux-gnu/libpcre2-8.so.0 (0x00007f32d08d2000)
liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007f32d08a3000)
6 posts - 3 participants