opennetadmin / ona

OpenNetAdmin IP Address Management (IPAM) system
opennetadmin.com
GNU General Public License v2.0
141 stars 35 forks source link

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

Open mhansi12 opened 5 months ago

mhansi12 commented 5 months ago

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

Any ideas what could be wrong here ?

HugoTH85 commented 4 months ago

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 commented 4 months ago

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 commented 4 months ago

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 commented 4 months ago

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