I have been having this weird bug wherein I cannot install plugins through Obsidian by the Settings > Community Plugins > Browser > Install flow.
Everytime I try to install a plugin, I either get a ‘failed to install plugin’ error or it does install but i cannot enable it.
I dug a bit around the Developer console. Here’s what I found when I was trying to install the Obsidian Admonitions plugin (awesome plugin btw) :
- On clicking install for the first time, the install failed. I check the Developer Console and see i got a 404.
app.js:1 Error: Request failed, status 404
at new t (app.js:1:1066656)
at ly (app.js:1:1066848)
at app.js:1:1067527
at app.js:1:258511
at Object.next (app.js:1:258616)
at a (app.js:1:257334)
- On clicking Install for the second time, it did work! But now I wouldn’t enable it. Turned out the
main.jsfile was missing
Plugin failure: obsidian-admonition Error: ENOENT: no such file or directory, open '/home/ash/Personal/.obsidian/plugins/obsidian-admonition/main.js'
at async open (node:internal/origin…-fs/promises:639:25)
at async Object.readFile (node:internal/origin…fs/promises:1242:14)
I went to my .obsidian/plguins directory and confirmed that the obisidian-admonitiondirectory did not have a main.js file inside it.
I have no clue why this is happening. It looks like an internet/firewall issue but I can visit the Obsidian plugin store as well as any plugin’s github repository just fine in my browser.
As a workaround, right now i am manually downloading releases of plugins and placing them in my .obsidian/pluginsdirectory. It seems to be working but I am not sure if I should be doing this.
Steps to reproduce
Install Obsidian and try to download any plugin through the Community Plugins section
(i am pretty sure this has something to do with my environment and cannot be reproduced easily)
Did you follow the troubleshooting guide? [Y/N] Yes
Environment
SYSTEM INFO:
Obsidian version: 1.12.7
Installer version: 1.7.7
Operating system: #19~24.04.2-Ubuntu SMP PREEMPT_DYNAMIC Fri Mar 6 23:08:46 UTC 2 6.17.0-19-generic
Login status: not logged in
Language: en
Insider build toggle: off
Live preview: on
Base theme: adapt to system
Community theme: Minimal 7.6.0
Snippets enabled: 0
Restricted mode: off
Plugins installed: 13
Plugins enabled: 12
1: Iconize v2.14.7
2: Templater v2.18.1
3: Homepage v4.0.7
4: Lazy Plugin Loader v1.0.18
5: Minimal Theme Settings v8.2.1
6: Outliner v4.10.0
7: Advanced Tables v0.22.1
8: Calendar v1.5.10
9: Excalidraw v2.21.2
10: Latex Suite v1.9.8
11: Style Settings v1.0.9
12: Tag Wrangler v0.6.4
RECOMMENDATIONS:
Custom theme and snippets: for cosmetic issues, please first try updating your theme and disabling your snippets. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community theme and snippets.
Community plugins: for bugs, please first try updating all your plugins to latest. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community plugins.
Additional information
Os: Ubuntu 24.04 LTS
Obsidian install type: AppImage
Desktop: Gnome
Gnome-shell version: 46.0