elleFlorio / svn-docker

Lightweight Docker image to build a container running an SVN server
MIT License
145 stars 106 forks source link

apache seg fault #12

Closed tofuSCHNITZEL closed 4 years ago

tofuSCHNITZEL commented 5 years ago

Hi, I have the following problem:

fresh container, no volume only ports mapped created user with docker exec

if no repository exists http /svn displays correctly with no repositories. as soon as I create a repo either via web svnadmin or via docker exec svnadmin create there is nothing displayed under the /svn url anymore just the error "connection reset" in the apache error log I found these entries:

[Sun Jul 14 20:24:26.274401 2019] [core:notice] [pid 263] AH00051: child pid 3236 exit signal Segmentation fault (11), possible coredump in /var/www

even chown'ing the files in /home/svn as apache:apache and chmod'ing them 777 did not help.

any ideas?

elleFlorio commented 5 years ago

Hi,

honestly I have no idea, I will check it and let you know if I find any solution! ๐Ÿ˜‰

elleFlorio commented 5 years ago

Hi @tofuSCHNITZEL,

I'm investigating the issue, and the problem seems related to the svn authz file. Specifically, removing the line AuthzSVNAccessFile /etc/subversion/subversion-access-control from the dav_svn.conf file everything works as expected.

I still have to find a proper fix, if you can find it don't hesitate to submit a pull request. In the meantime, I will keep to work on that. ๐Ÿ˜‰

Loodp commented 5 years ago

Hi, ่ฟ™ๅบ”่ฏฅๆ˜ฏsvn็‰ˆๆœฌ็š„้—ฎ้ข˜๏ผŒๅฝ“ๅ‰็š„้•œๅƒๅˆ›ๅปบๅŽ๏ผŒๆŸฅ็œ‹็š„svn็‰ˆๆœฌๆ˜ฏ1.12๏ผŒๅฐ†svnๅ‡็บงไธบๆ›ด้ซ˜็‰ˆๆœฌไผš่งฃๅ†ณ่ฟ™ไธช้—ฎ้ข˜

elleFlorio commented 5 years ago

Hi @Lixianggh,

Thank you for the suggestion, I will try to upgrade SVN version! ๐Ÿ˜‰

benschw commented 5 years ago

Any updates on this?

velocityfactor commented 5 years ago

From what I read, this in an Alpine Linux 3.9 issue. Changing Dockerfile to "FROM smebberson/alpine-base:3.2.0" and removing apache-ctl from the package list appears to make it work. However, this has a known security issue https://alpinelinux.org/posts/Docker-image-vulnerability-CVE-2019-5021.html

elleFlorio commented 5 years ago

Hello,

Sorry for being MIA, busy times. ๐Ÿ˜… @velocityfactor thank you for pointing that out, I will have a look at that. Hope to find a viable solution soon.

liunancun commented 5 years ago

Has the problem been solved?

elleFlorio commented 4 years ago

Hi @liunancun,

As @velocityfactor highlighted this is an issue of the Alpine image. If it is solved in the new Alpine version, once the base image is updated the issue will be fixed. In the meantime we could:

  1. downgrade to alpine-base:3.2.0
  2. apply the fix suggested here
  3. remove apache-ctl
  4. test if the issue is gone and everything works as expected

I will try to do a test in the next few days. If anyone has the time to try and test it, he is more then welcome. ๐Ÿ˜‰

elleFlorio commented 4 years ago

Ok guys, I did what I said in the previous comment. I did a quick test and seems ok. You can find the modification in branch issue-12. Please, try to test and validate it. ๐Ÿ˜‰

newlife2002 commented 4 years ago

Still NOT work in DIGEST:ba9ead4321e9. When visit by http://ip/svn/repo, the tcp connection is broken.

Here is the error.log:

[Fri Nov 08 03:50:53.609241 2019] [core:warn] [pid 256] AH00098: pid file /run/apache2/httpd.pid overwritten -- Unclean shutdown of previous Apache run? [Fri Nov 08 03:50:53.610294 2019] [mpm_prefork:notice] [pid 256] AH00163: Apache/2.4.41 (Unix) SVN/1.12.2 PHP/7.2.22 configured -- resuming normal operations [Fri Nov 08 03:50:53.610312 2019] [core:notice] [pid 256] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND' [Fri Nov 08 03:52:07.703767 2019] [core:notice] [pid 256] AH00052: child pid 272 exit signal Segmentation fault (11) [Fri Nov 08 03:52:07.703883 2019] [core:notice] [pid 256] AH00052: child pid 273 exit signal Segmentation fault (11) [Fri Nov 08 03:52:07.703935 2019] [core:notice] [pid 256] AH00052: child pid 274 exit signal Segmentation fault (11) ... and so on..

elleFlorio commented 4 years ago

Hello @newlife2002, I didn't push on the docker hub the image with the possible fix. If you want to test it, please checkout branch issue-12, build the image and try that one. ๐Ÿ˜‰

elleFlorio commented 4 years ago

Hi @newlife2002, I added github actions to automatically push images on the docker hub. You can try the image elleflorio/svn-server:issue-12 to test the fix.

greinet commented 4 years ago

The fixed image works great for me, thanks for the great work you do.

elleFlorio commented 4 years ago

@greinet thank you for the QA, I'm gonna merge the PR so the latest image will be updated. I'm going to delete the one with the issue-12 tag then. ๐Ÿ˜‰