Jump to content

Hyperserver with SSL


JohanC

Recommended Posts

Hello,
I use FMSoft_uniGUI_HyperServer_1.90.0.1560 (licensed) with SSL
I have configured hyperserver (hyper_server.cfg) as per your instructions and also the hyper_server.ssl.cfg file 
My reports, are as per your examples using FastReport VCL 6
I create the report and then to view it in UniPDFFrame1.PdfURL := AUrl; I use this code to create the frxPDFExport1.FileName
frReportModule.frxPDFExport1.FileName := UniServerModule.NewCacheFileUrl(False, 'pdf', FileNsurname, '', AUrl, True);
My domain "https://new.sadfm.co.za" is pointed at the IP of my server 
I get this error message when I run reports on my server using hyperserver (but not when I use the standalone version "binary_name=sadfm.exe" on my server)
Message: Missing PDF "https://new.sadfm.co.za/cache/sadfm_exe/n0/0_w8LPJEcDME10B8D85DE/$z$z$z/CORNELIUS-%20Beta%20Scale%20Report.pdf".
This seems to tell me that the pdf viewer is trying to display the file at the location created by NewCacheFileUrl as "https://new.sadfm.co.za/cache/"
This location on the server obviously does not exist
This does not happen when I test on my local development PC,
On my development pc I do not use hyperserver, I could never get it working, maybe because of ESET antivirus
My production standalone app runs on my server, Microsoft Server 2019, absolutely a standard setup, no ESET
I do not know what else to configure and need help to configure HyperServer correctly
When I use hyperserver, everything else works except the reports
Thank you

Link to comment
Share on other sites

On 11/28/2022 at 3:07 PM, JohanC said:

Hello,
I use FMSoft_uniGUI_HyperServer_1.90.0.1560 (licensed) with SSL
I have configured hyperserver (hyper_server.cfg) as per your instructions and also the hyper_server.ssl.cfg file 
My reports, are as per your examples using FastReport VCL 6
I create the report and then to view it in UniPDFFrame1.PdfURL := AUrl; I use this code to create the frxPDFExport1.FileName
frReportModule.frxPDFExport1.FileName := UniServerModule.NewCacheFileUrl(False, 'pdf', FileNsurname, '', AUrl, True);
My domain "https://new.sadfm.co.za" is pointed at the IP of my server 
I get this error message when I run reports on my server using hyperserver (but not when I use the standalone version "binary_name=sadfm.exe" on my server)
Message: Missing PDF "https://new.sadfm.co.za/cache/sadfm_exe/n0/0_w8LPJEcDME10B8D85DE/$z$z$z/CORNELIUS-%20Beta%20Scale%20Report.pdf".
This seems to tell me that the pdf viewer is trying to display the file at the location created by NewCacheFileUrl as "https://new.sadfm.co.za/cache/"
This location on the server obviously does not exist
This does not happen when I test on my local development PC,
On my development pc I do not use hyperserver, I could never get it working, maybe because of ESET antivirus
My production standalone app runs on my server, Microsoft Server 2019, absolutely a standard setup, no ESET
I do not know what else to configure and need help to configure HyperServer correctly
When I use hyperserver, everything else works except the reports
Thank you

Hello

Are you using ISAPI HyperServer?

Also when you get this error, can you please check the related folder whether you have a pdf there or not

Link to comment
Share on other sites

Hello Hayri,
I use HyperServer_service
The latest error says 
Message: Missing PDF "https://new.sadfm.co.za/cache/sadfm_exe/n0/0_6Bb6jQFhai10B99B8CE/$z$z$z/DE%20BRUIN-%20Beta%20Scale%20Comments.pdf".
I found the file on the Windows file-system at:
C:\SADFM\cache\cache\sadfm_exe\n0\0_6Bb6jQFhai10B99B8CE\$z$z$z\DE BRUIN- Beta Scale Comments.pdf
It is the correct file, I can open and view from within Windows, it is 100% OK
The problem seems to be that the file is NOT at "https://new.sadfm.co.za" as there is no such Windows directory
Hope you can help
Thanks

Link to comment
Share on other sites

Hello Farshad,
I will try, but can only do it after 21:00 CAT tomorrow as people are constantly using it before that time and now it is already time to stop working (22:30 CAT)
It is interesting to note that the spaces in the filename is not a problem when I use my app as a standalone binary, in other words, everything is fine until I use hyperserver as a service to manage the binary.  Remember I have a sub-domain ( "https://new.sadfm.co.za") pointed at the IP of my server and I use SSL
Thank you

Link to comment
Share on other sites

I tried it one more time, without spaces in the file-name.
Hyperserver gives the same error message via PDF.js v1.9.426 (build: 2558a58d)
With the binary in standalone mode the report displays correctly in UniPDFFrame1
Thank you

Link to comment
Share on other sites

