TACTIC Open Source
Get Ticket 47 vs 48 - 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: Get Ticket 47 vs 48 (/showthread.php?tid=121)

Pages: 1 2


Get Ticket 47 vs 48 - Nachogor - 05-27-2020

Hi guys!

Upgraded to 4.8 to start testing it. Great idea to create the VFX Template as a plugins!!! I´ll port our template in the same way!

I´m testing our 2.7 scripts with 4.8 to check if everything works, but I receive this error message:
<Fault 1: "[Errno 2] No such file or directory: '/opt/tactic/tactic_temp/temp/e0264cc72a533d9e3f8'">
If I check the created directory is 3b6e7a6fdc589d9c6fd instead of e0264cc72a533d9e3f8
Any ideas?

I tried opening a debug console as last time with 4.7 but it works only for web access, no? Or can I access it from an API?

Thanks in advanced!
Nacho


RE: Get Ticket 47 vs 48 - listy - 05-27-2020

When you do upload transaction it generates new unique transaction ticket. The same was in 4.5 and earlier tactic versions.
You need to check all errors and show full stack trace here.


RE: Get Ticket 47 vs 48 - remkonoteboom - 05-27-2020

Yes, we need a server side stack trace to diagnose the problem.

Errors that start with:

<Fault 1: "[Errno 2]

are not client side and the full error will be on the server. You can either look at the output when running in debug mode or you can look at the exception_log table which should have recorded the stack trace.

The stack trace will tell us what part of the code is trying to access that folder.


RE: Get Ticket 47 vs 48 - Nachogor - 05-27-2020

Hi guys!

If we are talking of sthpw - public.exception_log it's not logging this error.

I searched all the logs until I found  sthpw public.transaction_log, where it's logging this information:
command: pyasm.prod.service.api_xmlrpc.ApiClientCmd
ticket fdaae4cea9e4e0518a3 (matches the one appearing in the error message )

ERROR MESSAGE
<Fault 1: "[Errno 2] No such file or directory: '/opt/tactic/tactic_temp/temp/fdaae4cea9e4e0518a3'">

New Directory in /opt/tactic/tactic_temp/temp/ is 597548d3051583089b9


How do I access the debug console with an API? The port isn't only for Web interaction?

Thanks a lot for your patience!
Nacho


RE: Get Ticket 47 vs 48 - remkonoteboom - 05-27-2020

You can run TACTIC in debug mode on any port:

cd <TACTIC_INSTALL_DIR>/src/bin

python startup_dev.py -p 9000 -s <IP_OR_DOMAIN_NAME>

And then just go to your browser:

http://<IP_OR_DOMAIN_NAME>:8500/tactic/

Note: you need /tactic/ at the end if you are accessing a port not served by Apache. Also, you need to make sure that whatever port you choose is open by the firewall otherwise it will be blocked.

You can run this while TACTIC is normally running. It's a great way to debug problems on a live server without actually touching the core server processes. All your are doing is running another TACTIC process, but in debug mode and explicitly accessing only the debug executable.


RE: Get Ticket 47 vs 48 - Nachogor - 05-27-2020

Thanks! My bad, I had an error at my side and that's the reason I wasn't able to access the API on a specific port.

The created directory is 8bcfd4fc7d84e1288d7, but system is looking for aa339a4d52d6a2901f4

Starting TACTIC v4.8.0.a01 ...

method:  start ({'project': 'admin', 'ticket': 'aa339a4d52d6a2901f4', 'site': None, 'language': 'python'}, 'admin', 'Title', 'description', '')
Exception:  [Errno 2] No such file or directory: '/opt/tactic/tactic_temp/temp/aa339a4d52d6a2901f4'
--------------------------------------------------
  File "/opt/tactic/tactic/src/pyasm/prod/service/api_xmlrpc.py", line 676, in new
    results = exec_meth(self, ticket, meth, args)
  File "/opt/tactic/tactic/src/pyasm/prod/service/api_xmlrpc.py", line 308, in exec_meth
    results = meth(self, ticket, *args)
  File "/opt/tactic/tactic/src/pyasm/prod/service/api_xmlrpc.py", line 6776, in start
    files = os.listdir(dir_path)

[Errno 2] No such file or directory: '/opt/tactic/tactic_temp/temp/aa339a4d52d6a2901f4'
--------------------------------------------------

Thanks!


RE: Get Ticket 47 vs 48 - remkonoteboom - 05-27-2020

Thanks. This is a bug. It is doing so work on a ticket folder that it assumes to exist, but hasn't had any transactions to have it created yet.

I have committed a fix:

https://github.com/Southpaw-TACTIC/TACTIC/pull/1449/commits/6e755450a08615b9d514aef7004656da54975df2

Let me know if it works.


RE: Get Ticket 47 vs 48 - Nachogor - 05-28-2020

Hi after updating the 7 files I receive this message

Starting TACTIC v4.8.0.b01 ...

method: start ({'project': 'admin', 'ticket': '1dc833d1af4cea4a26a', 'site': None, 'language': 'python'}, 'admin', 'Title', 'description', '')
Exception: local variable 'os' referenced before assignment
--------------------------------------------------
File "/opt/tactic/tactic/src/pyasm/prod/service/api_xmlrpc.py", line 676, in new
results = exec_meth(self, ticket, meth, args)
File "/opt/tactic/tactic/src/pyasm/prod/service/api_xmlrpc.py", line 308, in exec_meth
results = meth(self, ticket, *args)
File "/opt/tactic/tactic/src/pyasm/prod/service/api_xmlrpc.py", line 6770, in start
dir_path = os.path.join(tmp_dir, "temp", ticket)

local variable 'os' referenced before assignment
--------------------------------------------------

Thanks!!!


RE: Get Ticket 47 vs 48 - remkonoteboom - 05-28-2020

Just fixed it.


RE: Get Ticket 47 vs 48 - Nachogor - 05-28-2020

Still same error here.