TACTIC Open Source
After Update 4.7 to 4.8 can't create projects, or work with existing ones.(SOLVED) - 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: After Update 4.7 to 4.8 can't create projects, or work with existing ones.(SOLVED) (/showthread.php?tid=190)



After Update 4.7 to 4.8 can't create projects, or work with existing ones.(SOLVED) - tim - 01-05-2021

Hi 
Prerequisites are Cent OS 7, tactic 4.7 in (opt/tactic)

I've updated tactic 4.7 to 4.8 of github repo
And as I remember there were some warning messages about port 5000sh something (don't remember exact number)

But as I was able to login I did not pay attention to that.
When I tried to check in file I got warning message ".../upload/.../{file} does not exist"
I thought according to my previous post with VM I would be able to chown and cmod directories and it will fix problem.
It did not

After I've tried to create new project and it did not work too.
So I put tactic in dev mode (as it was recommended) and here I got some information
At the beginning I'm getting following warnings

Quote:Sending: 98.7666015625 KB
Num SObjects: 6
Duration: 0.443 seconds (request_id: 139663570061056 - #0000001)
Memory: 69948 KB
Increment: 18420 KB
WARNING: search type [config/authenticate] does not exist
WARNING: search type [prod/custom_property] does not exist
WARNING: search type [config/authenticate] does not exist
WARNING: search type [prod/custom_property] does not exist
SQL Query Count:  34
BVR Count:  851
Sending: 652.9423828125 KB
Num SObjects: 76
Duration: 3.244 seconds (request_id: 139663561668352 - #0000001)
Memory: 73496 KB
Increment: 3548 KB


When I go to admin I'm getting those warnings

Quote:request_id: 139663041869568 - #0000003
site: admin
timestamp: 2021-01-05 18:24:39
user: admin
simple method: <function ApiXMLRPC.get_widget at 0x7f05f85a0048>
ticket: 719d6f00cc67e11c7af
(  'tactic.ui.app.TopContainerWdg',
    {  'args': {  'first_load': True,
                    'hash': '/index',
                    'pathname': '/tactic/admin/'},
        'libraries': {  'spt_button': True,
                        'spt_calendar': True,
                        'spt_html5upload': True,
                        'spt_popup': True},
        'values': {'': 'undefined'}})

WARNING: search type [config/authenticate] does not exist
WARNING: search type [prod/custom_property] does not exist
SQL Query Count:  29
BVR Count:  662
Sending: 652.9248046875 KB
Num SObjects: 76
Duration: 2.134 seconds (request_id: 139663041869568 - #0000003)
Memory: 76532 KB
Increment: 3036 KB
request_id: 139663033476864 - #0000004
site: admin
timestamp: 2021-01-05 18:24:42
user: admin
simple method: <function ApiXMLRPC.get_widget at 0x7f05f85a0048>
ticket: 719d6f00cc67e11c7af
(  'tactic.ui.app.ProjectCreateWdg',
    {  'args': {},
        'libraries': {  'spt_button': True,
                        'spt_calendar': True,
                        'spt_help': True,
                        'spt_html5upload': True,
                        'spt_popup': True,
                        'spt_tab': True}})

--------------------------------------------------
From ExceptionLog.log
--------------------------------------------------
  File "/opt/tactic/tactic/src/pyasm/prod/service/api_xmlrpc.py", line 5565, in get_widget
    html = widget.get_buffer_display()
  File "/opt/tactic/tactic/src/pyasm/web/widget.py", line 486, in get_buffer_display
    buffer = self.get_buffer(cls)
  File "/opt/tactic/tactic/src/pyasm/web/widget.py", line 477, in get_buffer
    self.explicit_display(cls)
  File "/opt/tactic/tactic/src/pyasm/web/widget.py", line 435, in explicit_display
    child = self.get_display()
  File "/opt/tactic/tactic/src/tactic/ui/app/page_header_wdg.py", line 817, in get_display
    default_project_code = Project.get_default_project()
  File "/opt/tactic/tactic/src/pyasm/biz/project.py", line 278, in get_default_project
    project = Site.get().get_default_project()
  File "/opt/tactic/tactic/src/pyasm/security/security.py", line 961, in get_default_project
    site_data = cls.get_site_data(site)

type object 'Site' has no attribute 'get_site_data'
--------------------------------------------------
Duration: 0.336 seconds (request_id: 139663033476864 - #0000004)
Memory: 75964 KB
Increment: -568 KB


attached screenshot of what I see on screen


RE: After Update 4.7 to 4.8 can't create projects, or work with existing ones. - listy - 01-05-2021

I think, latest fixes to security.py have broken something.
I recommend You to go to github, and report this issue with stack trace.

(the faster fix, would be to try getting little older security.py, and replace it)

(those warnings about missing stypes i think you can just ignore)


RE: After Update 4.7 to 4.8 can't create projects, or work with existing ones. - tim - 01-06-2021

(01-05-2021, 07:25 PM)listy Wrote: I think, latest fixes to security.py have broken something.
I recommend You to go to github, and report this issue with stack trace.

(the faster fix, would be to try getting little older security.py, and replace it)

(those warnings about missing stypes i think you can just ignore)

listy thanks a lot.

I've changed security.py with old one (from release of 4.8.b04 version).

At the moment it seems it works fine. At least I could create new project and check in files in existent one.
BTW regarding my posts about VM I could check-in images and videos. And I could get Generated preview icon from video file too. 

I've reported this issue on github too.