TACTIC Open Source
Missing at least one small step in docs for TACTIC on RHEL/Fedora - Printable Version

+- TACTIC Open Source (http://forum.southpawtech.com)
+-- Forum: TACTIC Open Source (http://forum.southpawtech.com/forumdisplay.php?fid=3)
+--- Forum: TACTIC Discussion (http://forum.southpawtech.com/forumdisplay.php?fid=4)
+--- Thread: Missing at least one small step in docs for TACTIC on RHEL/Fedora (/showthread.php?tid=137)



Missing at least one small step in docs for TACTIC on RHEL/Fedora - FordSubmariner - 06-12-2020

Hi All.

Thanks very much to everyone who's been helping me with the TACTIC install problems I'm having in an AWS EC2 instance (see other thread).

In case the problem is related to AWS, today I started installing TACTIC from RPM on my Fedora 32 desktop machine within my LAN. In doing so, I've been following instructions here: http://community.southpawtech.com/docs/sys-admin/install-tactic-rhel/ (Install TACTIC on Fedora 30).

When I get to this step:

Install TACTIC RPM
Download the TACTIC RPM from community site downloads page.

Code:
rpm -Uhv <TACTIC-RPM-file>


Probably because I'm running Fedora 32 whereas these docs were made for Fedora 30 (which may have had chkconfig installed by default), I see:
"error: Failed dependencies:
           chkconfig is needed by TACTIC-4.7.0.b02-0.x86_64"

It's an easy-enough problem to fix (sudo dnf install chkconfig), but in the interest of helping improve documentation, I thought it might help if I shared this result here. If there's a better way for me to share this result (maybe an issue tracker for the documentation?), I'll happily use it. But I haven't yet found something like that, so I figured a forum post may be better than nothing.

Hope this helps, and thanks again for all the assistance here.

Kind Regards,
Kevin

I may be doing something wrong, but I also found that when I tried

Run TACTIC Bootstrap

Code:
python3 /opt/tactic/tactic/src/pyasm/search/upgrade/postgresql/bootstrap_load.py


I got some errors (I also tried doing this with sudo for prefix as I needed to do for the other steps above):

[alpha@localhost ~]$ python3 /opt/tactic/tactic/src/pyasm/search/upgrade/postgresql/bootstrap_load.py
Importing bootstrap ...
Error with query (Error):  sthpw CREATE TABLE "project" (
    "id" serial PRIMARY KEY,
    "code" character varying(30) NOT NULL,
    "title" character varying(100),
    "sobject_mapping_cls" character varying(100),
    "dir_naming_cls" character varying(200),
    "code_naming_cls" character varying(200),
    "pipeline" character varying(30),
    "snapshot" text,
    "type" character varying(30),
    "last_db_update" timestamp ,
    "description" text,
    "initials" character varying(30),
    "file_naming_cls" character varying(200),
    "reg_hours" integer,
    "node_naming_cls" character varying(200),
    "s_status" character varying(30),
    "status" character varying(256),
    "last_version_update" character varying(256),
    "palette" character varying(256),
    "category" character varying(256),
    "is_template" boolean,
    "db_resource" text,
    CONSTRAINT "project_code_idx" UNIQUE ("code")
)
Traceback (most recent call last):
  File "/opt/tactic/tactic/src/pyasm/search/sql.py", line 839, in do_update
    self.cursor.execute(query)
psycopg2.errors.InFailedSqlTransaction: current transaction is aborted, commands ignored until end of transaction block


During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/tactic/tactic/src/pyasm/search/upgrade/postgresql/bootstrap_load.py", line 121, in <module>
    import_bootstrap()
  File "/opt/tactic/tactic/src/pyasm/search/upgrade/postgresql/bootstrap_load.py", line 79, in import_bootstrap
    sql.do_update(cmd)
  File "/opt/tactic/tactic/src/pyasm/search/sql.py", line 886, in do_update
    raise SqlException(e.__str__())
pyasm.search.sql.SqlException: current transaction is aborted, commands ignored until end of transaction block

[alpha@localhost ~]$


I studied this output, but don't see anything meaningful that would help me solve this problem on my own.

I also tried running this as user postgres (which worked for me in creating the sample database described here: https://www.postgresqltutorial.com/load-postgresql-sample-database/ )

Any thoughts on how to fix this problem?


RE: Missing at least one small step in docs for TACTIC on RHEL/Fedora - remkonoteboom - 06-17-2020

Sorry, missed this. We had recently put up a new docs repository for TACTIC on Github.

https://github.com/Southpaw-TACTIC/TACTIC-Docs

It is really new, so there is not much there except some issues I have logged. However, these are the source files for the TACTIC docs that you are viewing. You can either log an issue concerning the docs or you can fork, fix the docs and do a pull requests, which would be welcome.

In terms of chkconfig, I believe that Fedora may have stopped installing it by default. It may also be different from RHEL.


RE: Missing at least one small step in docs for TACTIC on RHEL/Fedora - remkonoteboom - 06-17-2020

In the case of your bootstrap load run, the problem is almost always the first error (as opposed to the last). If you could post that, it would help diagnosing the problem.