Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Install on Ubuntu 24.04: no possibility to login with admin #189

Open
mhansi12 opened this issue Jun 14, 2024 · 4 comments
Open

New Install on Ubuntu 24.04: no possibility to login with admin #189

mhansi12 opened this issue Jun 14, 2024 · 4 comments

Comments

@mhansi12
Copy link

Ubuntu 24.04 LTS: PHP 8.3.6, all required php modules, mariadb-server(10.3) or mysql-server(8.0.37) tested, apache 2.4.58

When using CLI installer, about 50 lines of warnings:

PHP Deprecated:  Creation of dynamic property ADODB2_mysql::$quote is deprecated in /opt/ona/www/include/adodb/adodb.inc.php on line 5749
PHP Deprecated:  Creation of dynamic property ADORecordSet_mysqli::$adodbFetchMode is deprecated in /opt/ona/www/include/adodb/drivers/adodb-mysqli.inc.php on line 1494 
...

Installation seems ok, because openening start page is possible. SQL tables are created. But unable to login to "admin"
Web page feels "frozen" . No pull-down menu nor any link opens other pages. Page does not let me change "guest" account on field for username. Only a small frame appears on the top ( see screenshot)
2024-06-14 12_08_49-OpenNetAdmin __ 0wn Your Network – Mozilla Firefox

  • Stays as "guest"

Any ideas what could be wrong here ?

@HugoTH85
Copy link

Hi @mhansi12,

It is strange indeed... Have you tried to access as admin via trying to connect directly on http://your_website_url/login (or https depending on what you have set up) ?

It may work, else I don't have any solutions...

@mhansi12
Copy link
Author

Thank you for your answer !
No, the login is not possible with the URL you suggested.

I assume there is a general wrong step I made during my setup. I am running this instance behind a reverse proxy ( haproxy ) .
Maybe I have to take care of that situation, but I was not finding anything that leads to my problem. Please note the word "false" below the "Menu" Button. For me this is another indicator of a very general problem. ( permissions ?)

I have removed my installation and started from scratch. I was able to replicate the issue immediatly. I came to the exact same situation.

@HugoTH85
Copy link

I don't know if it is the source of your problem, but be careful when using a reverse-proxy with open net admin, especially for the cookie "ONA_SESSION_ID" because it will always have your server URL as its domain instead of your reverse-proxy URL.
So try to access to your website with your server URL at first and check if your issues are still here.
If your issues are not here, then your reverse-proxy is the "problem". You'll need to change the ./ona/www/include/functions_general.inc.php file, line 1266 :
Modify this line : 'domain' => $_SERVER[‘SERVER_NAME’],
To this line : 'domain' => $_SERVER['HTTP_X_FORWARDED_HOST'],

@mhansi12
Copy link
Author

yes, the reverse proxy is the problem ! direct access works. But your hint about the "domain" statement does not work. Still no change in behavior ( changed browser to avoid caching issues ...)
Any other ideas

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

No branches or pull requests

2 participants