|
From: Eric R. <er...@1s...> - 2002-08-23 14:37:52
|
It appears I've hit another road block, and I can't figure out what I'm doing wrong. I've created a .sql file containing my SQL structure, and a data file containing the initial object data. When I attempt to run an install_sql on my generated package, I get the following errors: **************************** **************************** [ericr@wavelength] [/usr/local/OpenInteract/pkg/nms-0.01]> sudo oi_manage install_sql --package=nms [oi_manage]: Using (/usr/local/OpenInteract) for 'base_dir'. [oi_manage]: Using (/home/1stcontact.com/intranet) for 'website_dir'. Running install_sql... ========================= NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index 'nagios_host_cfg_pkey' for table 'nagios_host_cfg' Status of the packages requested for SQL install: nms (0.01) OK: Structure: * Created table from (create-table-nagios_host_cfg.sql): ok Data: * Error: Can't locate object method "new" via package "Intranet::NMS" (perhaps you forgot to load "Intranet::NMS"?) at /usr/local/lib/perl5/site_perl/5.6.1/OpenInteract/SQL Install.pm line 264. Security: * Error: Cannot create SPOPS object! Basic: DBD::Pg::st execute failed: ERROR: Cannot insert a duplicate key into unique index sys_security_object_id_key at /usr/local/lib/perl5/site_perl/5.6.1/SPOPS/SQLInterfa ce.pm line 288. Error: DBD::Pg::st execute failed: ERROR: Cannot insert a duplicate key into unique index sys_security_object_id_key at /usr/local/lib/perl5/site_perl/5.6.1/SPOPS/SQLInterfa ce.pm line 288. Important Notes ------------------------- none ========================= Finished install_sql! **************************** **************************** Why is method 'new' being called from my class, Intranet::NMS? Basing off of the fruit example, there is no 'new' method, and data gets installed fine. So, I'm sure I've gone wrong somewhere. . Thanks yet again. It is very much appreciated. ----- Eric Reeves - Network / Systems Administrator 1st Contact Technologies - 281.333.1444 |