10-09-2019, 08:36 PM
Hi Guys,
um trying to install Tactic 4.7 on centos 7 and im facing some issues with the database so I will appreciate your help.
um trying to install Tactic 4.7 on centos 7 and im facing some issues with the database so I will appreciate your help.
Code:
Copying files to the install directory... It may take several minutes.
Creating a symlink at [/home/apache/tactic]...
Verifying Python modules are properly installed...
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Creating TACTIC temp directories: /home/apache/tactic_temp
Changing directory ownership of temp and data directories
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Creating database 'sthpw' ...
('create: ', 'createdb -h localhost -U postgres -p 5432 -E UNICODE "sthpw"')
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
could not identify current directory: No such file or directory
Importing sql to database [sthpw]...
using path [/home/apache/tactic/src/pyasm/search/upgrade/postgresql/bootstrap_schema.sql]
('Error with query (ProgrammingError): ', 'sthpw', 'CREATE TABLE "login" (\n "id" serial PRIMARY KEY,\n "code" character varying(512),\n "login" character varying(100) NOT NULL,\n "password" character varying(255),\n "upn" character varying(100) NOT NULL,\n "login_groups" text,\n "first_name" character varying(100),\n "last_name" character varying(100),\n "display_name" character varying(256),\n "email" character varying(200),\n "phone_number" character varying(32),\n "department" character varying(256),\n "namespace" character varying(255),\n "snapshot" text,\n "s_status" character varying(30),\n "project_code" text,\n "license_type" character varying(256),\n "hourly_wage" float,\n "data" jsonb,\n CONSTRAINT "login_code_idx" UNIQUE ("code"),\n CONSTRAINT "login_upn_idx" UNIQUE ("upn")\n)')
type "jsonb" does not exist
LINE 20: "data" jsonb,
^
Traceback (most recent call last):
File "/tmp/TACTIC-4.7-Python3/src/install/install.py", line 893, in <module>
install.execute(install_db=install_db,install_defaults=install_defaults,database_type=database_type, port_num=port_num )
File "/tmp/TACTIC-4.7-Python3/src/install/install.py", line 331, in execute
database.import_schema(project_code, project_type)
File "/home/apache/tactic/src/pyasm/search/database_impl.py", line 236, in import_schema
self.import_sql_file(db_resource, schema_path)
File "/home/apache/tactic/src/pyasm/search/database_impl.py", line 212, in import_sql_file
sql.do_update(cmd)
File "/home/apache/tactic/src/pyasm/search/sql.py", line 877, in do_update
raise SqlException(str(e))
pyasm.search.sql.SqlException: type "jsonb" does not exist
LINE 20: "data" jsonb,
^