10 hours ago, JohanC said:

I tried it one more time, without spaces in the file-name.
Hyperserver gives the same error message via PDF.js v1.9.426 (build: 2558a58d)
With the binary in standalone mode the report displays correctly in UniPDFFrame1
Thank you

Hi,

We are using Fastreport / Unigui / Hyperserver 64/ asService / from an SSL portal, without any problem.

Please Try also this :

http://forums.unigui.com/index.php?/topic/12090-fastreport-6_3/

 

Link to comment
Share on other sites

7 hours ago, JohanC said:

Hi,
Thanks for trying to help

Hi Johan,

Humm...i have no subdomain.

 

1. Try to give all authorisations to your folders as admin rights :  (read - write ) :

C:\SADFM\cache\cache\sadfm_exe\n0

2. Try to run your app as admin (project > options > manifest)

 

3. Add an Exclusion to your app for windows defender

http://forums.unigui.com/index.php?/topic/14869-windows-service-issue-via-hyperserver/&do=findComment&comment=81109

 

Link to comment
Share on other sites

On 12/1/2022 at 11:13 PM, JohanC said:

Hi,
Thanks again.
It is now clear that Hyperserver handles domain-names differently (than a standalone uni gui app) if it is a sub-domain
The problem is with hyperserver
I will have to accept that and move on

 

And if you try to open your browser with simply your adress IP server

without domain and sub domain

- without SSL (remove for the test SSL Version from UniServerModule)

http://xxxxxxxx:Port

Link to comment
Share on other sites

Hi,
With SSL enabled = False, with hyperserver, the error is still there
Previously the error was "Message: Missing PDF "https://new.sadfm.co.za/cache/sadfm_exe ....."
now the error says "Missing PDF "http://xxx.xxx.xxx.xxx:port/cache/sadfm_exe ......."
Something wrong with my "hyper_service.cfg" ?

 

Link to comment
Share on other sites

21 hours ago, JohanC said:

Hi,
With SSL enabled = False, with hyperserver, the error is still there
Previously the error was "Message: Missing PDF "https://new.sadfm.co.za/cache/sadfm_exe ....."
now the error says "Missing PDF "http://xxx.xxx.xxx.xxx:port/cache/sadfm_exe ......."
Something wrong with my "hyper_service.cfg" ?

 

Ok,

1. Where is your Fast Report file .fr3 ?

Is it on ServerModule.files folder ?

(This is the perfect location. You can create a directory inside files like :

...\files\MyReports

 

2.  If you just upgrade your Unigui version Runtime, don't forget to copy manually   hyper_service.exe  + hyper_service.cfg

From your developer PC :

C:\program files x(86)\FmSoft\Unigui\Hyperserver

(I  forgot always this, that why i developed EasyInstall_3.0.zip,  please have a look)

 

Link to comment
Share on other sites

Joan,

I confirm :  There is No Problem with Unigui + Hyperserver + subDomain

I just do a test (without SSL) and that works as a sharme  :    toto.coco.net:8077     (site not available,  just  an example)

The PDF is loaded as expected. Probably you have something wrong on installing Service on hyperserver.

You can use this program :

 

FR_HyperServer.7z

Link to comment
Share on other sites

6 hours ago, JohanC said:

Hi,
Currently I use FMSoft_uniGUI_HyperServer_1.90.0.1560

Yes. No problem.

Can you follow the steps on Readme.txt from the pack i sent you.

You will obtain an easy way (automatic) to install your application as service as HyperServer (on CD directory).

Waiting for your feedback.

Be hapy,  I won't let you go until you get there :)

 

______

Once the installation succefful on your server, you can open on a other PC:   

-  1 st Test Server IPAdress :  http://xxx.xxx.xxx:8077               

- 2nd Test your subdomain http://new.sadfm.co.za:8077

and Print to see your pdf.  

Regards :)

Link to comment
Share on other sites

Thanks for trying to help
I am overloaded at the moment and may only get time to look at your solution over the weekend
BTW, I am under the impression that "MyApp" should be a standalone to make it controllable by Hyper-Service

Link to comment
Share on other sites

  • 3 weeks later...

Hi there,
I had a good look at the pack you sent.
It is very complete and your coding is better than text-book !
Thus far I used the examples of FMSoft in building my webserver as a standalone App without any problems, including Hyperserver as a service.
My reports work very well using FastReport and FireDac queries to extract the required data from the FireBird database server.
The changes requested from users of My App has now dried up over the last 2 weeks, therefore I do not need to update my App frequently, and therefore I am happy to work without Hyperserver as a service.
The problem that I encountered "I have a sub-domain ( "https://xxx.xxxxxx.xx.xx") pointed at the IP of my server and I use SSL" is still not resolved when using Hyperserver as a service to "manage" my standalone App.
But once again thanks for trying to help, much appreciated

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...