Jump to content

claudio.piffer

uniGUI Subscriber
  • Posts

    91
  • Joined

  • Last visited

  • Days Won

    9

Posts posted by claudio.piffer

  1. 23 hours ago, Ario.Paxaz said:

    Hi Claudio

    Thanks for replay.

    But It seems that you misunderstood my question.
    I don't need a reverse proxy.
    I want the panel that I wrote with Uni to be opened as HTTPS instead of opening as HTTP in Linux.
    Basically, I want to add SSL to it
    But Linux does not support stand-alone project for SSL.
    I need a solution for this problem.

     

    Regards

    Hi Ario

    >>But It seems that you misunderstood my question.

    Yes, I understood exactly what you need 😉

    For a secure and updated solution for SSL, reverse proxy is the answer. You can also create Apache module but apache + unigui + linux has some limtations (mainly due to how the session is managed in unigui).

    This is the sequence diagram:

    image.thumb.png.65159e579bfc489909eb561ea38cfa18.png

     

  2. Hi Ario

    I use docker and with a compose docker I use nginx reverse proxy which receives requests in https. Nginx is the only service exposed by docker-compose and when it receives a request it redirects it in http to a internal standard unigui application.

  3. 2 hours ago, Skyp said:

    I use it on Linux - in HyperServer StandAlone and it works. I can't say what will happen with ISAPI

    Great! Thank you.

    In fact I could replace the Apache project with a standalone project and add HyperServer. Are you using quicklogger in your solution?

  4. Hi Skyp

    thank you very much for your answer. I forgot to indicate that module is a (linux) apache module and I have already tried with quicklogger but when I active the logger the server is no longer responding.

    In httpd.conf I tried to "tile" the log file but after some time the console block the server, probably because the rotation is active

    I have to investigate

    Best regards

     

     

     

  5. Hi,

    I need to deploy uniGUI app in k8s and the request is that log generated of the app written only to standard output and not to files. Is it possible to configure the log in such a way that it no longer writes any files but directs the log only to stdout?

    App is compiled for Linux!

    Thank you very much

  6. 9 hours ago, mikromundo said:

    Not yet my friend.

     

     

    Thank you for your answer Flavio.

    For the next project I need a dark theme (customer request).  In a RADCore project I can use a uniGUI theme? I modified one of the themes I bought some time ago and adapted it to the customer's requests.

    In a standard uniGUI app work fine, but if I try to use it in a RADCore project it doesn't load (but I must tell you that I haven't done many tests because I'm a bit full)

    Are there any special things to do? I need to customize the ServerModuleCustomCss_userdef.Css?

    Thank you very much

  7. 22 hours ago, Stemon63 said:

    Hi, 
    all component's sets  lack 2 essential components:
    1) Local store, for use dataset downloaded on client for repetitive operations (countries, cities, etc...)
    2) A true Lookup combo (and Db version) with a grid inside popup, with autocomplete on search input. Like devexpress Vcl Lookups. This Lookup must be works also into Dbgrid editing.
    Those components are essential for a fast and true porting from Desktop to web.
    If there is a component set that have those features, I buy it immediately 🙂
    Thanks

    +1 for Local store 😉

    • Like 1
  8. HI,

    I just convert a my app from Delphi Sydney to Alexandria. I converted everything without problems and the compilation is ok!

    The problem is with classes that derive from TUniFrame. Alexandria injects into the dfm the PixelsPerInch property which does not exist in the base class and this rightly causes an error at runtime.

    If I delete the property in the dfm out of the IDE and recompile everything works fine.

    Unfortunately, however, every time I save a modification of a class derived from TUniFrame, the problem returns.

    Is there a workaround for this?

  9. 11 hours ago, Sherzod said:

    Hello, 

    We will check it.

    Hi, Sherzod

    thank you very much for your support and sorry if I wasted your time but the problem of the unicode char is solved. It's not a problem of unigui but of an incorrect configuration on my application server.

    It remains only to be verified because the icon to clear filter in uniDBGrid is empty on linux and correct in windows

     

    Thank you very much!!!

     

     

  10. HI,

    I have a strange problem with view the unicode char in uniMemo and uniDBLookupComboBox when the app runninig in linux. When I run app in Windows all work fine.

    The strange thing is that on the unidbgrid component the characters are seen correctly!

    UniMemo

    image.thumb.png.fadd7abec4e408097941558574b565fd.png

    uniDBLookcupComboBox

    image.png.0e8ea4e0a63d63f0d3e2d6c236705bdb.png

    While in DBGrid the characters are correct

    image.thumb.png.fe85d93c8b22ce1cb4251ab0d128ff2a.png

     

    This "problem" it is only under linux. In Windows everything is ok

    Thank you very much

     

  11. 1 hour ago, Farshad Mohajeri said:

    You can also install in service mode. Have you tried it?

    No, because the docker container needs a process (last command) to keep running, otherwise the container will exit/stop. Therefore, the "service", cannot be used directly in the Dockerfile.

    There are some tricks to take advantage of a service but I don't like them a lot

    Thank you very much!

    • Like 1
  12. 2 hours ago, Farshad Mohajeri said:

    How do you run the HyperServer executable?

    Hi Farshad

    In docker when you define the image you must define the "process" that docker run in container.

    For this in dockerfile you can use the ENTRYPOINT keyword (or CMD). It's ha two forms:

    1. exec: ENTRYPOINT [ "/syncrosign_web/hyper_server" ] (recommended choice)

    2. shell: ENTRYPOINT /syncrosign_web/hyper_server

    I used the first form (exec). 

    The difference is the process attached to a PID 1.

    In exec mode the process of the PID 1 is the HyperServer

    image.png.a18143ba73cc4fe77ca03d7c6db598b6.png

    In shell mode the process of the PID 1 is the shell

    image.thumb.png.dd2d39972460e2eb6cc29268b1657720.png

    Docker attach alway the process that keeps the container alive on the PID 1

    With your question I got the doubt and I changed the ENTRYPOINT in the shell form.

    In shell mode everything works correctly. The processes are closed a few seconds later and the session count is correct.

    With this "workaround" I solved it. It would be nice if, in a future version of the HyperServer, the issue could be solved using also the exec because use of the shell mode could be problematic if I need to send any sort of POSIX signals to the container since /bin/sh won't forward signals to child processes.

    Thank you so much Farshad, your support was crucial!!

    • Like 1
  13. Hi Farshad

    I just did a test with the same "executables" but with HyperServer on Apache. (with docker is simply 😉
    In this case the purge node remains for a few seconds and is replaced with a new active node.

    I always have an access violation on my process (now I'm investigating) but despite this with Apache the system works as I expect.

    Could it be a problem with the standalone HyperServer version?

    Thank you very much

  14. Hi Farshad

    the log of the node 0 is this:

    sw_syncrosign_web: 58E93740: 12:39:27 []:>--------------------------------------------------------------<
    sw_syncrosign_web: 58E93740: 12:39:27 [TUniServerModule]:Server First Init.
    sw_syncrosign_web: 58E93740: 12:39:27 [TUniServerModule]:Start Path = /syncrosign_web/
    sw_syncrosign_web: 58E93740: 12:39:27 [TUniServerModule]:Node Id = 0
    sw_syncrosign_web: 58E93740: 12:39:27 [TUniServerModule]:Node MaxSessions = 250
    sw_syncrosign_web: 58E93740: 12:39:27 [TUniServerModule]:Starting HTTP Server on Port: 16384...
    sw_syncrosign_web: 58E93740: 12:39:27 [TUniServerModule]:HTTP Server Started on Port: 16384
    sw_syncrosign_web: 574E5640: 12:39:52 [TUniGUIServerModule.AppHandleException-]:EAccessViolation : Access violation at address 00000000009D5BBA, accessing address 00007FB1C36354E2 : Addr: $00000000009D5BBA
    sw_syncrosign_web: 54CE0640: 12:40:08 []:Node-0, Terminate Started.
    sw_syncrosign_web: 58E93740: 12:40:08 [TUniServerModule]:Shutting Down Server.
    sw_syncrosign_web: 58E93740: 12:40:08 [TUniServerModule]:Stopping HTTP Server.
    sw_syncrosign_web: 58E93740: 12:40:08 [TUniServerModule]:HTTP Server Stopped.
    sw_syncrosign_web: 58E93740: 12:40:08 [TUniGUISessionManager]:Terminating Session manager.
    sw_syncrosign_web: 58E93740: 12:40:08 [TUniGUISessionManager]:Stopping Cache Eraser...
    sw_syncrosign_web: 58E93740: 12:40:08 [TUniGUISessionManager]:Cache Eraser Stopped.
    sw_syncrosign_web: 58E93740: 12:40:08 [TUniGUISessionManager]:Destroying Worker Threads.
    sw_syncrosign_web: 58E93740: 12:40:08 [TUniGUISessionManager]:Session manager terminated.
    sw_syncrosign_web: 58E93740: 12:40:08 [TUniServerModule]:Server Shutdown Completed.
    sw_syncrosign_web: 58E93740: 12:40:08 []:<-------------------------------------------------------------->
    sw_syncrosign_web: 58E93740: 12:40:08 [Terminated]:Exit Code: 0

    there is this exception:

    sw_syncrosign_web: 574E5640: 12:39:52 [TUniGUIServerModule.AppHandleException-]:EAccessViolation : Access violation at address 00000000009D5BBA, accessing address 00007FB1C36354E2 : Addr: $00000000009D5BBA

    This exception in debug not occour! TUniGUIServerModule.AppHandleException??

    and then there is the closing of the HTTP server (that's why HyeprServer can't connect right?)

    So, if I interpret it correctly, the process doesn't actually close but stays "hanging" right?

    Thank you very much!

     

     

  15. 21 minutes ago, Farshad Mohajeri said:

    Ciao,

    http://www.unigui.com/doc/online_help/configuring-apache-for-linux.htm

    Nel link sopra si afferma che

    StartServers        1
    ServerLimit         1

    Dovrebbe essere regolato come sopra.

    https://httpd.apache.org/docs/2.4/mod/event.html

    Hi Farshad,

    If I check the status of apache, it shows me a warning saying that with the setting of ServerLimit to 1 the maximum number of simultaneous sessions is a maximum of 25. At the moment MaxRequestWorkers I set it to 150 but I think that with this setting it ignores it and works at maximum 25. The "problem" is that in production I can also have 800-1000 users and all these working more or less in the same time slots so with such a high number of accesses it is easy to reach 25 simultaneous calls.

    >>Purged Nodes should go away in a few seconds. If they don't then there is a problem. You check the log file for details.

    Yes you are right! I check the log of the HyperServer and I see this problem:

    hyper_server: A77FE640: 12:10:17 [TUniHyperNode.TerminateNodeProcess.WaitForSingleObject]:Node #0, Error: System error:   6B
    hyper_server: A77FE640: 12:10:17 [TUniHyperNode.Terminate]:Node #0 forcefully terminated.
    hyper_server: A77FE640: 12:10:18 [TUniHyperNode.Terminate]:Node #0 Node process is still active. Termination failed...
    hyper_server: A77FE640: 12:10:19 [SendCommand Error, Node: 0]:Socket Error # 111 Connection refused.

    Can you give me some indication on what to investigate?

     

    Thank you very much!!

     

     

     

     

     

×
×
  • Create New...