As everyone here knows, I’ve always had great confidence in our great dev team!
Guys like @stephdl really push the limits, no matter if it’s the keyboard & code or two wheels and a mountain slope!
And @oneitonitram
Congrats on the speed you’re learning, long way to go, but you’re making amazing progress!
Well, you do have a great Mentor in @stephdl !
api-cli run update-module --data '{"module_url":"ghcr.io/geniusdynamics/glpi:genius-glpi","instances":["glpi1"],"force":true}'
Tested scenarios
A) New installation - works well with no issues
B) Update from existing Image - works well, and database is kept intact.
C) All dashboard errors have been handled
D) Access is directly on the main domain with no trailing /glpi
Please test test and test, report any finding, before merging this to be the main container for use.
@mrmarkuz kindly help audit the code of the container, and its corresponding scripts, entrypoint.sh and db_setup.sh
All previous Suggestions have been considered and applied, with some more cosmetics improvements
…but first access to webpage showed just an error (same after waiting more than 10 minutes, same behaviour with another new instance):
Error: An error has occurred, but the trace of this error could not recorded because of a problem accessing the log file.
Log (slow webserver restart?):
2024-03-22T23:59:06+01:00 [1:glpi2:glpi-app] Restarting Apache httpd web server: apache2.
2024-03-23T00:01:40+01:00 [1:glpi2:systemd] Created slice User Background Tasks Slice.
2024-03-23T00:01:40+01:00 [1:glpi2:systemd] Starting Cleanup of User's Temporary Files and Directories...
2024-03-23T00:01:40+01:00 [1:glpi2:systemd] Finished Cleanup of User's Temporary Files and Directories.
…and log sits quietly there.
After saving instance settings a second time, login page was accessible.
Notes from official documentation:
Default user accounts are:
glpi/glpi admin account,
tech/tech technical account,
normal/normal “normal” account,
post-only/postonly post-only account.
For obvious security concerns, you’ll have to delete or edit those accounts.
Before removing the glpi account, please make sure you have created another user with super-admin profile.
From what I could observe from official modules, currently it removes the old instance and creates a new one from backup (same internal UUID but different name ID). Don’t know in which order of actions.
Mar 23 12:40:58 R1-pve.rocky9-pve.org glpi1[49874]: Dload Upload Total Spent Left Speed
Mar 23 12:40:58 R1-pve.rocky9-pve.org glpi1[49874]: [158B blob data]
Mar 23 12:40:58 R1-pve.rocky9-pve.org glpi1[49874]: curl: (7) Failed to connect to 127.0.0.1 port 80 after 0 ms: Couldn't connect to server
Mar 23 12:41:01 R1-pve.rocky9-pve.org glpi1[49907]: % Total % Received % Xferd Average Speed Time Time Time Current
Mar 23 12:41:01 R1-pve.rocky9-pve.org glpi1[49907]: Dload Upload Total Spent Left Speed
Mar 23 12:41:01 R1-pve.rocky9-pve.org glpi1[49907]: [158B blob data]
you broke something with the last curl attempt I think
Mar 23 12:41:04 R1-pve.rocky9-pve.org glpi1[49940]: curl: (7) Failed to connect to 127.0.0.1 port 80 after 0 ms: Couldn't connect to server
Mar 23 12:41:06 R1-pve.rocky9-pve.org glpi-app[49562]: Installation done.
Mar 23 12:41:06 R1-pve.rocky9-pve.org glpi-app[49562]: Found 0 table(s) requiring migration.
Mar 23 12:41:06 R1-pve.rocky9-pve.org glpi-app[49562]: No migration needed.
Mar 23 12:41:06 R1-pve.rocky9-pve.org glpi-app[49562]: Timezones usage cannot be activated due to missing requirements.
Mar 23 12:41:06 R1-pve.rocky9-pve.org glpi-app[49562]: Run the "php bin/console database:enable_timezones" command for more details.
Mar 23 12:41:07 R1-pve.rocky9-pve.org glpi-app[49562]: Timezones usage cannot be activated due to following errors:
Mar 23 12:41:07 R1-pve.rocky9-pve.org glpi-app[49562]: - Access to timezone database (mysql) is not allowed.
Mar 23 12:45:01 R1-pve.rocky9-pve.org glpi-app[51121]: Timezones usage cannot be activated due to following errors:
Mar 23 12:45:01 R1-pve.rocky9-pve.org glpi-app[51121]: - Access to timezone database (mysql) is not allowed.
check my NS7 rpm you have a trick to load the timezone in mysql
@dnutan
so you are unable to access the webpage completely on your end?
do you have a single cluster or multiple clusters.
is your server localhost or hosted in the cloud
Are you getting the same issue with a fresh isntall?
what os version are you running… cause its weird youre hetting those error and i am not…