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

ERROR: Restful server start failed! Failed to create log dir: RangeError: Invalid time value #4077

Closed
Stanlay19 opened this issue Aug 17, 2021 · 7 comments
Assignees
Labels
bug Something isn't working user raised

Comments

@Stanlay19
Copy link

Describe the issue:

Environment:

  • NNI version:2.4
  • Training service (local|remote|pai|aml|etc):
  • Client OS:Windows 10
  • Server OS (for remote mode only):
  • Python version:3.7
  • PyTorch/TensorFlow version:
  • Is conda/virtualenv/venv used?:
  • Is running in Docker?:

nnictl create --config nni\examples\trials\mnist-pytorch\config_windows.yml
INFO: expand searchSpacePath: search_space.json to D:\workspace\nni\examples\trials\mnist-pytorch\search_space.json
INFO: expand codeDir: . to D:\workspace\nni\examples\trials\mnist-pytorch.
INFO: Starting restful server...
ERROR: Restful server start failed!
INFO: Stdout:

            Experiment start time 2021-08-17 13:33:45

INFO: Stderr:

            Experiment start time 2021-08-17 13:33:45

Failed to create log dir: RangeError: Invalid time value
at Date.toISOString ()
at Logger.log (D:\Program\Anaconda3\lib\site-packages\nni_node\common\log.js:54:72)
at Logger.error (D:\Program\Anaconda3\lib\site-packages\nni_node\common\log.js:41:14)
at D:\Program\Anaconda3\lib\site-packages\nni_node\main.js:109:33

How to reproduce it?:

@acured acured self-assigned this Aug 18, 2021
@acured
Copy link
Contributor

acured commented Aug 19, 2021

Hi @Stanlay19 Thanks for your feedback.

Which web browser do you use? could you try this on console: "new Date(new Date().toLocaleString()+ " UTC").toISOString()" which got this error, but I can not reproduce it.

@acured
Copy link
Contributor

acured commented Aug 25, 2021

There is a fix about this issue, #4108.
Have a try with source code or wait for next release.

@sisrfeng
Copy link

sisrfeng commented Sep 5, 2021

+1

@fsmosca
Copy link

fsmosca commented Sep 12, 2021

There is a fix about this issue, #4108.
Have a try with source code or wait for next release.

I have the same issue on win10 with python 3.9. In the first day it worked but in the second day I got Failed to create log dir: RangeError: Invalid time value. Tried the 4108 but does not help, I still have the same issue.

@fsmosca
Copy link

fsmosca commented Sep 13, 2021

Version 2.4 does not work. Tried 2.3 and it is working so far.

@scarlett2018
Copy link
Member

Version 2.4 does not work. Tried 2.3 and it is working so far.

@acured - may we add this to 2.5 test? just make sure that there are no regressions from 2.3 to 2.4 (then 2.5), thanks.

@liuzhe-lz
Copy link
Contributor

Fixed in v2.5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working user raised
Projects
None yet
Development

No branches or pull requests

6 participants