dullage / flatnotes

A self-hosted, database-less note taking web app that utilises a flat folder of markdown files for storage.
MIT License
1.5k stars 87 forks source link

Multiple Errors #172

Closed piuser99 closed 6 months ago

piuser99 commented 7 months ago

Here is the docker container error log: Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/local/lib/python3.11/site-packages/uvicorn/main.py", line 4, in uvicorn.main() File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1157, in call return self.main(args, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1078, in main rv = self.invoke(ctx) ^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1434, in invoke return ctx.invoke(self.callback, ctx.params) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/click/core.py", line 783, in invoke return __callback(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/uvicorn/main.py", line 416, in main run( File "/usr/local/lib/python3.11/site-packages/uvicorn/main.py", line 587, in run server.run() File "/usr/local/lib/python3.11/site-packages/uvicorn/server.py", line 61, in run return asyncio.run(self.serve(sockets=sockets)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/asyncio/runners.py", line 190, in run return runner.run(main) ^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/asyncio/runners.py", line 118, in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/asyncio/base_events.py", line 654, in run_until_complete return future.result() ^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/uvicorn/server.py", line 68, in serve config.load() File "/usr/local/lib/python3.11/site-packages/uvicorn/config.py", line 467, in load self.loaded_app = import_from_string(self.app) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/uvicorn/importer.py", line 21, in import_from_string module = importlib.import_module(module_str) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "", line 1204, in _gcd_import File "", line 1176, in _find_and_load File "", line 1147, in _find_and_load_unlocked File "", line 690, in _load_unlocked File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "/app/server/main.py", line 18, in note_storage: BaseNotes = global_config.load_note_storage() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/server/global_config.py", line 24, in load_note_storage return FileSystemNotes() ^^^^^^^^^^^^^^^^^ File "/app/server/notes/file_system/file_system.py", line 53, in init self.index = self._load_index() ^^^^^^^^^^^^^^^^^^ File "/app/server/notes/file_system/file_system.py", line 168, in _load_index if index_dir_exists and whoosh.index.exists_in( ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/whoosh/index.py", line 136, in exists_in ix = open_dir(dirname, indexname=indexname) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/whoosh/index.py", line 123, in open_dir return FileIndex(storage, schema=schema, indexname=indexname) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/whoosh/index.py", line 421, in init TOC.read(self.storage, self.indexname, schema=self._schema) File "/usr/local/lib/python3.11/site-packages/whoosh/index.py", line 632, in read check_size("int", _INT_SIZE) File "/usr/local/lib/python3.11/site-packages/whoosh/index.py", line 626, in check_size sz = stream.read_varint() ^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/whoosh/filedb/structfile.py", line 191, in read_varint return read_varint(self.read) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/whoosh/util/varints.py", line 102, in read_varint b = ord(readfn(1)) ^^^^^^^^^^^^^^ TypeError: ord() expected a character, but string of length 0 found Or manually enter this key:

dullage commented 7 months ago

Hi @piuser99. Can you provide a little more context here please e.g.

dullage commented 6 months ago

Closing as stale.