haiwen / seafdav

Seafile webdav server
Other
84 stars 68 forks source link

seafdav does not work #27

Closed shady2k closed 4 years ago

shady2k commented 5 years ago

seafdav does not work. Server version 7.0.3. https://download.seadrive.org/seafile-server_7.0.3_x86-64.tar.gz

Config:

[WEBDAV]
enabled = true
port = 8081
fastcgi = false
share_name = /seafdav

In log file after restart:

[2019-07-15 14:01:33,715]:  Init seahub database...
[2019-07-15 14:01:33,715]:  Failed to init seahub db: No module named seahub_settings.

Server returns HTTP error 500.

caixiangyue commented 5 years ago

Check if seahub_settings.py exists in conf directory.

shady2k commented 5 years ago

Check if seahub_settings.py exists in conf directory.

Yes, file exists.

caixiangyue commented 5 years ago

can you tell me detailed reproduce step?

shady2k commented 5 years ago
  1. Install server version 7.0.3
  2. Create config seafdav.conf
    [WEBDAV]
    enabled = true
    port = 8081
    fastcgi = false
    share_name = /seafdav
  3. Set up nginx
  4. Restart Seafile
shady2k commented 5 years ago

After upgrade server to version 7.0.4, no records in seafdav.log at all.

sinni800 commented 4 years ago

Seafdav is gone for me too, it just simply doesn't start anymore. I can't find a trace of it since upgrading to 7.0.4 from 6.3.4

EDIT: Controller.log shows stuff,


[12/25/19 02:32:29] seafile-controller.c(594): pid file /home/seafile/pids/seafdav.pid does not exist
[12/25/19 02:32:29] seafile-controller.c(631): seafdav need restart...
[12/25/19 02:32:29] seafile-controller.c(94): spawn_process: /usr/bin/python2.7 -m wsgidav.server.run_server --log-file /home/seafile/logs/seafdav.log --pid /home/seafile/pids/seafdav.pid --port 12003 --host 0.0.0.0
[12/25/19 02:32:29] seafile-controller.c(109): spawned /usr/bin/python2.7, pid 3881302
cpstar commented 4 years ago

this may be a bug. because wsgi/addons/seafile/seahub_db.py import seahub_settings module and failed. I've made a symbolic link from the conf/seahub_settings.py to the addons, at least the error of 'Failed to init seahub db' never shows up. However it still not working. I'm using nginx, nginx returns 502.

RasmusAaen commented 4 years ago

Same problem here - running Seafile server 7.0.5 behind Apache.

@caixiangyue - any news on this? It seems to be a general problem.

Update: I upgraded to v. 7.1.3 - that fixed the problem, so I guess It's OK now.

caixiangyue commented 4 years ago

Same problem here - running Seafile server 7.0.5 behind Apache.

@caixiangyue - any news on this? It seems to be a general problem.

Update: I upgraded to v. 7.1.3 - that fixed the problem, so I guess It's OK now.

Yes, 7.1.X is available.