Code Monkey home page Code Monkey logo

Comments (2)

kiwib1b avatar kiwib1b commented on June 12, 2024

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.

Lea9250 avatar Lea9250 commented on June 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.