health-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Health-dev] [bug #62608] health webdav not running


From: Gerald Wiese
Subject: [Health-dev] [bug #62608] health webdav not running
Date: Thu, 21 Jul 2022 05:22:00 -0400 (EDT)

Follow-up Comment #9, bug #62608 (project health):

Great :)
Should be a different issue, I remember this was a problem in 3.8 as well.
This issue here was coming from 4.0 upgrade.
Let's open another one for that?
And commit the changes by end of the week if nobody proposes an alternative
way to handle the cache?

[comment #8 comment #8:]
> I have test this diff, webdav seem to work.
> 
> I have tested caldav with thunderbird and evolution too,  I think both of
them can not work well.
> the events created in thunderbird and evolution can be found in
gnuhealth-client, but events created in gnuhealth-client
> can not be showed in thunderbird or evolution.
> 
> Is this the same issue or the different issues? I do not know.
> 
> 
> 
> [comment #7 comment #7:]
> > For me using the attached protocol.py it's working (see .diff for
changes)
> > 
> > [comment #3 comment #3:]
> > > 
> > > [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/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]