TACTIC Open Source
This database [sthpw] does not exist - 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: This database [sthpw] does not exist (/showthread.php?tid=213)



This database [sthpw] does not exist - listy - 04-18-2021

Code:
ERROR DURING TASK EXECUTION
Traceback (most recent call last):
  File "/opt/tactic/tactic/src/tactic/command/kronos.py", line 842, in threadedcall
    self.execute()
  File "/opt/tactic/tactic/src/tactic/command/kronos.py", line 490, in execute
    self.action(*self.args, **self.kw)
  File "/opt/tactic/tactic/src/tactic/command/scheduler.py", line 237, in _do_execute
    Batch(site=self.site, login_code=self.user, project_code=self.project,ticket=self.login_ticket)
  File "/opt/tactic/tactic/src/pyasm/security/batch.py", line 60, in __init__
    self._do_login()
  File "/opt/tactic/tactic/src/pyasm/security/batch.py", line 86, in _do_login
    security.login_as_batch(self.login_code, ticket=self.ticket)
  File "/opt/tactic/tactic/src/pyasm/security/security.py", line 1458, in login_as_batch
    self._login = Login.get_by_login(login_name, use_upn=True)
  File "/opt/tactic/tactic/src/pyasm/security/security.py", line 255, in get_by_login
    search = Search("sthpw/login")
  File "/opt/tactic/tactic/src/pyasm/search/search.py", line 102, in __init__
    project = Project.get_by_code(project_code)
  File "/opt/tactic/tactic/src/pyasm/biz/project.py", line 223, in get_by_code
    return super(Project, cls).get_by_code(project_name)
  File "/opt/tactic/tactic/src/pyasm/search/search.py", line 5642, in get_by_code
    search = Search( cls.SEARCH_TYPE )
  File "/opt/tactic/tactic/src/pyasm/search/search.py", line 229, in __init__
    raise SearchException('This database [%s] does not exist' %self.database)
pyasm.search.search.SearchException: This database [sthpw] does not exist
I am really getting this error too often. This is from stderr.log 
What it could be? Tactic 4.8, py3


RE: This database [sthpw] does not exist - remkonoteboom - 06-24-2021

Sorry, I completely missed this.

I am not sure what is calling it exactly. It would be really useful to know what "self" is in this line:

File "/opt/tactic/tactic/src/tactic/command/scheduler.py", line 237, in _do_execute
Batch(site=self.site, login_code=self.user, project_code=self.project,ticket=self.login_ticket)

It would be a class that is derived from SchedulerTask. Know what kind of task this is (rather than this base class) would point to what task is trying to be run and like where it is being called from.


RE: This database [sthpw] does not exist - listy - 03-05-2022

This error keeps repating from time to time. I don't know how to fix it


RE: This database [sthpw] does not exist - remkonoteboom - 03-05-2022

To figure this out, I would need to know what "self" is on:

"/opt/tactic/tactic/src/tactic/command/scheduler.py", line 237.

It would be very useful to just put in a print statement:

Code:
print("SchedulerTask:self: ", self)


on line 236.  Once we know what "self" is, we can look at what task class is actually being executed.  Otherwise it would just be guessing.


RE: This database [sthpw] does not exist - listy - 04-19-2022

stderr.log does not print anything except Exceptions, so even if i add prints i can't get the moment where i get error in stderr.log and match it with the prints.
Anyway i have added prints, and it looks like this:

SchedulerTaskConfusedelf: <pyasm.web.cache_startup.CacheStartup.start_cache_tasks.<locals>.DirtyTask object at 0x7fc63c4ac070>
SchedulerTaskConfusedelf: <pyasm.web.cache_startup.CacheStartup.start_cache_tasks.<locals>.DirtyTask object at 0x7fc63c4ac070>
SchedulerTaskConfusedelf: <pyasm.web.cache_startup.CacheStartup.start_cache_tasks.<locals>.DirtyTask object at 0x7fc63c4ac070>
SchedulerTaskConfusedelf: <pyasm.web.cache_startup.CacheStartup.start_cache_tasks.<locals>.DirtyTask object at 0x7fc63c4ac070>
SchedulerTaskConfusedelf: <pyasm.web.cache_startup.CacheStartup.start_cache_tasks.<locals>.DirtyTask object at 0x7fc63c4ac070>
SchedulerTaskConfusedelf: <pyasm.web.cache_startup.CacheStartup.start_cache_tasks.<locals>.DirtyTask object at 0x7fc63c4ac070>
SchedulerTaskConfusedelf: <pyasm.web.cache_startup.CacheStartup.start_cache_tasks.<locals>.DirtyTask object at 0x7fc63c4ac070>
SchedulerTaskConfusedelf: <pyasm.web.cache_startup.CacheStartup.start_cache_tasks.<locals>.RefreshTask object at 0x7fc63c4ac100>
SchedulerTaskConfusedelf: <pyasm.web.cache_startup.CacheStartup.start_cache_tasks.<locals>.DirtyTask object at 0x7fc63c4ac070>
SchedulerTaskConfusedelf: <pyasm.web.cache_startup.CacheStartup.start_basic_tasks.<locals>.DatabaseCloseTask object at 0x7fc63c4ac2b0>