mlcomp icon indicating copy to clipboard operation
mlcomp copied to clipboard

No plotly graph in Computers tab

Open megachester opened this issue 5 years ago • 10 comments

Why might such a problem appear? Tasks can be run. Screenshot 2020-03-04 at 22 11 23

It happens both in minimal and full modes

megachester avatar Mar 04 '20 19:03 megachester

@megachester , Looks like an internal error.

The program has last activity = null for that computer.

Could you please provide me with the log file?

cat ~/mlcomp/logs/log.txt

lightforever avatar Mar 05 '20 09:03 lightforever

2020-03-04 19:22:33.449 ERROR app - decorated: Requested Url: /api/computer_sync_end

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/mlcomp/server/back/app.py", line 102, in decorated
    res = f(*args, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/mlcomp/server/back/app.py", line 164, in computer_sync_end
    meta = yaml_load(computer.meta)
  File "/usr/local/lib/python3.6/dist-packages/mlcomp/utils/io.py", line 22, in yaml_load
    res = yaml.load(stream, Loader=yaml.FullLoader)
  File "/usr/local/lib/python3.6/dist-packages/yaml/__init__.py", line 112, in load
    loader = Loader(stream)
  File "/usr/local/lib/python3.6/dist-packages/yaml/loader.py", line 24, in __init__
    Reader.__init__(self, stream)
  File "/usr/local/lib/python3.6/dist-packages/yaml/reader.py", line 85, in __init__
    self.determine_encoding()
  File "/usr/local/lib/python3.6/dist-packages/yaml/reader.py", line 124, in determine_encoding
    self.update_raw()
  File "/usr/local/lib/python3.6/dist-packages/yaml/reader.py", line 178, in update_raw
    data = self.stream.read(size)
AttributeError: 'NoneType' object has no attribute 'read'

megachester avatar Mar 05 '20 11:03 megachester

@megachester , how have you installed the library? Via Pypi or from the Github sources?

Please try version 20.2.4. I have uploaded it just now.

For example:

# stop server and workers
pip install -U mlcomp
mlcomp migrate
# start server and workers

Does it help?

lightforever avatar Mar 05 '20 16:03 lightforever

No, it didn't help

megachester avatar Mar 05 '20 17:03 megachester

There is the version 20.2.4b.

Please update mlcomp to it.

Then:

  1. mlcomp report This command will create a report. Please attach it to the issue. (I hope your logs do not contain secure information).

  2. Please open the Console in your browser. Are there errors?

lightforever avatar Mar 06 '20 18:03 lightforever

  1. Is it better to clear everything and execute report after fresh mlcomp init procedure?

  2. What do you mean by Console?

megachester avatar Mar 06 '20 18:03 megachester

  1. Yeah, it would be better

  2. https://kb.mailster.co/how-can-i-open-the-browsers-console/

    https://web.dev/errors-in-console/

lightforever avatar Mar 07 '20 06:03 lightforever

  1. report1203.zip

  2. You were right, there are errors of such type: Error: InvalidPipeArgument: 'Unable to convert "2020-03-12 12:45:17Z" into a date' for pipe 'DatePipe'

Log
[Error] ERROR
Error: InvalidPipeArgument: 'Unable to convert "2020-03-12 18:23:00Z" into a date' for pipe 'DatePipe'
(anonymous function) — common.js:5250
checkAndUpdatePureExpressionInline — core.js:22798
prodCheckAndUpdateNode — core.js:23866
(anonymous function)
checkAndUpdateView — core.js:23312
callViewAction — core.js:23548
execEmbeddedViewsAction — core.js:23511
checkAndUpdateView — core.js:23308
callViewAction — core.js:23558
execEmbeddedViewsAction — core.js:23511
execProjectedViewsAction — core.js:23576
callViewAction — core.js:23551
execComponentViewsAction — core.js:23490
checkAndUpdateView — core.js:23313
callViewAction — core.js:23558
execEmbeddedViewsAction — core.js:23511
execProjectedViewsAction — core.js:23576
callViewAction — core.js:23551
execComponentViewsAction — core.js:23490
checkAndUpdateView — core.js:23313
callViewAction — core.js:23548
execComponentViewsAction — core.js:23490
checkAndUpdateView — core.js:23313
callViewAction — core.js:23548
execEmbeddedViewsAction — core.js:23511
checkAndUpdateView — core.js:23308
callViewAction — core.js:23548
execComponentViewsAction — core.js:23490
checkAndUpdateView — core.js:23313
(anonymous function) — core.js:21688
forEach
(anonymous function) — core.js:18119
(anonymous function) — core.js:18010:98
onInvoke — core.js:17299
(anonymous function) — zone.js:150
next — core.js:18010
(anonymous function) — core.js:13515
(anonymous function) — Subscriber.js:196
(anonymous function) — Subscriber.js:134
(anonymous function) — Subscriber.js:77
(anonymous function) — Subscriber.js:54
(anonymous function) — Subject.js:47
(anonymous function) — core.js:13499
checkStable — core.js:17268
onHasTask — core.js:17312
(anonymous function) — zone.js:443
(anonymous function) — zone.js:463
(anonymous function) — zone.js:291
(anonymous function) — zone.js:212
drainMicroTaskQueue — zone.js:601
(anonymous function) — zone.js:502
invokeTask — zone.js:1744
globalZoneAwareCallback — zone.js:1781
	defaultErrorLogger (vendor.js:81041)
	(anonymous function) (vendor.js:81089)
	(anonymous function) (polyfills.js:3043)
	(anonymous function) (vendor.js:83443)
	(anonymous function) (vendor.js:83327:110)
	onInvoke (vendor.js:82616)
	(anonymous function) (polyfills.js:3043)
	next (vendor.js:83327:85)
	(anonymous function) (vendor.js:78832)
	(anonymous function) (vendor.js:147523)
	(anonymous function) (vendor.js:147461)
	(anonymous function) (vendor.js:147404)
	(anonymous function) (vendor.js:147381)
	(anonymous function) (vendor.js:147146)
	(anonymous function) (vendor.js:78816)
	checkStable (vendor.js:82585)
	onHasTask (vendor.js:82629)
	(anonymous function) (polyfills.js:3336)
	(anonymous function) (polyfills.js:3356)
	(anonymous function) (polyfills.js:3184)
	(anonymous function) (polyfills.js:3105)
	drainMicroTaskQueue (polyfills.js:3494)
	(anonymous function) (polyfills.js:3395)
	invokeTask (polyfills.js:4637)
	globalZoneAwareCallback (polyfills.js:4674)

megachester avatar Mar 12 '20 12:03 megachester

Sorry, but I have no idea why it happens.

You could debug the issue: open tables computers and docker in your database and check them on null values.

Also, try to open the page in a different browser. For example, I use Google Chrome.

lightforever avatar Mar 16 '20 14:03 lightforever

Thanks! Opening front in Chrome helped. The problem is with Safari.

megachester avatar Mar 16 '20 16:03 megachester