Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Unable to run FreeRDP in Windows #1

Closed
nsathishk opened this issue May 28, 2012 · 8 comments
Closed

Unable to run FreeRDP in Windows #1

nsathishk opened this issue May 28, 2012 · 8 comments

Comments

@nsathishk
Copy link

I downloaded FreeRDP 108 from your website, installed in on my Windows XP (32-bit) and ran wsgate - got the error
C:\Program Files\FreeRDP-WebConnect\bin>wsgate
Could not read config file '/usr/i686-pc-mingw32/sys-root/mingw/etc/wsgate.ini'.
I tried to give the actually path of wsgate.ini file ( in C:\Program Files\FreeRDP-WebConnect\etc ) but always got the same error.. unsure if I am missing any pre-requisite step (such as installing mingw or cygwin..) , please point me to available documentation on how to get the websever running so that I can open the index.html and login to another Windows box.

thanks,
Sathish
nsathishk@gmail.com

@nsathishk
Copy link
Author

Ok, after looking at the code wsgate_main.cpp, I realized I should use -c with the ini file name but now I got a different error.
C:\Program Files\FreeRDP-WebConnect\bin>wsgate -c ../etc/wsgate.ini
ERROR: Error while loading certificate: error:02001003:system library:fopen:No s
uch processerror:20074002:BIO routines:FILE_CTRL:system liberror:140DC002:SSL ro
utines:SSL_CTX_use_certificate_chain_file:system lib

Not sure how to disable loading certificates.. I just need it connect

@nsathishk
Copy link
Author

I updated wsgate.ini to use just port 80 and it worked!
Excellent software!. Specifically, I wanted to connect to RDP via a Socks proxy and FreeRDP Webclient made it super easy (there are really no easy solutions out there).
Thanks.
Sathish

p.s. please consider changing default ini file reference location (line 1534) and default values in the ini file to make it work out of the box for Windows users.

@felfert
Copy link
Member

felfert commented Jun 8, 2012

Just to clarify things (in this early state, there's no doc for that yet, sorry):
The windows installer generates a certificate, and installs wsgate as as service which should run out of the box and logs into the windows application log.
So:
The normal user is not expected to run wsgate from the commandline.
On windows, the commandline variant is only intended for debugging during development.
The ini file is created at install time fitting the needs of the service (relative paths, seen from the application dir). So, if you try to run from the commandline you should cd one level up of bin/ and then run it with:

bin\wsgate.exe -c etc/wsgate.ini

@vmur
Copy link

vmur commented Jun 11, 2012

Hi Fritz,
I have installed FreeRDP 138 on wndows 2008 webserver / 32 bit.
I can login, but after several seconds I was logged out and the freerdp service must be restarted.

volker.

@vmur
Copy link

vmur commented Jun 11, 2012

Here is the event-error:

  • 1000 2 100 0x80000000000000 122290 Application h1936171
  • wsgate.exe 1.0.0.138 4fd63c1b msvcrt.dll 7.0.6002.18551 4ee8cc5a c0000005 00009db9 778 01cd48096eca494e

Fehlerhafte Anwendung wsgate.exe, Version 1.0.0.138, Zeitstempel 0x4fd63c1b, fehlerhaftes Modul msvcrt.dll, Version 7.0.6002.18551, Zeitstempel 0x4ee8cc5a, Ausnahmecode 0xc0000005, Fehleroffset 0x00009db9, Prozess-ID 0x778, Anwendungsstartzeit 01cd48096eca494e.

@felfert felfert reopened this Jun 12, 2012
@felfert
Copy link
Member

felfert commented Jun 12, 2012

Hi Volker,
It appears you have 2 different issues. Also your problem is completely different from the original poster's. So: In the future please open at least a new issue instead of reusing an old (closed) one.

About your first problem:
How exactly did you produce this effect (forced logout after a few seconds)?
I'm asking, because my guess is: You tried to connect from the same machine (where you installed FreeRDP-WebConnect) to itself (which naturally closes the the originating session, because only one session (console or RDP) is allowed by Windows 2008 in it's default configuration, without having a TS-license installed).

About the second problem (crash):
This might be either an incompatibility of msvcrt.dll or simply triggered by the unexpected close from first problem.
What browser did you use?
I'm asking, because Chrome has a nasty habit of not sending the WebSockets close packet when closing unexpectedly. I had to create a rather crude workaround for that misbehavior. This workaround might have lead to the crash.

-Fritz

@vmur
Copy link

vmur commented Jun 12, 2012

Hi Fritz,

the problem is a little different:

At first: I do not run Firefix13 on the same machine, FreeRDP runs .

I can login normally and the Remote Screen is shown.But when I make a left mouseclick, the login screen is shown and the RDPService is crashed.

Volker

@ghost ghost mentioned this issue Oct 5, 2012
alexpilotti added a commit that referenced this issue Jun 11, 2014
@alexpilotti
Copy link
Contributor

Hi, closing this issue as it's very old and refers to an obsolete codebase.
Please check the updated version and feel free to reopen the issue if you still experience it.

Blog post about how to install on Windows:
http://www.cloudbase.it/freerdp-html5-proxy-windows/

Thanks,

Alessandro

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants