Skip to content

webdav-start in backgroundΒ #2

@cbertelli

Description

@cbertelli

If I start webdav in background as suggested:

$ python3.9 cli.py webdav-start --background

I get:

βœ… Authentication verified
πŸ”§ Creating WebDAV application...
πŸ” WEBDAV: Initializing InternxtDAVProvider...
βœ… WEBDAV: Provider initialized with credentials for: user@mail.com
πŸ”§ Setting up server on localhost:3005...
πŸ”§ Using WSGI server: waitress

🌐 WebDAV server starting on http://localhost:3005/
πŸ“ Mount point: http://localhost:3005/
πŸ‘€ Username: internxt
πŸ”‘ Password: internxt-webdav

🌐 Web interface available at: http://localhost:3005/

πŸ’‘ Connection Instructions:
   1. Open Finder
   2. Press Cmd+K
   3. Enter server address: http://localhost:3005/
   4. Username: internxt
   5. Password: internxt-webdav

Press Ctrl+C to stop the server
❌ WebDAV server error: signal only works in main thread of the main interpreter
Traceback (most recent call last):
  File "/home/user/internxt-cli/services/webdav_server.py", line 235, in _run_server_thread
    signal.signal(signal.SIGINT, signal_handler)
  File "/usr/lib64/python3.9/signal.py", line 56, in signal
    handler = _signal.signal(_enum_to_int(signalnum), _enum_to_int(handler))
ValueError: signal only works in main thread of the main interpreter
πŸ›‘ WebDAV server stopped
❌ Failed to start server in background

If I start it with

$ python3.9 cli.py webdav-start &

as usual for linux, I lose contact with the running process, so webdav-status, webdav-mount, webdav-stop do not recognize the running process and ask for a previous wedbav-start.

By the way, I suspect that waitress is responsible for not providing the COPY command that handles metadata besides copying the files.
Is there an alternative webdav server that handles it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions