Skip to content
New issue

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

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

Already on GitHub? # to your account

jlab app server installation fails, Win11, v3.6.1-1 #587

Closed
black-snow opened this issue Feb 19, 2023 · 20 comments
Closed

jlab app server installation fails, Win11, v3.6.1-1 #587

black-snow opened this issue Feb 19, 2023 · 20 comments

Comments

@black-snow
Copy link

Description

JupyterLab installation succeeded but the built-in app server installer does not. It first shows some package error, that you can ignore (or retry but that doesn't help), and it then fails with:

grafik

Reproduce

  1. uninstall old jlab and jupyter
  2. download 3.6.1-1 for windows
  3. install
  4. start jupyter
  5. click on the built-in installer in the footer of the new welcome screen
  6. install "just for me"

Expected behavior

Successful install

Context

  • Operating System and version: Win11 10.0.22621 Build 22621, x64
  • JupyterLab-Desktop version: v3.6.1-1
  • Installer: .exe
Logs (required for issues with loading, server and startup)
[2023-02-19 16:49:04.120] [info]  In production mode
[2023-02-19 16:49:04.127] [info]  Logging to file (C:\Users\xxx\AppData\Roaming\jupyterlab-desktop\logs\main.log) at 'false' level
[2023-02-19 16:49:04.194] [error] (node:13108) DeprecationWarning: findLogPath() is deprecated and will be removed in v5.
(Use `JupyterLab --trace-deprecation ...` to show where the warning was created)
[2023-02-19 16:49:22.890] [verbose] Starting application in workspace: "default"
[2023-02-19 16:52:16.235] [error] Failed to create free server Error: No default environment found!
    at C:\JupyterLab\resources\app.asar\build\out\main\registry.js:191:32
    at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
[2023-02-19 16:52:16.238] [error] (node:23332) UnhandledPromiseRejectionWarning: Error: No default environment found!
    at C:\JupyterLab\resources\app.asar\build\out\main\registry.js:191:32
    at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
(Use `JupyterLab --trace-warnings ...` to show where the warning was created)
[2023-02-19 16:52:16.238] [error] (node:23332) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
[2023-02-19 16:54:32.429] [error] Error: Installer Exit: 2
    at ChildProcess. (C:\JupyterLab\resources\app.asar\build\out\main\app.js:470:50)
    at ChildProcess.emit (node:events:513:28)
    at ChildProcess._handle.onexit (node:internal/child_process:291:12)
[2023-02-19 16:54:40.169] [error] Failed to create free server Error: No default environment found!
    at C:\JupyterLab\resources\app.asar\build\out\main\registry.js:191:32
    at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
[2023-02-19 16:54:40.173] [error] (node:17788) UnhandledPromiseRejectionWarning: Error: No default environment found!
    at C:\JupyterLab\resources\app.asar\build\out\main\registry.js:191:32
    at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
(Use `JupyterLab --trace-warnings ...` to show where the warning was created)
[2023-02-19 16:54:40.174] [error] (node:17788) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
[2023-02-19 16:54:56.518] [error] (node:17788) [DEP0147] DeprecationWarning: In future versions of Node.js, fs.rmdir(path, { recursive: true }) will be removed. Use fs.rm(path, { recursive: true }) instead
@black-snow black-snow added the bug label Feb 19, 2023
@welcome
Copy link

welcome bot commented Feb 19, 2023

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗

If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively.
welcome
You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! 👋

Welcome to the Jupyter community! 🎉

@mbektas
Copy link
Member

mbektas commented Feb 20, 2023

I just tested on a Windows 11 virtual machine but couldn't reproduce the issue. Can you provide more info about your system? Is it an Intel CPU?

@black-snow
Copy link
Author

black-snow commented Feb 21, 2023

@mbektas thanks for looking into this.

AMD Ryzen 7 PRO 5850U with Radeon Graphics 1.90 GHz

I can include a screenshot of the first error (warning, actually) if that helps. It doesn't seem right, that you can hit "ignore" on that first error.

@mbektas
Copy link
Member

mbektas commented Feb 22, 2023

Can you try running the server installer directly and when JupyterLab Desktop is closed. possibly with elevated permissions if regular user permissions don't work.
It is located at C:\JupyterLab\resources\env_installer\JupyterLabDesktopAppServer-3.6.1-1-Windows-x86_64.exe

@black-snow
Copy link
Author

@mbektas

Same behaviour wenn running unprivileged (don't want to install it for all users):
grafik

@JasonWeill
Copy link

I notice that @black-snow is running a German version of Windows — are we sure we're using localized directory names in the installer? Windows sometimes uses different directory names in different language versions of the OS.

@black-snow
Copy link
Author

True.

3.5 worked fine, btw.

@mbektas
Copy link
Member

mbektas commented Feb 26, 2023

I notice that @black-snow is running a German version of Windows — are we sure we're using localized directory names in the installer? Windows sometimes uses different directory names in different language versions of the OS.

in the top screenshot installation directory is shown. It doesn't have any special characters.

@black-snow do you see an install.log file in your server installation directory? (...Roaming\jupyterlab-desktop\jlab_server), if so can you check if that provides any details on the error?

@black-snow
Copy link
Author

@mbektas there's no log there ...

grafik

@JasonWeill
Copy link

@mbektas What other info might help to triage this issue?

@mbektas
Copy link
Member

mbektas commented Apr 7, 2023

@black-snow does the full path to jlab_server contain any spaces or non-english characters?
can you try installing to another directory like C:/jlab_server.

@black-snow
Copy link
Author

black-snow commented Apr 12, 2023

@mbektas nope, nothing special there - just my Win home dir and my username is just ASCII letters.

On vacation atm, so I can't give it a try. Will try to remember when I'm back.

@JasonWeill
Copy link

@black-snow Any updates on this?

@black-snow
Copy link
Author

black-snow commented Apr 25, 2023

Tried 3.6.3-1:

grafik

and

grafik

Btw, is it intended that you don't get to chose the install location any longer? I also don't see an uninstaller for jlab server any longer - is this due to my broken installation or is it gone (no longer required to uninstall before an upgrade)?

@black-snow
Copy link
Author

Reinstalled "for all users" to c:\jlab_server and the install went through. JupyterLab now ain't seem to pick up the installation though - always displays the footer.

@mbektas
Copy link
Member

mbektas commented Apr 26, 2023

@black-snow did you set the Python executable in your installation path as the custom environment as described here?

@black-snow
Copy link
Author

black-snow commented May 2, 2023

@mbektas I don't get the question. I run the installer, then start up jupyter lab and hit "Install using the bundled installer" here:
grafik

/edit: I also get this from the installer details:
grafik

@mbektas
Copy link
Member

mbektas commented May 3, 2023

@black-snow I meant setting the installation at c:\jlab_server as the default Python environment. In the footer area of your screenshot, you can see Change the default Python environment. You can click that, go to the server tab and select python executable (must be in c:\jlab_server\python.exe) as shown here for macOS and restart.

@black-snow
Copy link
Author

black-snow commented May 8, 2023

Will give it a fresh shot with the new 3.6.3-2.

/edit: defaults (AppData\Roaming):
grafik

Installing to C:\jlab_server and setting the path seems to work fine @mbektas

@mbektas
Copy link
Member

mbektas commented May 17, 2023

glad to hear that!

@mbektas mbektas closed this as completed May 17, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

3 participants