Jump to content



Photo

Ubot Does Not Work On Windows Server

windows 2019 2016 2012 2008

  • Please log in to reply
9 replies to this topic

#1 charliefinale

charliefinale

    Newbie

  • Members
  • Pip
  • 9 posts

Posted 11 May 2019 - 12:06 AM

Hi

 

After nearly a week of trying I have concluded that compiled ubots do not run on any Windows Servers and I have tried 2019,2016,2012 and 2008.I am hoping someone will be able to shed some light on this. There are some threads about this which suggest Visual C++ x86 and .Net Framework 3.5 are neeeded, both true to a certain point, but exe files fail after the second attempt after a reboot whether they are triggered by the exe directly, a bat file, or even Windows Scheduler. 

 

It apears in most cases (Windows 2019 and 2016 in particular) that the bat files execute multiple times and that that when the exe is trying to run, one , more or all freeze up, and require removing from memory in the task Manager. This usualy does not mean that the next time the exe will run, it usually means a reboot is required. 

 

These bots are compiled using Ubot standard so I have not tested a headless ubot. Has anyone come across this too? Is there a fix? Is it a bug? I want to use Amazon for running my bots and Server are all they have - ubots do run on Windows 10 but Amazon do not provide these. 

 

Any ideas anyone? 

 

 



#2 HelloInsomnia

HelloInsomnia

    Advanced Member

  • Moderators
  • 3182 posts
  • OS:Windows 10
  • Total Memory:More Than 9Gb
  • Framework:v4.5+, unsure
  • License:Developer Edition

Posted 11 May 2019 - 12:44 PM

I've used at least a half dozen different VPS providers and a dozen or more VPS over the years with Ubot and have always had them run. This is what I do:

 

I use Windows Server 2012 or Windows 10

Install .Net Framework 4.5, you can also install 3.5 I guess maybe if using older Ubot version (it can't hurt anyways)

Install Microsoft C++ Redistributable

Disable Windows Smart Screen or just turn off Defender

Restart when prompted and also when completely finished

 

Try running your bots if they don't open then install Fiddler, open it make sure its capturing and then try running your bots, see if there is anything going on with the connections.



#3 HelloInsomnia

HelloInsomnia

    Advanced Member

  • Moderators
  • 3182 posts
  • OS:Windows 10
  • Total Memory:More Than 9Gb
  • Framework:v4.5+, unsure
  • License:Developer Edition

Posted 11 May 2019 - 08:45 PM

I have recentloy tested Windows 2019,2016,2012 and 2008 on Amazon AWS and none of them work. I have posted a new thread on the subject. Is it possible it is the virtualization that is the issue? Or the processor (AMD/x86) or something else. I have no plugins. My issue is that the app freezes when run a second time. It tends to fire a batch file mutiple times. See my new thread on the matter. I hope we can solve this.

 
This is what you asked in that 3 year old thread, I removed it because there is no need to bump threads out of the grave like that when you have a new one open.
 
Now, my question is what are the stats of your server there? 


#4 charliefinale

charliefinale

    Newbie

  • Members
  • Pip
  • 9 posts

Posted 12 May 2019 - 12:11 AM

Thanks. I have tried everything on Windows 2012 and 2019. I am able to run my bot(s) once and then they freeze. Here are the screeenshots with Fiddler of before first bot execution, after first bot execution and then the freeze on the second execution of the same bot (after the first bot window has been shut).This is 2019 with defender off and Framework .Net 3.5 and 4.7 installed and the Visusla Basic C++ x86 installed.  

 



#5 HelloInsomnia

HelloInsomnia

    Advanced Member

  • Moderators
  • 3182 posts
  • OS:Windows 10
  • Total Memory:More Than 9Gb
  • Framework:v4.5+, unsure
  • License:Developer Edition

Posted 12 May 2019 - 11:50 AM

What's odd about those screenshots is that you loaded Google in the Ubot bot and Fiddler didn't pick up on that. So I don't know off the top of my head exactly what's going on with that.

 

But anyways, I guess my next question would be what is your bot doing? Are you able to run a bot that just pops up a simple alert window more than once? I would try that as a test to make sure it's not something in your code, for example I can write a few lines of code that will crash Ubot in a matter of seconds of running it, and that's not a Ubot specific thing either, it would also crash a C# bot for example, probably any kind of desktop application actually.



#6 charliefinale

charliefinale

    Newbie

  • Members
  • Pip
  • 9 posts

Posted 12 May 2019 - 11:53 AM

BTW this server is set up only to test whether Amazon AWS can be used to run Ubots...there is no confidential information on it, so if anyone wants to have a try and make a Ubot work on it, I am happy to supply access to it, All the Amazon servers I have tried (2008,2012,2016 and 2019) can run a bot once before the machine needs a reboot to be abe to run it again. Removing the bot from memory usuing Task Manager does not do it. 



#7 charliefinale

charliefinale

    Newbie

  • Members
  • Pip
  • 9 posts

Posted 12 May 2019 - 12:00 PM

The bot I am testing with is as simple as Navigate to anotheer page, that is it. I tried others, but this is as simple as it gets. 

 

https://charliev4m-g...3MV8xMDU3NDQxOQ

 

Here is a video link of the freeze

 

https://charliev4m-g...4MV8xMDU3NDU1MA


Edited by charliefinale, 12 May 2019 - 12:38 PM.


#8 charliefinale

charliefinale

    Newbie

  • Members
  • Pip
  • 9 posts

Posted 12 May 2019 - 04:07 PM

OK, After a few more hours this is what I have discovered. I opened an Azure account and put up a Windows server 2012 system with 8 gig of RAM. Same problem - actaully would not run the bot at all. Put up an Azure Windows 10 Virtual Server on Azure and voila, it worked. It did require the Visual Basic C++ x86 before it did, but now the bot runs and if I exit it I can run and exit over and over again as it should.

 

In the Windows 10 both .Net 3.5 and 4.7 were installed and I installed the 3.5 manually from an exe although it fetched its own files or so it seemed. 

 

My categorical conclusion is that something in the Server Version of Windows is preventing compiled Ubots working. That is not to say that an undocumented change to the setup may fix this, but none of the usual suspects has as yet worked. 

 

Just installed IIS on Windows 10 - still works fine, but I did notice that Windows defender was completely missing. It was not just switched off as in the other tests I did with Server versions 2008-19 where unistalling it did not seem to be an option. A possible clue. 


Edited by charliefinale, 12 May 2019 - 04:23 PM.


#9 incept

incept

    Member

  • Members
  • PipPip
  • 17 posts
  • OS:Windows 8
  • Total Memory:8Gb
  • Framework:v4.5+, unsure
  • License:Developer Edition

Posted 16 June 2019 - 09:09 PM

Are there any tutorials on how to deploy ubot as a web based Saas with a web interface?



#10 seodog

seodog

    Advanced Member

  • Members
  • PipPipPip
  • 97 posts
  • LocationDallas, Texas. USA
  • OS:Windows 10
  • Total Memory:4Gb
  • Framework:v4.5+, unsure
  • License:Developer Edition

Posted 17 June 2019 - 03:57 AM

Are there any tutorials on how to deploy ubot as a web based Saas with a web interface?

I am interested in this too.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users