Comments (2)
To solve the problem we have reviewed the creation of the Database and launched the creation of the missing software table with the following result:
MariaDB [ocsinventory]> CREATE TABLE `software` (
-> `ID` bigint NOT NULL AUTO_INCREMENT,
-> `HARDWARE_ID` int NOT NULL,
-> `NAME_ID` int NOT NULL,
-> `PUBLISHER_ID` int NOT NULL,
-> `VERSION_ID` int NOT NULL,
-> `FOLDER` text,
-> `COMMENTS` text,
-> `FILENAME` varchar(255) DEFAULT NULL,
-> `FILESIZE` int DEFAULT '0',
-> `SOURCE` int DEFAULT NULL,
-> `GUID` varchar(255) DEFAULT NULL,
-> `LANGUAGE` varchar(255) DEFAULT NULL,
-> `INSTALLDATE` datetime DEFAULT NULL,
-> `BITSWIDTH` int DEFAULT NULL,
-> `ARCHITECTURE` varchar(255) DEFAULT NULL,
-> PRIMARY KEY (`ID`),
-> KEY `HARDWARE_ID` (`HARDWARE_ID`),
-> KEY `NAME_ID` (`NAME_ID`),
-> KEY `PUBLISHER_ID` (`PUBLISHER_ID`),
-> KEY `VERSION_ID` (`VERSION_ID`)
-> KEY `HARDWARE_ID_2` (`HARDWARE_ID`, `NAME_ID`, `VERSION_ID`) USING BTREE
-> ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'KEY `HARDWARE_ID_2` (`HARDWARE_ID`, `NAME_ID`, `VERSION_ID`) USING BTREE
) EN...' at line 22
It seems that the problem is here it fails to create the table during installation
We create the table following what is included in the installation script except for the creation of the KEYs, which we do one by one and it is done correctly
This solves all the errors we had in the agent registration
from ocsinventory-server.
Hi @kiwib1b,
This has been fixed with PR OCSInventory-NG/OCSInventory-ocsreports#1590, which was merged into our master branch on the ocsreports repository. Thank you for reporting the issue.
Regards,
Léa
from ocsinventory-server.
Related Issues (20)
- Setup.sh fails with "cannot stat 'ocsreports/*': No such file or directory" HOT 16
- CHEKSUM error when updating hardware using GLPI Agent HOT 2
- GPG key expired - Installation from repo not possible HOT 1
- Administrative data is reset on each update from agent HOT 4
- Rest API Get last updated computers returning a 404 response HOT 2
- Upgrade from 2.11.0 to 2.12.0 Lost Static and Dinamic group HOT 2
- HTTP Stats Code #400. Agent will not communicate with server. HOT 5
- Apache server is not starting HOT 3
- LDAPS error HOT 2
- Ipdiscover ip/mac send from agent not found in table netmap HOT 2
- Error after migration from Oracle Linux 7 to 9 and php 7.3 to 8.2. PHP Fatal error: Uncaught Error: Undefined constant "SSL_MODE"
- Erreur 500 entre agent et serveur OCS. Problème au niveau de la BD? HOT 9
- IpDiscover does not find machines on the network HOT 4
- Can't create deployment package HOT 2
- DBD::mysql::st execute failed: Unknown column 'PRETTYVERSION' in 'field list' at /usr/share/perl5/vendor_perl/Apache/Ocsinventory/Server/Inventory/Software.pm line 64. HOT 1
- Database server requirements mismatch on documentation HOT 1
- GPG key of Debian repo has expired again HOT 2
- Inventory by SNMP Inventory happening, XML sent but data is not inserted into the database and no error is displayed.
- [Question] About the release version
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 ocsinventory-server.