amazonlinux / amazon-linux-2023

Amazon Linux 2023
https://aws.amazon.com/linux/amazon-linux-2023/
Other
518 stars 38 forks source link

[Bug] - (20019)DSO load failed: AH00576: The DBM driver could not be loaded #393

Open kencoba opened 1 year ago

kencoba commented 1 year ago

Describe the bug When I set up WebDAV with httpd and uploload the file, I get the error "AH00576: The DBM driver could not be loaded".

Description of problem: I've got an error message in /etc/httpd/conf/logs/error_log.

[Fri Jul 07 08:00:04.785491 2023] [dav_fs:crit] [pid 25807:tid 25968] (20019)DSO load failed: AH00576: The DBM driver could not be loaded
[Fri Jul 07 08:00:04.785522 2023] [dav:error] [pid 25807:tid 25968] [client 43.207.151.138:53684] The locks could not be queried for verification against a possible "If:" header.  [500, #0]
[Fri Jul 07 08:00:04.785535 2023] [dav:error] [pid 25807:tid 25968] [client 43.207.151.138:53684] Could not open the lock database.  [500, #400]
[Fri Jul 07 08:00:04.785539 2023] [dav:error] [pid 25807:tid 25968] (20019)DSO load failed: [client 43.207.151.138:53684] Could not open property database.  [500, #1]

To Reproduce Command lines: sudo yum update sudo yum install httpd

sudo chown apache /home/webdav sudo chgrp apache /home/webdav sudo chmod 770 /home/webdav

sudo mkdir /var/lib/dev sudo mkdir /var/lib/dev/lockdb sudo chown apache /var/lib/dev/lockdb sudo chgrp apache /var/lib/dev/lockdb

sudo vi /etc/httpd/conf.d/webdav.conf

The content of /etc/httpd/conf.d/webdav.conf:

DAVLockDB /var/lib/dav/lockdb
Alias /webdav /home/webdav
<Location /webdav>
    DAV On

    Options All
    AuthType Basic
    AuthName WebDAV
    AuthUserFile /etc/httpd/conf/.htpasswd
    <RequireAny> 
        Require method GET POST OPTIONS
        Require valid-user 
    </RequireAny>
</Location>

command lines(cont.): sudo htpasswd -c /etc/httpd/conf/.htpasswd WebDAV sudo systemctl restart httpd

sh-5.2$ curl -T sample.txt -u WebDAV:pppppp --url http://xxx.xxx.xxx.xxx/webdav/sample.txt -X PUT

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>500 Internal Server Error</title>
</head><body>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error or
misconfiguration and was unable to complete
your request.</p>
<p>Please contact the server administrator at
 root@localhost to inform them of the time this error occurred,
 and the actions you performed just before this error.</p>
<p>More information about this error may be available
in the server error log.</p>
</body></html>

Expected behavior Files can be successfully uploaded.

Screenshots No screenshots available.

Desktop (please complete the following information):

Smartphone (please complete the following information): I don't use any other devices.

Additional context Amazon Linux version: Amazon Linux 2023 AMI 2023.1.20230705.0 x86_64 HVM kernel-6.1

I tried to install apr-util-bdb by referring to the following URL, but it does not seem to exist in Amazon Linux 2023. https://bugzilla.redhat.com/show_bug.cgi?id=1491151

sh-5.2$ sudo yum install apr-util-bdb Last metadata expiration check: 0:26:08 ago on Fri Jul 7 07:38:50 2023. No match for argument: apr-util-bdb Error: Unable to find a match: apr-util-bdb

kiddjmadd commented 12 months ago

Same issue here. I had to 'dnf remove' all the apache items and build apache from source. Upgraded from Amazon Linux 2 for the ability to run react out of the box, but spent more of my weekend than I'd like to admit compiling / configuring apache to get webdav back. Not complaining because it's a free distro. Just surprising since it's a pretty common module with fixes from other RedHat-like distros.

I'll keep watching this space so I can get back to the preferred approach once this is fixed.

ozbenh commented 11 months ago

Thanks, sorry for the delay, we'll try to get to the bottom of this asap