Gloox: "onConnect" not called Linux Mint 13 - linux

This question is a bit tricky and I don't really think I'll find an answer but I'll try anyway.
I'm writing a C++ program using gloox for XMPP transfers. My problem , which is happening only on my computer, (Linux Mint 13 MATE 32bits) is that the "onConnect()" handler is never called. This was not a problem when we were using the jabber.org server (actually, I didn't even know it was not called...) but problems started occuring when we installed a LAN ejabberd server.
Using jabber.org server, even though "onConnect" was not called the application was able to send/receive messages fine. But not on ejabberd. At first I thought it was a problem with the certificate or something but then we tried on our other Linux boxes (Ubuntu 12.04 x64, Arch x64 and Debian 6.0 32(the server is running on this machine)) and it works fine on any of those computers. Plus, the sister application using Python-Twisted can connect fine on the problematic computer.
The validation function, onTLSConnect() is called everytime and it returns true. On the problematic computer, when using our ejabberd server, the connection isn't established after that and the socket closes it self after about 25 seconds ( and onDisconnect() is called...)
So, my question: Could there be an internet setting (like a firewall?) that is preventing Gloox to terminate the connection. OR has anyone experienced a similar issue?
Thanks!
EDIT: I made a VM of Mint 13 MATE 32bits on my laptop and the same problem arises. I can now conclude it's bug somewhere in mint.
EDIT2: Works fine on Mint 64 bits....I opened a ticket on Mint's bug page

i meet this problem last week, it seems a bug of gloox.
it happened on 32 bit linux.
see this https://bugs.launchpad.net/linuxmint/+bug/1071416
in fact.you are "online" on the server, but your "presence" state is unknown. you can simply send a "Chat" state to the server to continute your work.
like this
#ifdef GLOOX_ON_CONNECT_BUG_PATCH
Poco::Thread::sleep(3000);//休息3秒,然后连接成功,哎,该死的bug
this->is_connected = true;
client->setPresence(Presence::Chat, 0);
#endif

Related

Port Forwarding Not Working On Virtual Box v6.1 Even on seperate computer

So I've been having trouble with port forwarding for my virtual box (Specifically Version 6.1) lately, I went so far as to go out and spend $180 on a new router but still nothing! I've been having this problem for weeks now and I'm slowly narrowing down the issue, It cant be my router since. You know.. Bought a new one.. So then I thought it was just Kali Linux so I tried Parrot OS and nothing, I tried BackBox6 and nothing, I tried BlackArch Linux and nothing! So it can't be the operating system, then I thought it was my laptop, I have the ASUS ROG Strix G731GT With a core i7 9th running a GTX 1650ti Graphics Card on Windows 10, I got it fixed like two months ago due to Networking issues not really related to this and after I got it back port forwarding worked for a bit then all of a sudden bloop! It stopped, I have no idea what could of caused it, I decided to use ngrok for port forwarding and that worked.. Till it didn't! That stopped working all of a sudden! at this point I thought it was my computer so I got my old school laptop (Which surprisingly ran Linux fine) and set that all up and I connected my main laptop to a hotspot, and lord and behold!... It didn't work... Nowww I got to thinking... Could it be my Virtual Box? I Don't know, I'm currently testing each and every version of Oracle VM Virtual Box right now to see if its the issue, I remember I asked a questions before about my Virtual Box not working when copying text from my host computer to the Virtual Machine and someone replied saying the version I had was a bit buggy and didn't work well and he gave me a link to a different version and it worked, this was at the time that ngrok still worked and port forwarding didn't I didn't actually test to see if port forwarding works though, now i cant find that question, he said something about guest additions I don't know, please if you know anything at all that can help me feel free to let me know and if you have any questions about my hardware or software feel free to ask I'll be refreshing my page very often lol, also if you decide to leave a comment saying this question cannot be posted how about you instead forward me to somewhere that allows these types of questions, that would be helpful -_-. Thanks.

