Comments (5)
Good morning, Pandora 5.1 SP4 in pandoradb_migrate_5.0.x_to_5.1.mysql.sql have table tmodule_relationship and in this table column id_rt. Please check if you have this table and column in DB.
from pandorafms.
Good morning, in my test of this problem, I executed in next sequence:
Create database, insert data, execute pandoradb_migrate_5.0.x_to_5.1.mysql.sql and execute pandoradb_migrate_5.1_to_6.0.mysql.sql. What is your sequence used in first moment?.
from pandorafms.
Hello! Thanks for your help.
Our sequence is the same. But now also we tried this:
I checked out what u said, and i realise that when i run pandoradb_migrate_5.0.x_to_5.1.mysql.sql, i have the table tmodule_relationship but i havent the column.
We tried to create the column by ourselves and after we runned again the alter 5.1 to 6.0 and we received the folowing error mesage:
ERROR 1005 (HY000) at line 163: Can't create table 'pandora.#sql-87d_129' (errno: 150)
Our table is now like this:
mysql> desc tmodule_relationship;
+----------------+---------------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+----------------+---------------------+------+-----+---------+----------------+
| id | int(10) unsigned | NO | PRI | NULL | auto_increment |
| module_a | int(10) unsigned | NO | MUL | NULL | |
| module_b | int(10) unsigned | NO | MUL | NULL | |
| disable_update | tinyint(1) unsigned | NO | | 0 | |
+----------------+---------------------+------+-----+---------+----------------+
4 rows in set (0.00 sec)
Also we see this on the script:
ALTER TABLE tmodule_relationship
ADD FOREIGN KEY (id_rt
) REFERENCES trecon_task(id_rt
) ON DELETE CASCADE;
ALTER TABLE tmodule_relationship MODIFY id_rt
int(10) unsigned NULL default NULL;
Why the relationship its created before modify the column? This is normal? may be we have an old version of the script?
from pandorafms.
What is your version of PandoraFMS?, because in 43b3ef2 was added this column, if your version is before of this date, can you execute this line: "ALTER TABLE tmodule_relationship
ADD COLUMN id_rt
int(10) unsigned NOT NULL DEFAULT 0; " and the problem is fixed.
from pandorafms.
Thanks a lot!!! Now its working! We add that line in our script 5.0 to 5.1 and now is fixed. Pandora's sql 5.1 to 6.0 also runs ok. Excelente amigo! Abrazo desde Uruguay! :P
from pandorafms.
Related Issues (20)
- Error to import pandoradb.sql HOT 5
- Potential security issue HOT 1
- Scheduled Downtime Agent FIlter
- Module_crontab sintax rules HOT 7
- 2FA not working HOT 1
- Pandora FMS API Bugs and Security Issues HOT 3
- Fresh install: Error Loading database schema HOT 9
- Fresh install in Ubuntu 22.04.1: Error OS version, Ubuntu 22.04 is expected HOT 13
- Fresh install Ubuntu 22.04.01: Cannot launch again. Aborting. HOT 3
- PandoraFMS install on CentOS 9 HOT 4
- Generated (console) config.php during install has config.inc.php below the newly generated data.. HOT 3
- Pandora FMS 767 with PHP 8.x breaks some API access HOT 1
- Problems in the display of alerts. HOT 1
- Docker Pandora FMS full stack based on Centos 8 does not start HOT 7
- Alerts Action eMail not saving properly
- Module critical treshold max value
- Problema configuracion umbrales de warning y alarma
- Custom default home screen not working
- API Password
- Fms
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pandorafms.