JackGruber / joplin-plugin-hotfolder

A plugin to Monitor a locale folder and import the files as a new note.
46 stars 4 forks source link

Plug-in stopped working #31

Closed jcm4atx closed 1 year ago

jcm4atx commented 1 year ago

I have used this plug-in for almost as long as I've used Joplin. It stopped importing anything.

OS: Linux (Linux tintin 6.1.0-0.deb11.5-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.12-1~bpo11+1 (2023-03-05) x86_64 GNU/Linux)

Joplin: Joplin 2.9.17 (prod, linux)

Client ID: 01edee803d89447da1910331821c0f35 Sync Version: 3 Profile Version: 41 Keychain Supported: No

Revision: a84a8e7

Plug-in: v1.0.1

I see in the console logs where Joplin loads the plug-in, but nothing beyond that.

I have uninstalled and reinstalled the plug-in. No luck.

JackGruber commented 1 year ago

Can you upload the joplin log and a screenshot of your settings anyway? This is a normal Joplin installation, no Snap?

jcm4atx commented 1 year ago

Correct, normal installation. No Snap. It's an AppImage. I have since tried upgrading but same result.

Joplin 2.10.13 (prod, linux)

Client ID: 01edee803d89447da1910331821c0f35 Sync Version: 3 Profile Version: 42 Keychain Supported: No

Revision: 9645414

Combine notes: 1.0.1 Hotfolder: 1.0.1 Note Link System: 0.8.0 Plugin Bundle: 0.5.5

Screenshot from 2023-04-13 17-41-50

log.txt.zip

jcm4atx commented 1 year ago

Another data point. I blew away everything related to Joplin, reinstalled Joplin, reinstalled the plug-in, recreated the necessary folder and notebook. It still didn't work. I tried under another user. Same. However it works fine on my Linux desktop and my Windows laptop.

jcm4atx commented 1 year ago

I solved it.

I had to add fs.file-max = 2097152 to /etc/sysctl.conf.

jcm4atx commented 1 year ago

Just to add a little more info here. fs.file-max sets the maximum number of file-handles that the Linux kernel will allocate. I came across one source that suggested setting it to 2097152, which I did. I also found a rule of thumb to set it at 64000 for every 1 GB of RAM.

Since the plug-in continued to work on other machines, including a second Linux box, I suspected my system and not the plug-in per se. I questioned if as my Joplin note count increased, along with the number of files in use by the kernel/OS, had I crossed a limit. Turns out I had.