Using XRDP to connect linux to Windows PC from LINUX Client

Has anyone successfully used XRDP/freeRDP to remote login to a Windows PC from a LINUX Client? I did some research on the matter and I found there may be incompatibility issues. However those posts were quite old.
I would like to use the latest XRDP or freeRDP
The site says the following:
"The goal of this project is to provide a fully functional Linux terminal server, capable of accepting connections from rdesktop, freerdp, and Microsoft's own terminal server / remote desktop clients.
Unlike Windows NT/2000/2003/2008/2012 server, xrdp will not display a Windows desktop but an X window desktop to the user.
So it sounds like I can communicate between a Linux Box and Windows. But it sounds like the Windows PC can only be the client logging into a Linux Server and not vice-versa."
Is this true?
That's not true. You can using a freeRDP client in Linux connecting to a server on Windows. I've just tried the latest freeRDP code in Ubuntu, and I've tested Win7/Win10, both are OK.
Follow the instruction of freeRDP in the following link:
https://github.com/FreeRDP/FreeRDP/wiki/Compilation
and hope you make it.
Ps: There may be some connectivity issues, like firewall or something, just google it.

Debugging (possibly) OpenCV related crash on Jetson TK1

What I am looking for: I need help debugging consistently happening system crashes on my Jetson TK1.
System: I am using a Jetson TK1 board from NVIDIA. Updated to 21.3.4 Grinch Kernel. All drivers installed, libopencv4tegra installed alongside ROS (using hacked deb packages to not overwrite openCV). Everything used to work perfectly in this exact setup.
When the crashes happen: I am running a VSLAM program, which uses a camera connected on the USB port. The program is making heavy use of OpenCV. The program used to run for over 1 month without problems in the current setup. Now, I am getting consistent system crashes which result in a total system freeze. When I am connected over ssh, I loose connection. When I connect a monitor to see what happens on the system while it crashes, I can see everything freeze. The USB port also seems to turn off, since not even USB mouse and keyboard work anymore post-crash. The Jetson stays on though.
Crash Logs: I have tried looking into the /var/log/ logs, but none of them show any messages for when the crash happens.
I have run memtester before. It didn't return any bad memory. While running and crashing, the memory onboard is used at about 60-75% (as shown by "top"). CPU usage is around 60%.
The weird thing is that this exact setup has been running just like this for over a month now.
I need to know: are there any other logs I could find information about the crash in? How could I find out if this is related to a hardware failure or whether there's a software issue?
Thanks
-Marc

Keyboard problems with Debian 7 64bit server

Running an Apple USB keyboard (the large one with a numpad)
I'm unable to use the ALT-key, so I can't access fairly vital symbols like: [] and {}.
Swedish characters doesn't work either, even though it's less of an issue.
I've followed the instructions here:
https://wiki.debian.org/Keyboard
But regardless what I set, I can't notice any differences (even after reboot).
The server is setup on a VPS so I'm using VNC to access the console. I'm using the built in Screen sharing client of OS X Mavericks.
Any help would be very much appreciated
/J
Wasn't a keyboard problem at all.
Seems the problem is with the built in VNC client in OS X Mavericks.
If I use a Java client the keyboard works great.

Connection rejected by remote interface (FB 2.1 SS linux x86)

I'm currently have a Firebird Super Server 2.1 x86 installed at my Ubuntu Server 11.0.
From time to time the server stops accept connections... resulting the error msg above (for clients)
"Connection not established. Connection rejected by remote interface."
To solve the problem, I need to restart the firebird service, and everything becomes OK!
The firebird.log does not tell me anything...
Any ideas about what is happening?
I had a similar instalation stack, and a similar problem.
I upgraded my firebird to version 2.1.4 after reading this bug fix that was backported from 2.5.
At the time, I also had to upgrade my hardware. The problem has not repeated since, but I'm not 100% sure that the upgrade solved the problem
Hope this helps.
Alejandro

Resources