Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No plotly graph in Computers tab #23

Open
megachester opened this issue Mar 4, 2020 · 10 comments
Open

No plotly graph in Computers tab #23

megachester opened this issue Mar 4, 2020 · 10 comments

Comments

@megachester
Copy link

megachester commented Mar 4, 2020

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

@lightforever
Copy link
Owner

@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

@megachester
Copy link
Author

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'

@lightforever
Copy link
Owner

lightforever commented Mar 5, 2020

@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?

@megachester
Copy link
Author

No, it didn't help

@lightforever
Copy link
Owner

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?

@megachester
Copy link
Author

megachester commented Mar 6, 2020

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

  2. What do you mean by Console?

@lightforever
Copy link
Owner

lightforever commented Mar 7, 2020

@megachester
Copy link
Author

megachester commented Mar 12, 2020

  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)

@lightforever
Copy link
Owner

lightforever commented Mar 16, 2020

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.

@megachester
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants