cacti icon indicating copy to clipboard operation
cacti copied to clipboard

New templates are not installed during the update

Open xmacan opened this issue 3 years ago • 10 comments

I don't know if the existing templates have been updated. But the new ones are not being installed.

No warning nor error in log.

xmacan avatar Apr 05 '22 14:04 xmacan

@netniV, can you work on this one?

TheWitness avatar Apr 12 '22 23:04 TheWitness

@xmacan do you have a detailed install-complete.log that shows this?

netniV avatar Apr 13 '22 13:04 netniV

Also, can you run a query for:

SELECT * FROM settings WHERE name like 'install_template_%';

netniV avatar Apr 13 '22 13:04 netniV

[root@kaktus /usr/local/share/cacti/log]# cat install-complete.log [2022-04-07 16:49:29] [ global always ] Spawning background process: /usr/local/bin/php '/usr/local/share/cacti/install/background.php' 1649342969.9585 [2022-04-07 16:49:30] [ global always ] Setting PHP Option max_execution_time = 0 [2022-04-07 16:49:30] [ global always ] Setting PHP Option memory_limit = -1 [2022-04-07 16:49:30] [ global always ] Starting UPGRADE Process for v1.2.20 [2022-04-07 16:49:30] [ global always ] No tables where found or selected for conversion [2022-04-07 16:49:30] [ global always ] Switched from to /tmp/cduOKfrl4 [2022-04-07 16:49:30] [ global always ] NOTE: Using temporary file for db cache: /tmp/cduOKfrl4 [2022-04-07 16:49:30] [ global always ] Upgrading from v1.2.19 (DB 1.2.20 (DB: 1.2.19)) to v1.2.20 [2022-04-07 16:49:35] [ global always ] No templates were selected for import [2022-04-07 16:49:35] [ global always ] Finished UPGRADE Process for v1.2.20 [2022-04-07 16:49:35] [ sync always ] Found 0 poller(s) to sync [2022-04-07 16:49:35] [ sync always ] No Remote Data Collectors found for full syncronization [2022-04-07 16:49:35] [ global always ] Installation was started at 2022-04-07 14:49:30, completed at 2022-04-07 14:49:35

xmacan avatar Apr 13 '22 13:04 xmacan

root@localhost [cacti]> select * from settings where name like 'install_template_%'; Empty set (0.001 sec)

xmacan avatar Apr 13 '22 13:04 xmacan

See, that would mirror what your log says "Nothing was selected".

netniV avatar Apr 17 '22 14:04 netniV

I tried update two installations and I selected at least one template on each installation.

xmacan avatar Apr 19 '22 11:04 xmacan

OK, I will have to test that out then.

netniV avatar Apr 19 '22 12:04 netniV

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Jul 19 '22 00:07 github-actions[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Oct 09 '22 00:10 github-actions[bot]

Okay, I have resolved this, but I'm going to open a new ticket as the user should have options that we have on the Package Install page when it comes to upgrades.

TheWitness avatar Oct 18 '22 02:10 TheWitness