Project

General

Profile

Actions

Feature #8662

closed

Workaround authentification issues

Added by Evgeny Novikov almost 7 years ago. Updated almost 7 years ago.

Status:
Closed
Priority:
Immediate
Assignee:
Category:
Scheduling
Target version:
Start date:
01/14/2018
Due date:
% Done:

0%

Estimated time:
Published in build:

Description

Alexey Khoroshilov observed several times a strange issue when at several instances during several minutes request get_jobs_and_tasks failed with the following exception:

2018-01-12 21:07:39,240 (__init__.py:484) root ERROR> An error occured:
Traceback (most recent call last):
  File "/home/debian/klever/scheduler/bin/../schedulers/__init__.py", line 180, in launch
    server_state = self.server.exchange(scheduler_state)
  File "/home/debian/klever/scheduler/bin/../server/bridge.py", line 50, in exchange
    ret = self.session.json_exchange("service/get_jobs_and_tasks/", data)
  File "/home/debian/klever/scheduler/bin/../utils/bridge.py", line 168, in json_exchange
    response = self.__request(endpoint, 'POST', json_data, looping=looping)
  File "/home/debian/klever/scheduler/bin/../utils/bridge.py", line 95, in __request
    'Got error "{0}" when send "{1}" request to "{2}"'.format(self.error, method, url))
utils.bridge.BridgeError: Got error "You are not signing in" when send "POST" request to "http://localhost:8998/service/get_jobs_and_tasks/" 
2018-01-12 21:07:39,255 (__init__.py:131) root ERROR> Uncaught exception
Traceback (most recent call last):
  File "/home/debian/klever/scheduler/bin/../schedulers/__init__.py", line 180, in launch
    server_state = self.server.exchange(scheduler_state)
  File "/home/debian/klever/scheduler/bin/../server/bridge.py", line 50, in exchange
    ret = self.session.json_exchange("service/get_jobs_and_tasks/", data)
  File "/home/debian/klever/scheduler/bin/../utils/bridge.py", line 168, in json_exchange
    response = self.__request(endpoint, 'POST', json_data, looping=looping)
  File "/home/debian/klever/scheduler/bin/../utils/bridge.py", line 95, in __request
    'Got error "{0}" when send "{1}" request to "{2}"'.format(self.error, method, url))
utils.bridge.BridgeError: Got error "You are not signing in" when send "POST" request to "http://localhost:8998/service/get_jobs_and_tasks/" 

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/debian/klever/scheduler/bin/native-scheduler", line 38, in <module>
    scheduler_impl.launch()
  File "/home/debian/klever/scheduler/bin/../schedulers/__init__.py", line 485, in launch
    self.terminate()
  File "/home/debian/klever/scheduler/bin/../schedulers/native.py", line 283, in terminate
    self.server.submit_nodes(configurations, looping=False)
  File "/home/debian/klever/scheduler/bin/../server/bridge.py", line 86, in submit_nodes
    self.session.json_exchange("service/update_nodes/", data, looping=looping)
  File "/home/debian/klever/scheduler/bin/../utils/bridge.py", line 168, in json_exchange
    response = self.__request(endpoint, 'POST', json_data, looping=looping)
  File "/home/debian/klever/scheduler/bin/../utils/bridge.py", line 95, in __request
    'Got error "{0}" when send "{1}" request to "{2}"'.format(self.error, method, url))
utils.bridge.BridgeError: Got error "You are not signing in" when send "POST" request to "http://localhost:8998/service/update_nodes/" 

I didn't find out causes of this issue. So, I suppose to implement a trivial workaround like with bad zip archives - to log the issue and to re-authenticate Native Scheduler and its workers.

Perhaps Core and its components also suffer from this issue. So, there is some sense to implement the same workaround for them in advance as well.


Related issues 2 (0 open2 closed)

Related to Klever - Feature #7894: Bypass issues with badly uploaded ZIP archivesClosedVladimir Gratinskiy01/24/2017

Actions
Related to Klever - Bug #8387: Repeat requests resulting in bad ZIP archive error in Bridge or delivering bad ZIP archivesClosedEvgeny Novikov08/25/2017

Actions
Actions #1

Updated by Evgeny Novikov almost 7 years ago

  • Related to Feature #7894: Bypass issues with badly uploaded ZIP archives added
Actions #2

Updated by Evgeny Novikov almost 7 years ago

  • Related to Bug #8387: Repeat requests resulting in bad ZIP archive error in Bridge or delivering bad ZIP archives added
Actions #3

Updated by Ilja Zakharov almost 7 years ago

  • Status changed from New to Resolved

Fixed in 8662-authentification.

Actions #4

Updated by Evgeny Novikov almost 7 years ago

  • Status changed from Resolved to Closed

I tested the branch a bit and merged it to master in 8d597d7a.

Actions

Also available in: Atom PDF