[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Health-dev] [bug #62608] health webdav not running
From: |
Feng Shu |
Subject: |
[Health-dev] [bug #62608] health webdav not running |
Date: |
Tue, 19 Jul 2022 19:58:16 -0400 (EDT) |
Follow-up Comment #3, bug #62608 (project health):
[comment #1 comment #1:]
> Dear Gerald
>
> Thank you for reporting!
>
> I can't reproduce it.. are you actually executing the webdav server from the
"bin" dir (gnuhealth-webdav-server)? Notice the "os" package is there.
I think os package is not in health_webdav3_server/bin dir.
>
> It seems to run OK on my box...
>
> lfm@beastie:~/gnuhealth/tryton/server/modules/health_webdav3_server/bin $
./gnuhealth-webdav-server -vv
> 2285198 140280141563712 [2022-06-14 12:35:16,322] INFO
trytond.modules.health_webdav3_server.server using
/home/lfm/gnuhealth/tryton/server/config/trytond.conf as configuration file
> 2285198 140280141563712 [2022-06-14 12:35:16,322] INFO
trytond.modules.health_webdav3_server.server initialising distributed objects
services
> 2285198 140280141563712 [2022-06-14 12:35:16,357] INFO
trytond.modules.health_webdav3_server.server starting WebDAV protocol on
*:8080
>
I have tested in my machine, when run ./gnuhealth-webdav-server -vv, no error,
but if your browser http://localhost:8080/ in firefox,
the below error will be exist
```
----------------------------------------
Exception occurred during processing of request from ('::ffff:127.0.0.1',
58212, 0, 0)
Traceback (most recent call last):
File "/usr/lib/python3.9/socketserver.py", line 650, in
process_request_thread
self.finish_request(request, client_address)
File "/usr/lib/python3.9/socketserver.py", line 360, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/usr/lib/python3.9/socketserver.py", line 720, in __init__
self.handle()
File "/usr/lib/python3.9/http/server.py", line 427, in handle
self.handle_one_request()
File "/usr/lib/python3.9/http/server.py", line 415, in handle_one_request
method()
File
"/home/feng/.local/lib/python3.9/site-packages/pywebdav/lib/WebDAVServer.py",
line 296, in do_GET
status_code = self._HEAD_GET(with_body=True)
File
"/home/feng/.local/lib/python3.9/site-packages/pywebdav/lib/WebDAVServer.py",
line 262, in _HEAD_GET
data = dc.get_data(uri, range)
File
"/home/feng/gnuhealth/tryton/server/trytond-6.0.20/trytond/modules/health_webdav3_server/protocol.py",
line 254, in get_data
'GNU Health</a> version %s</em>' % os.environ['GNUHEALTH_VERSION'])
NameError: name 'os' is not defined
----------------------------------------
```
I add 'import os' to protocol.py, 'NameError: name 'os' is not defined' is
dispear.
when I vistit http://localhost:8080/gnuhealth1in firefox, the following error
exist:
```
----------------------------------------
Exception occurred during processing of request from ('::ffff:127.0.0.1',
57936, 0, 0)
Traceback (most recent call last):
File "/usr/lib/python3.9/socketserver.py", line 720, in __init__
self.handle()
File "/usr/lib/python3.9/http/server.py", line 427, in handle
self.handle_one_request()
File "/usr/lib/python3.9/http/server.py", line 405, in handle_one_request
if not self.parse_request():
File
"/home/feng/gnuhealth/tryton/server/trytond-6.0.20/trytond/modules/health_webdav3_server/protocol.py",
line 577, in parse_request
if not self.get_userinfo(user, password, self.command):
File
"/home/feng/gnuhealth/tryton/server/trytond-6.0.20/trytond/modules/health_webdav3_server/protocol.py",
line 622, in get_userinfo
Cache.clean(dbname)
AttributeError: type object 'MemoryCache' has no attribute 'clean'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.9/socketserver.py", line 650, in
process_request_thread
self.finish_request(request, client_address)
File "/usr/lib/python3.9/socketserver.py", line 360, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/usr/lib/python3.9/socketserver.py", line 722, in __init__
self.finish()
File
"/home/feng/gnuhealth/tryton/server/trytond-6.0.20/trytond/modules/health_webdav3_server/protocol.py",
line 561, in finish
Cache.resets(dbname)
AttributeError: type object 'MemoryCache' has no attribute 'resets'
----------------------------------------
```
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?62608>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Health-dev] [bug #62608] health webdav not running,
Feng Shu <=
- [Health-dev] [bug #62608] health webdav not running, Feng Shu, 2022/07/19
- [Health-dev] [bug #62608] health webdav not running, Feng Shu, 2022/07/19
- [Health-dev] [bug #62608] health webdav not running, Feng Shu, 2022/07/19
- [Health-dev] [bug #62608] health webdav not running, Gerald Wiese, 2022/07/20
- [Health-dev] [bug #62608] health webdav not running, Gerald Wiese, 2022/07/20
- [Health-dev] [bug #62608] health webdav not running, Feng Shu, 2022/07/21
- [Health-dev] [bug #62608] health webdav not running, Gerald Wiese, 2022/07/21
- [Health-dev] [bug #62608] health webdav not running, Feng Shu, 2022/07/21
- [Health-dev] [bug #62608] health webdav not running, Feng Shu, 2022/07/21
- [Health-dev] [bug #62608] health webdav not running, Gerald Wiese, 2022/07/21