GNU Health - Bugs: bug #62608, health webdav not running
You are not allowed to post comments on this tracker with your current authentication level.
bug #62608: health webdav not running
Submitter: | Gerald Wiese <gerald_wiese> | ||
Submitted: | Thu 09 Jun 2022 12:26:25 PM UTC | ||
Category: | None | Severity: | 3 - Normal |
Item Group: | None | Status: | Fixed |
Privacy: | Public | Assigned to: | None |
Open/Closed: | Closed | Release: | None |
Module: | health_webdav | Component: | Hospital Management |
( Jump to the original submission )
Fri 20 Jan 2023 05:57:05 PM UTC, comment #13: |
Gerald Wiese <gerald_wiese>![]() |
Thu 21 Jul 2022 12:15:24 PM UTC, comment #12: Which request triggered that?
|
Gerald Wiese <gerald_wiese>![]() |
Thu 21 Jul 2022 09:57:55 AM UTC, comment #11: ```
what favicon.ico use for?
|
Feng Shu <tumashu> |
Thu 21 Jul 2022 09:56:30 AM UTC, comment #10: Firefox seem to have showing problem when open webdav link, is it firefox's issue or health_webdav's issue?
please see attachment.
|
Feng Shu <tumashu> |
Thu 21 Jul 2022 09:22:00 AM UTC, comment #9: Great :)
|
Gerald Wiese <gerald_wiese>![]() |
Thu 21 Jul 2022 09:18:31 AM UTC, 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.
Is this the same issue or the different issues? I do not know.
|
Feng Shu <tumashu> |
Wed 20 Jul 2022 12:59:51 PM UTC, comment #7: For me using the attached protocol.py it's working (see .diff for changes)
|
Gerald Wiese <gerald_wiese>![]() |
Wed 20 Jul 2022 12:33:32 AM UTC, comment #6: ```
``` |
Feng Shu <tumashu> |
Wed 20 Jul 2022 12:15:52 AM UTC, comment #5: Sorry, the error is like below:
```
Fault: name 'socket' is not defined
|
Feng Shu <tumashu> |
Wed 20 Jul 2022 12:12:28 AM UTC, comment #4: When I add a share, the following error is exist:
```
Fault: 'NoneType' object has no attribute 'split'
|
Feng Shu <tumashu> |
Tue 19 Jul 2022 11:58:16 PM UTC, comment #3:
```
```
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:
```
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
```
|
Feng Shu <tumashu> |
Tue 14 Jun 2022 01:45:22 PM UTC, comment #2: Hey Luis,
User=gnuhealth
Using "sudo journalctl -u gnuhealth_webdav" I see an OSError twice:
Then I add 'Environment="TRYTOND_CONFIG=/opt/gnuhealth/etc/trytond.conf"' to resolve it which is strange because it's already given by -c flag.
Afterwards I see "AttributeError: type object 'MemoryCache' has no attribute 'clean'" and same with 'resets' instead of 'clean'.
So I change "Cache.resets(dbname)" to "pass" and outcomment "Cache.clean(dbname)" in /opt/gnuhealth/venv/lib/python3.8/site-packages/trytond/modules/health_webdav3_server/protocol.py
Now I get "NameError: name 'os' is not defined" from the same protocol.py thus I add "import os".
Next one is KeyError: 'GNUHEALTH_VERSION' so I add
Now when I reproduced it step by step it was quite strange that sometimes I had to access it to trigger an error and sometimes I had to restart more than one time to see the error. Everytime having an error it was "running" and listenning to the right port but not working. Of course I run "sudo systemctl daemon-reload" before "sudo systemctl restart gnuhealth_webdav" when changing the .service file.
To sum up I would still say:
The complete .service file I have now when it's running:
[Service]
[Install]
|
Gerald Wiese <gerald_wiese>![]() |
Tue 14 Jun 2022 12:40:09 PM UTC, 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.
It seems to run OK on my box...
lfm@beastie:~/gnuhealth/tryton/server/modules/health_webdav3_server/bin $ ./gnuhealth-webdav-server -vv
|
Luis Falcon <meanmicio>![]() |
Thu 09 Jun 2022 12:26:25 PM UTC, original submission:
Starting the WebDAV server I got two AttributeErrors because 'MemoryCache' got no attributes 'clean' and 'resets'. MemoryCache is defined in trytond/cache.py and in this case accessed from health_webdav3_server/protocol.py. Since trytond 5.2 those methods don't exist anymore.
|
Gerald Wiese <gerald_wiese>![]() |
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Follow 9 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2023-01-20 | gerald_wiese | Status | Ready For Test | ![]() |
Fixed |
Open/Closed | Open | ![]() |
Closed | ||
2022-07-27 | gerald_wiese | Status | Need Info | ![]() |
Ready For Test |
2022-07-21 | tumashu | Attached File | - | ![]() |
Added 截图_2022-07-21_17-53-06.png, #53456 |
Attached File | - | ![]() |
Added 截图_2022-07-21_17-52-33.png, #53457 | ||
2022-07-20 | gerald_wiese | Component | None | ![]() |
Hospital Management |
2022-07-20 | gerald_wiese | Attached File | - | ![]() |
Added protocol.py.diff, #53453 |
Attached File | - | ![]() |
Added protocol.py, #53454 | ||
2022-06-14 | meanmicio | Status | None | ![]() |
Need Info |
The bug I opened seems fixed, other problems should be discussed here I guess:
https://savannah.gnu.org/bugs/?62792