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

Cannot open LM Studio in Kubuntu 24.04 I have copied the terminal outputs using sudo and not using sudo #386

Open
HayesJohnD opened this issue Feb 2, 2025 · 1 comment

Comments

@HayesJohnD
Copy link

Well, it's not going to run on my system. Below is an image of my system specs, it's already running DeepSeek-r1:70b using ollama.

Image

If I use sudo to start the appimage with --no-sandbox, I get a blank window with the following output:

~/Downloads $ sudo ./LM-Studio-0.3.9-6-x64.AppImage --no-sandbox
Setting fork function. Is it node? false
[2247295:0201/222303.862645:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[2247295:0201/222303.862733:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[2247295:0201/222303.862759:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[2247295:0201/222303.862792:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[2247295:0201/222303.862799:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
Authorization required, but no authorization protocol specified

Authorization required, but no authorization protocol specified

Forking systemresourcesworker: isDevBuild: false, isElectron: true
Authorization required, but no authorization protocol specified

Authorization required, but no authorization protocol specified

[2247659:0201/222304.046535:ERROR:angle_platform_impl.cc(44)] Display.cpp:1083 (initialize): ANGLEDisplay::initialize error 12289: Could not open the default X display.
ERR: Display.cpp:1083 (initialize): ANGLE Display::initialize error 12289: Could not open the default X display.
[2247659:0201/222304.047774:ERROR:gl_display.cc(497)] EGL Driver message (Critical) eglInitialize:Could not open the default X display.
[2247659:0201/222304.047808:ERROR:gl_display.cc(767)] eglInitialize OpenGL failed with error EGL_NOT_INITIALIZED, trying next display type
Authorization required, but no authorization protocol specified

[2247659:0201/222304.047973:ERROR:angle_platform_impl.cc(44)] Display.cpp:1083 (initialize): ANGLEDisplay::initialize error 12289: Could not open the default X display.
ERR: Display.cpp:1083 (initialize): ANGLE Display::initialize error 12289: Could not open the default X display.
[2247659:0201/222304.048010:ERROR:gl_display.cc(497)] EGL Driver message (Critical) eglInitialize:Could not open the default X display.
[2247659:0201/222304.048042:ERROR:gl_display.cc(767)] eglInitialize OpenGLES failed with error EGL_NOT_INITIALIZED
[2247659:0201/222304.048074:ERROR:gl_display.cc(801)] Initialization of all EGL display types failed.
[2247659:0201/222304.048129:ERROR:gl_ozone_egl.cc(26)] GLDisplayEGL::Initialize failed.
Authorization required, but no authorization protocol specified

[2247659:0201/222304.086129:ERROR:angle_platform_impl.cc(44)] Display.cpp:1083 (initialize): ANGLEDisplay::initialize error 12289: Could not open the default X display.
ERR: Display.cpp:1083 (initialize): ANGLE Display::initialize error 12289: Could not open the default X display.
[2247659:0201/222304.086215:ERROR:gl_display.cc(497)] EGL Driver message (Critical) eglInitialize:Could not open the default X display.
[2247659:0201/222304.086252:ERROR:gl_display.cc(767)] eglInitialize OpenGL failed with error EGL_NOT_INITIALIZED, trying next display type
Authorization required, but no authorization protocol specified

[2247659:0201/222304.086393:ERROR:angle_platform_impl.cc(44)] Display.cpp:1083 (initialize): ANGLEDisplay::initialize error 12289: Could not open the default X display.
ERR: Display.cpp:1083 (initialize): ANGLE Display::initialize error 12289: Could not open the default X display.
[2247659:0201/222304.086436:ERROR:gl_display.cc(497)] EGL Driver message (Critical) eglInitialize:Could not open the default X display.
[2247659:0201/222304.086473:ERROR:gl_display.cc(767)] eglInitialize OpenGLES failed with error EGL_NOT_INITIALIZED
[2247659:0201/222304.086512:ERROR:gl_display.cc(801)] Initialization of all EGL display types failed.
[2247659:0201/222304.086550:ERROR:gl_ozone_egl.cc(26)] GLDisplayEGL::Initialize failed.
[2247659:0201/222304.091900:ERROR:viz_main_impl.cc(181)] Exiting GPU process due to errors during initialization
Authorization required, but no authorization protocol specified

Authorization required, but no authorization protocol specified

Authorization required, but no authorization protocol specified

Authorization required, but no authorization protocol specified

[2247683:0201/222304.148910:ERROR:angle_platform_impl.cc(44)] DisplayVkXcb.cpp:58 (initialize): xcb_connect() failed, error 1
ERR: DisplayVkXcb.cpp:58 (initialize): xcb_connect() failed, error 1
[2247683:0201/222304.149024:ERROR:angle_platform_impl.cc(44)] Display.cpp:1083 (initialize): ANGLEDisplay::initialize error 12289: Not initialized.
ERR: Display.cpp:1083 (initialize): ANGLE Display::initialize error 12289: Not initialized.
[2247683:0201/222304.149064:ERROR:gl_display.cc(497)] EGL Driver message (Critical) eglInitialize:Not initialized.
[2247683:0201/222304.149097:ERROR:gl_display.cc(767)] eglInitialize SwANGLE failed with error EGL_NOT_INITIALIZED
[2247683:0201/222304.149137:ERROR:gl_display.cc(801)] Initialization of all EGL display types failed.
[2247683:0201/222304.149176:ERROR:gl_ozone_egl.cc(26)] GLDisplayEGL::Initialize failed.
Authorization required, but no authorization protocol specified

[2247683:0201/222304.179747:ERROR:angle_platform_impl.cc(44)] DisplayVkXcb.cpp:58 (initialize): xcb_connect() failed, error 1
ERR: DisplayVkXcb.cpp:58 (initialize): xcb_connect() failed, error 1
[2247683:0201/222304.179824:ERROR:angle_platform_impl.cc(44)] Display.cpp:1083 (initialize): ANGLEDisplay::initialize error 12289: Not initialized.
ERR: Display.cpp:1083 (initialize): ANGLE Display::initialize error 12289: Not initialized.
[2247683:0201/222304.179869:ERROR:gl_display.cc(497)] EGL Driver message (Critical) eglInitialize:Not initialized.
[2247683:0201/222304.179912:ERROR:gl_display.cc(767)] eglInitialize SwANGLE failed with error EGL_NOT_INITIALIZED
[2247683:0201/222304.179952:ERROR:gl_display.cc(801)] Initialization of all EGL display types failed.
[2247683:0201/222304.179989:ERROR:gl_ozone_egl.cc(26)] GLDisplayEGL::Initialize failed.
[2247683:0201/222304.181360:ERROR:viz_main_impl.cc(181)] Exiting GPU process due to errors during initialization
Authorization required, but no authorization protocol specified

Authorization required, but no authorization protocol specified

[CachedFileDataProvider] Watching file at /root/.config/LM Studio/settings.json
[VersionMigrationProvider] Last recorded app version: v0.3.9-b6
[VersionMigrationProvider] Current app version: v0.3.9-b6
[VersionMigrationProvider] No app version update detected.
[CachedFileDataProvider] Watching file at /root/.lmstudio/.internal/backend-preferences-v1.json
22:23:04.301 › App starting...
22:23:04.305 › [AppUpdater] Update channel set to 'stable'
[CachedFileDataProvider] Watching file at /root/.lmstudio/.internal/http-server-config.json
[FileData] Initializing FileData
[SystemResourcesProvider] Hardware survey successfully achieved through bundled 'vulkan' liblmstudio.
22:23:04.507 › Hardware survey for general system resources through 'vulkan' took 193.45ms
[CachedFileDataProvider] Watching file at /root/.lmstudio/.internal/hardware-config.json
[CachedFileDataProvider] Watching file at /root/.lmstudio/credentials/lmstudio-hub.json
App is ready
[2247295:0201/222304.660595:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[2247295:0201/222304.667771:ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.DBus.NameHasOwner: object_path= /org/freedesktop/DBus: unknown error type:
[2247295:0201/222304.680479:ERROR:browser_main_loop.cc(279)] Gtk: gtk_widget_add_accelerator: assertion 'GTK_IS_ACCEL_GROUP (accel_group)' failed
[InternalPluginsProvider] Indexing installed plugins.
[CachedFileDataProvider] Watching file at /root/.lmstudio/.internal/model-data.json
[LMSInternal][Client=LM Studio] Client created.
[ConversationsProvider][ConfigFile] Initializing FileData
22:23:04.774 › [AppUpdater] Checking for updates... (current state: idle)
22:23:04.774 › AppUpdater state changed to checking-for-updates-periodic
22:23:04.775 › [AppUpdater] Fetching version info from https://versions-prod.lmstudio.ai/update/linux/x86/0.3.9
App is ready
[LMSInternal][Client=plugin:builtin:lmstudio/default-generator] Client created.
[LMSInternal][Client=plugin:builtin:lmstudio/experimental-rag] Client created.
[LMSInternal][Client=plugin:builtin:lmstudio/rag-v1] Client created.
[FileWatchingProvider] Start syncing file watching provider... Changes may be missed during this process.
[FileWatchingProvider][Watcher-0] Sync: Subscribing to /root/.config/LM Studio
[ Generator] Register with LM Studio
[Preprocessor] Register with LM Studio
[Preprocessor] Register with LM Studio
[LMSInternal][Client=plugin:builtin:lmstudio/default-generator][Endpoint=setGenerator] Registeringgenerator.
[LMSInternal][Client=plugin:builtin:lmstudio/experimental-rag][Endpoint=setPreprocessor] Registering preprocessor.
[LMSInternal][Client=plugin:builtin:lmstudio/rag-v1][Endpoint=setPreprocessor] Registering preprocessor.
[FileWatchingProvider][Watcher-1] Sync: Subscribing to /root/.lmstudio/.internal
[FileWatchingProvider][Watcher-2] Sync: Subscribing to /root/.lmstudio/extensions/backends/vendor
[FileWatchingProvider][Watcher-3] Sync: Subscribing to /root/.lmstudio/credentials
[FileWatchingProvider][Watcher-4] Sync: Subscribing to /root/.lmstudio/user-files
[FileWatchingProvider][Watcher-5] Sync: Subscribing to /root/.lmstudio/conversations
[FileWatchingProvider][Watcher-6] Sync: Subscribing to /root/.lmstudio/config-presets
[FileWatchingProvider][Watcher-7] Sync: Subscribing to /root/.lmstudio/hub/presets
[FileWatchingProvider] Sync completed.
[2247295:0201/222304.817034:ERROR:browser_main_loop.cc(279)] Gtk: gtk_widget_add_accelerator: assertion 'GTK_IS_ACCEL_GROUP (accel_group)' failed
Preload script prod path /tmp/.mount_LM-Stu6r4wA3/resources/app/.webpack/main/main_window_preload.js
[2247295:0201/222304.986456:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
process.env.NODE_ENV production
[2247706:0201/222305.050133:ERROR:x11_software_bitmap_presenter.cc(150)] XGetWindowAttributes failed for window 224395268
22:23:05.225 › [AppUpdater] Received version info response
22:23:05.226 › [AppUpdater] Current version: 0.3.9 (build: 6), new version: 0.3.9 (build: 5)
22:23:05.226 › No update available: 0.3.9 (build: 5) <= 0.3.9 (build: 6)
22:23:05.226 › AppUpdater state changed to idle
[DelayedInitProvider] Running delayed init: update lms
[LmsProvider] Extracting lms from /tmp/.mount_LM-Stu6r4wA3/resources/app/.webpack/lms to /root/.lmstudio/bin/lms
[DelayedInitProvider] Running delayed init: autoStartServer
[DelayedInitProvider] Running delayed init: ModelIndexProvider
[DelayedInitProvider] Running delayed init: Unbundle dependencies
[BundledDepsUnpackager] Unbundling engines from the app installer... (/tmp/.mount_LM-Stu6r4wA3/resources/app/.webpack/bin/extensions/backends -> /root/.lmstudio/extensions/backends)
[DelayedInitProvider] Running delayed init: LoginItemSync
[DelayedInitProvider] Running delayed init: Extract utils
[DelayedInitProvider] Running delayed init: startAPIServer
[APIServerProvider] Trying to start the API Server on port: 41343
[DelayedInitProvider] Running delayed init: Refresh backends master list
[DelayedInitProvider] Running delayed init after UI: plugins init load
[ModelIndexProvider] Directory added: /root/.lmstudio/models
[APIServerProvider] API Server started on port: 41343
[UtilsProvider] Skipping extraction of esbuild because it already exists.
[ModelIndexProvider][Op-1] Requested to index directory: /root/.lmstudio/models
[ModelIndexProvider][Op-1] Starting indexing operation on directory: /root/.lmstudio/models
[ModelIndexProvider] Directory added: /tmp/.mount_LM-Stu6r4wA3/resources/app/.webpack/bin/bundled-models
[UtilsProvider] Skipping extraction of node because it already exists.
[2247295:0201/222305.831586:ERROR:browser_main_loop.cc(279)] Gtk: gtk_widget_add_accelerator: assertion 'GTK_IS_ACCEL_GROUP (accel_group)' failed
[ModelIndexProvider][Op-2] Requested to index directory: /tmp/.mount_LM-Stu6r4wA3/resources/app/.webpack/bin/bundled-models
[ModelIndexProvider][Op-2] Starting indexing operation on directory: /tmp/.mount_LM-Stu6r4wA3/resources/app/.webpack/bin/bundled-models
[FileWatchingProvider] Start syncing file watching provider... Changes may be missed during this process.
[FileWatchingProvider][Watcher-8] Sync: Subscribing to /root/.lmstudio/models
[FileWatchingProvider][Watcher-9] Sync: Subscribing to /tmp/.mount_LM-Stu6r4wA3/resources/app/.webpack/bin/bundled-models
[FileWatchingProvider] Sync completed.
[GGUFMetadataProvider] Reading GGUF metadata for /tmp/.mount_LM-Stu6r4wA3/resources/app/.webpack/bin/bundled-models/nomic-ai/nomic-embed-text-v1.5-GGUF/nomic-embed-text-v1.5.Q4_K_M.gguf took 92ms
[2247295:0201/222305.936978:ERROR:browser_main_loop.cc(279)] Gtk: gtk_widget_add_accelerator: assertion 'GTK_IS_ACCEL_GROUP (accel_group)' failed
[BundledDepsUnpackager] ✅ Finished unbundling engines from the app installer. [170.83 ms], hasAnythingMoved: true
[BundledDepsUnpackager] Unbundling frameworks from the app installer... (/tmp/.mount_LM-Stu6r4wA3/resources/app/.webpack/bin/extensions/frameworks -> /root/.lmstudio/extensions/frameworks)
[BundledDepsUnpackager] No bundled source directory found at '/tmp/.mount_LM-Stu6r4wA3/resources/app/.webpack/bin/extensions/frameworks'. Nothing to unbundle.
[BackendManager] Performing backend hardware survey...
[BackendManager] Extensions backends directory already exists at /root/.lmstudio/extensions/backends
[BackendManager] Surveying backend-hardware compatibility...
[BackendManager] Hardware survey for runtime 'llama.cpp-linux-x86_64-avx2', version '1.12.0' took 250.54ms
[LmsProvider] Extracted lms successfully
[CachedFileDataProvider] Watching file at /root/.lmstudio/.internal/ui-state/global.json
22:23:06.440 › Failed to survey hardware with backend 'llama.cpp-linux-x86_64-nvidia-cuda-avx2', version '1.12.0': LMSCore load lib failed - child process with PID 2247901 exited with code 1
[BackendManager] Hardware survey for runtime 'llama.cpp-linux-x86_64-nvidia-cuda-avx2', version '1.12.0' took 185.75ms
[LMSInternal][Client=LM Studio][Endpoint=quickSearchOne] quickSearchOne hugging-quants/Llama-3.2-1B-Instruct-Q8_0-GGUF
[SearchProvider] No supported model compatibility types found, using fallback defaults
[SearchProvider] Expanding search term hugging-quants/Llama-3.2-1B-Instruct-Q8_0-GGUF
[BackendManager] Hardware survey for runtime 'llama.cpp-linux-x86_64-vulkan-avx2', version '1.12.0' took 212.40ms
[BackendManager] Backend-hardware compatibility survey complete
[BackendManager] Updating backend preferences file at '/root/.lmstudio/.internal/backend-preferences-v1.json' for current environment...
[BackendManager] Detecting the 'best backend' available for use for model format 'gguf'...
[BackendManager] First compatible backend found on non-mac is 'llama.cpp-linux-x86_64-avx2', version '1.12.0', setting as best
[BackendManager] Backend 'llama.cpp-linux-x86_64-vulkan-avx2' has GPU acceleration, while 'llama.cpp-linux-x86_64-avx2' does not. Setting 'llama.cpp-linux-x86_64-vulkan-avx2' as best
[BackendManager] Best 'gguf' backend for detected to be 'llama.cpp-linux-x86_64-vulkan-avx2'
[BackendManager] Detecting the 'best backend' available for use for model format 'safetensors'...
[BackendManager] Failed to get best backend for model format 'safetensors': Best backend options is null after logic attempting to get!
[BackendManager] Detecting the 'best backend' available for use for model format 'onnx'...
[BackendManager] Failed to get best backend for model format 'onnx': Best backend options is null after logic attempting to get!
[BackendManager] Backend preferences file update complete
[FileWatchingProvider] Start syncing file watching provider... Changes may be missed during this process.
[FileWatchingProvider][Watcher-2] Sync: Unsubscribing from /root/.lmstudio/extensions/backends/vendor
[FileWatchingProvider][Watcher-10] Sync: Subscribing to /root/.lmstudio/extensions/backends
[FileWatchingProvider] Sync completed.
[BundledDepsUnpackager] Upgrading selected runtimes...
[BundledDepsUnpackager] Finding latest version for runtime: llama.cpp-linux-x86_64-vulkan-avx2
[BundledDepsUnpackager] Matching versions found: 1.12.0
[BundledDepsUnpackager] Latest version found: 1.12.0
[LMSInternal][Client=LM Studio][Endpoint=quickSearchOne] quickSearchOne lmstudio-community/DeepSeek-R1-Distill-Qwen-7B-GGUF
[SearchProvider] Expanding search term lmstudio-community/DeepSeek-R1-Distill-Qwen-7B-GGUF
[SearchProvider] Applied expansion rule from: qwen to: [ 'qwen', 'qwen2' ] now: [
'lmstudio-community/DeepSeek-R1-Distill-qwen-7B-GGUF',
'lmstudio-community/DeepSeek-R1-Distill-qwen2-7B-GGUF'
]
[2247295:0201/222350.796733:ERROR:browser_main_loop.cc(279)] Gtk: gtk_widget_add_accelerator: assertion 'GTK_IS_ACCEL_GROUP (accel_group)' failed
[CleanupProvider] Running 0 pre-cleanups...
[CleanupProvider] Running 7 cleanups...
[CleanupProvider] Running cleanup: flush queued writes (1/7)
[CleanupProvider] Running cleanup: unnamed (2/7)
[CleanupProvider] Running cleanup: Shutdown http server (3/7)
[2247295:0201/222350.822818:ERROR:browser_main_loop.cc(279)] Gtk: gtk_widget_add_accelerator: assertion 'GTK_IS_ACCEL_GROUP (accel_group)' failed
[2247295:0201/222350.825173:ERROR:browser_main_loop.cc(279)] Gtk: gtk_widget_add_accelerator: assertion 'GTK_IS_ACCEL_GROUP (accel_group)' failed
[CleanupProvider] Running cleanup: model index watchers (4/7)
[CleanupProvider] Running cleanup: Shutdown api server (5/7)
[CleanupProvider] Running cleanup: system external api shutdown (6/7)
[CleanupProvider] Running cleanup: cleanup temp folder (7/7)
App is quitting

Running without sudo

~/Downloads $ ./LM-Studio-0.3.9-6-x64.AppImage --no-sandbox
Setting fork function. Is it node? false
[2249268:0201/222402.130269:ERROR:proxy_config_service_linux.cc(626)] inotify_init failed: Too many open files (24)
[2249268:0201/222402.138104:ERROR:file_path_watcher_inotify.cc(337)] inotify_init() failed: Too many open files (24)
Forking systemresourcesworker: isDevBuild: false, isElectron: true
[CachedFileDataProvider] Watching file at /home/john/.config/LM Studio/settings.json
[VersionMigrationProvider] Last recorded app version: v0.3.9-b6
[VersionMigrationProvider] Current app version: v0.3.9-b6
[VersionMigrationProvider] No app version update detected.
[CachedFileDataProvider] Watching file at /home/john/.lmstudio/.internal/backend-preferences-v1.json
22:24:02.644 › App starting...
22:24:02.648 › [AppUpdater] Update channel set to 'stable'
[CachedFileDataProvider] Watching file at /home/john/.lmstudio/.internal/http-server-config.json
[FileData] Initializing FileData
[SystemResourcesProvider] Hardware survey successfully achieved through bundled 'vulkan' liblmstudio.
22:24:02.860 › Hardware survey for general system resources through 'vulkan' took 205.44ms
[CachedFileDataProvider] Watching file at /home/john/.lmstudio/.internal/hardware-config.json
[CachedFileDataProvider] Watching file at /home/john/.lmstudio/credentials/lmstudio-hub.json
App is ready
[InternalPluginsProvider] Indexing installed plugins.
[CachedFileDataProvider] Watching file at /home/john/.lmstudio/.internal/model-data.json
[LMSInternal][Client=LM Studio] Client created.
[ConversationsProvider][ConfigFile] Initializing FileData
22:24:03.116 › [AppUpdater] Checking for updates... (current state: idle)
22:24:03.117 › AppUpdater state changed to checking-for-updates-periodic
22:24:03.118 › [AppUpdater] Fetching version info from https://versions-prod.lmstudio.ai/update/linux/x86/0.3.9
App is ready
[LMSInternal][Client=plugin:builtin:lmstudio/default-generator] Client created.
[LMSInternal][Client=plugin:builtin:lmstudio/experimental-rag] Client created.
[LMSInternal][Client=plugin:builtin:lmstudio/rag-v1] Client created.
[FileWatchingProvider] Start syncing file watching provider... Changes may be missed during this process.
[FileWatchingProvider][Watcher-0] Sync: Subscribing to /home/john/.config/LM Studio
[ Generator] Register with LM Studio
[Preprocessor] Register with LM Studio
[Preprocessor] Register with LM Studio
[LMSInternal][Client=plugin:builtin:lmstudio/default-generator][Endpoint=setGenerator] Registeringgenerator.
[LMSInternal][Client=plugin:builtin:lmstudio/experimental-rag][Endpoint=setPreprocessor] Registering preprocessor.
[LMSInternal][Client=plugin:builtin:lmstudio/rag-v1][Endpoint=setPreprocessor] Registering preprocessor.

Originally posted by @HayesJohnD in #383

@HayesJohnD
Copy link
Author

Here are my open file settings, I think I have plenty of room:

~/Downloads $ ulimit -Sn
20000
~/Downloads $ ulimit -Hn
524288
~/Downloads $ cat /proc/sys/fs/file-max
9223372036854775807
~/Downloads $

I can bump the first 2 up if you think I need too.

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

1 participant