Forum Replies Created

Page 2 of 5
  • Uwe Smidt

    Member
    January 20, 2025 at 10:57 am in reply to: Secure Logon to Omnis Web App

    Hey Mats,

    I assume that the clientmethod ‘savepreference’ and ‘loadpreference’ does nothing else but creating or reading a cookie – but my problem is that I can’t read the instance variable that ‘loadpreference’ write into.

    I suppose I can only read it on the client side, but I need it on the server side when I call the client method.

    Yes, maybe Andreas can give me a hint…

  • Uwe Smidt

    Member
    January 18, 2025 at 5:45 pm in reply to: Secure Logon to Omnis Web App

    $Dear all,

    Thank you for your help!

    I have mastered half-way through ‘secure log in’ issue:

    With a little help from ChatGPT, I decided to perform a mutual TLS (mTLS) authentication. In that setup, the server verifies the client’s identity through a certificate, in addition to the client verifying the server’s identity (as in regular TLS). So whenever someone not having a valid client certificate tries to enter my site/web app, Apache will tell to get lost. This works fine and should be super secure. If you want a step by step guide, let me know!

    But now I’m stuck again with the seemingly simple task of using Andreas suggestion to use the jsPreferences sample:

    Saving the prefs works fine, but loading the pref seems to keep the instance variable into which the PrefValue is saved local to client-only. But my understanding was that instance variables are kept in sync between client and server!?!

    Please see my few code lines, and the tool tip saying ’empty’, i.e. the variable icPrefValue has no access to its value. On the remote form, however, <b style=”background-color: var(–bb-content-background-color); font-family: inherit; font-size: inherit; color: var(–bb-body-text-color);”>icPrefValue does display its value.

    How (or when) can I access icPrefValue on the server?

    Best regards

    Uwe




  • Uwe Smidt

    Member
    January 14, 2025 at 11:49 am in reply to: Electronic Invoices – State of the Union?

    Hey guys,
    Finally. some life in this matter – which should be relevant to everyone in the EU – but maybe to a different extent.

    So there does not seem to be a common framework to be used, as I understand only the XML Object.

    Luckily, for me there is currently no urgent need to implement this, but I’d be happy to keep this thread alive with common approaches.

    Thank you, guys!

    Best regards

    Uwe

  • Uwe Smidt

    Member
    January 11, 2025 at 4:07 pm in reply to: Secure Logon to Omnis Web App

    Hi Diego,

    Thank you! I’ll look into that, too!

  • Uwe Smidt

    Member
    January 9, 2025 at 4:23 pm in reply to: Secure Logon to Omnis Web App

    Hi Andreas,

    Thanks for your hint – I’ll have a look at it!

  • Dear Mats,

    As I understand, Debian is the ‘pure’ Server OS, but Ubuntu LTS comes in server flavours as well, as lean & mean as possible. And since UpCloud offer both Debian 12 and Ubuntu 24.04 LTS as VPS images, I wanted to give it a try, because I also have web sites to host with wordpress, and I ran into many problems (e.g. an old, not updateable WordPress itself) with Debian 12 being to old.

    With Ubuntu 24.04, wordpress was up and running without any efforts, so I tried to set up Omnis on Ubuntu, too, in order not to learn and maintain to many different systems.

    Anyway, I did check permissions & ownership, but they were as all the other libs that loaded without a glitch.

    So I assume that it must be something about the version of ‘libldap’ that keeps Omnis OHS from connecting to Postgres.

    But many thanx for your input!

    Bye

    Uwe

  • Hi Mats,
    Happy New Year to you!
    As I said, I do not suspect it to be a Postgres config problem – it seems more in the way that my Ubuntu 24.04 installation is lacking some dependencies…

    I’ve got: postgresql.conf

    listen_addresses = '*'	

    and in pg_hba.conf

    # Database administrative login by Unix domain socket

    local all postgres peer

    # TYPE DATABASE USER ADDRESS METHOD

    # "local" is for Unix domain socket connections only

    local all all peer

    # IPv4 local connections:

    host all all 127.0.0.1/32 scram-sha-256

    # IPv4 remote connections:

    host all all 0.0.0.0/0 password

    # IPv6 local connections:

    host all all ::1/128 scram-sha-256

    # Allow replication connections from localhost, by a user with the

    # replication privilege.

    local replication all peer

    host replication all 127.0.0.1/32 scram-sha-256

    host replication all ::1/128 scram-sha-256

    I can connect from my VPS Debian 12/OHS instance to postgres on the Ubuntu instance, but not from Ubuntu/OHS to Ubuntu/Postgres…

  • Uwe Smidt

    Member
    December 8, 2024 at 10:05 am in reply to: Recommended Cloud Architecture for Omnis

    Finally – after ‘only’ 10 days, I’m up and running !
    What really helped me were…

    – RTFM:

    – Mats

    • he hinted me at upcloud.com. They have an affordable, transparent yet powerful and scalable cloud platform for virtual servers & much more
    • Mats’ step-by-step tutorial to set up a server and site at upcloud.com
    • and his support in all the nitty gritty little problems arising along the way!

    Thank you, Mats!

    My last hick-up was trying to use the omnis_module with Nginx – but it works for Apache only.

    Now my server is Apache only, no Nginx. And so far, I don’t seem to need Nginx’s reverse proxy, since Apache has the concept of virtual servers, which does the same for me: having multiple sites on one web server, being addressed either by different IPs or by different domains.

  • Uwe Smidt

    Member
    December 7, 2024 at 10:17 am in reply to: Recommended Cloud Architecture for Omnis

    Stuck again!

    Please advise if the Web Server for Omnis Headless Server can also be Nginx, or more precisely if Nginx will accept the mod_omnis.so as a module?

    I want to use Nginx as a Proxy for various URL, so I’d prefer to also use it the web server instead of Apache.

    Any clues are very welcome!

  • Uwe Smidt

    Member
    December 5, 2024 at 11:28 am in reply to: Recommended Cloud Architecture for Omnis

    This is where I’m currently stuck – getting the Omnis headless server to run:

    Any ideas where I can get better log info on what is the reason for systemctl not being able to start homnis?

    Dec 05 12:18:22 debian-1cpu-1gb-de-fra1 systemd[1]: Configuration file /etc/systemd/system/homnis.service is marked world-inaccessible. This has no effect as configuration data is accessible via APIs without restrictions. Proceeding anyway.

    Dec 05 12:14:27 debian-1cpu-1gb-de-fra1 systemd[1]: homnis.service: Failed with result ‘exit-code’.

    Dec 05 12:14:27 debian-1cpu-1gb-de-fra1 systemd[1]: homnis.service: Main process exited, code=exited, status=229/SELINUX_CONTEXT

    Dec 05 12:14:27 debian-1cpu-1gb-de-fra1 systemd[1]: Started homnis.service – Omnis Headless App Server Service.

    • Uwe Smidt

      Member
      December 6, 2024 at 4:14 pm in reply to: Recommended Cloud Architecture for Omnis

      I still don’t know where – these kind of – errors are logged, but at least I know the error itself – it was an educated guess that my serial was not accepted (I’ve got 11.0 licensed, but downloaded the current installer of Omnis Headless Server – which is 11.1). homnis is now up & running!

  • Uwe Smidt

    Member
    December 4, 2024 at 12:02 pm in reply to: Recommended Cloud Architecture for Omnis

    Dear Mats,
    I’m up and and a bit running on UpCloud !

    I took the 3€ Developer Starter kit (1 Core, 1GB, 10GB), and went for the free 3 day trial.
    But there is the first ‘disappointment’: This free 3 day trial is so limited (here: automatic firewall that can’t be edited during free trial, blocking Webmin port, and also the postgres port).

    So I’ll have to make a first payment of 10€ (not much, but my idea of a free trial is different – it is more a matter of trust & credibilty than of 10 € being ‘a major investment), and there still is a 30 day money back guarantee…

    I’ll keep you posted!

  • Uwe Smidt

    Member
    December 2, 2024 at 11:49 am in reply to: Recommended Cloud Architecture for Omnis

    Thanks a lot for your helpful replies!
    I use Ionos for my Domains and Email, and have made good experiences with them so far.

    Before Mats reply, I would have gone for a VPS with them (https://www.ionos.de/server/vps; VPS Linux 2Cores, 2GB, 80GB @ 3 €/Month), because their other, more interesting product ‘Cloud Server’ (https://www.ionos.de/cloud/cloud-server) is currently ‘paused’ as I was told by their support.

    But now, I’ll look into UpCloud, first – sounds very interesting!

    If you have further hints, please feel free to let me know!

    And I will keep you posted on my progress!

    Best regards

    Uwe

  • Uwe Smidt

    Member
    December 5, 2024 at 10:10 am in reply to: Recommended Cloud Architecture for Omnis

    I did – so I do have a credit of 25 € – but still they wanted to see cash.

    I’ve paid the 10 € in the meantime, now all is working fine – I just need my time to get into handling a Linux server 😱!

    I’m a bit surprised that Webmin does not offewr support/a GUI for Nginx – just for Apache.

    Can you recommend a GUI for NGINX? I’m not so much the CLI gui …

    Regards

    Uwe

  • Uwe Smidt

    Member
    October 23, 2024 at 10:09 am in reply to: jsProgressBar Control – not really controlling progress…

    Hi Andreas,
    Thanx again!
    I’m afraid I was misled by the online documentation (https://www.omnis.net/developers/resources/onlinedocs/WebDev/02jsremoteforms.html#push-connections) where I had the impression that a REST service is prerequisite to using push messages.

    But the is another online source that gives a great introduction to using push messages:

    Your ‘Full Course: Develop a Mobile App for a restaurant in 5 lessons’ at https://www.omnis.net/developers/academy/online/


    So I’ll have another look into that – thank you!

Page 2 of 5