Getting E175002: Server sent unexpected return value (500 Internal Server Error) in response to POST request for '/svn/repo/!svn/me' - linux

Having this error when ever i try to commit the updated file.
I have looked in the authz file and checked error log, but I am not getting a good answer from those
Dont know why, anyone able to help!?

This is what i see in the error_log:
[Thu Jun 20 19:06:15.104386 2019] [:error] [pid 1069] [client 172.29.6.128:43724 ] could not begin a transaction [500, #13]
[Thu Jun 20 19:06:15.104405 2019] [:error] [pid 1069] [client 172.29.6.128:43724 ] Can't open file '/var/www/svn/repo/db/txn-current-lock': Permission denied [5 00, #13]
So initailly, i did svn co "url of repo"
edited a txt file
then i tried to svn ci -m "edited txt file"
but it throws that 500 error
svn: E175002: Commit failed (details follow):
svn: E175002: Server sent unexpected return value (500 Internal Server Error) in response to POST request for '/svn/repo/!svn/me'
and the log file shows the above message. That file that says permission denied, is owned by root user and thats what im logged in as

Related

Is my server-side content safe?

I am getting this in my apache error_log and I am using AWS
[Mon Oct 31 08:24:47.120132 2016] [:error] [pid 8216] [client 95.213.177.126:34294] script '/var/www/html/azenv.php' not found or unable to stat, referer: https://proxyradar.com/
I wanted to know what does that mean.
It looks like a request was made for /var/www/html/azenv.php, which was not found. That's a standard 404 error, when a request has been made for a non-existent file.
As to WHY the request was made, that's for the sender to determine.
See Apache access log full of unauthorized and suspicious requests, how to take action, which suggests that it is automated scripts looking for vulnerabilities of unpatched servers.
The fact that the file was not found should give you some comfort, because that's one vulnerability to which you were not vulnerable.

500 Internal error wamp server while trying to run a python CGI script

I tried to run a CGI python file, I am new to html and server side programming. I wanted to a python scrip on my webserver(Wamp) so I searched and found that I could use Apache. I dropped my code in a .py file and put it in the cgi-bin folder. When I run it I get an error, mind that I stole the test code from the python website to test it.
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
# enable debugging
import cgitb
cgitb.enable()
print("Content-Type: text/plain;charset=utf-8")
print()
print("Hello World!")
This is the error I get:
[Thu Jul 09 14:11:58.841220 2015] [cgi:error] [pid 9940:tid 968] [client ::1:54621] script not found or unable to stat: C:/wamp/bin/apache/apache2.4.9/cgi-bin/CgiTest.py
[Thu Jul 09 14:26:59.338627 2015] [cgi:error] [pid 5500:tid 968] (OS 2)The system cannot find the file specified. : [client ::1:54733] couldn't create child process: 720002: CgiTest.py
[Thu Jul 09 14:26:59.338627 2015] [cgi:error] [pid 5500:tid 968] (OS 2)The system cannot find the file specified. : [client ::1:54733] AH01223: couldn't spawn child process: C:/wamp/bin/apache/apache2.4.9/cgi-bin/CgiTest.py
I have made sure the name is correct. I get a 500 internal error. I have also made sure I have checked cgi-modules in the wamp server tray icon.

How to access the subversion repository through WebDAV/DeltaV?

I installed and set up BitNami Redmine Stack and created the repository:
svnadmin create /var/svn/repository0/
I use basic authentication.
Part of httpd.conf:
<Location>
DAV svn
SVNParentPath /var/svn
AuthName "Subversion Repository"
AuthType Basic
AuthUserFile /etc/svn-auth.passwd
Require valid-user
Satisfy Any
AuthzSVNAccessFile /var/svn/authz
</Location>
Part of svn-auth.passwd:
htpasswd -c -m /etc/svn-auth.htpasswd someuser
someuser:$apr1$bTN...
authz:
[/]
* = r
[repository0:/]
someuser = rw
When I go through this url: http://remote-linux-host:81/svn/repository0/ I get the following:
I enter my credentials and see:
Forbidden
You don't have permission to access /svn/repository0/ on this server.
For this url http://remote-linux-host:81/svn/ I get:
<D:error><C:error/><m:human-readable errcode="2">
Could not open the requested SVN filesystem
</m:human-readable></D:error>
What I have in error.log:
...
[Wed Dec 12 15:16:17 2012] [error] [client ..ip...] Failed to load the AuthzSVNAccessFile: /var/svn/authz:22: Option expected
[Wed Dec 12 15:16:17 2012] [error] [client ..ip...] Access denied: 'someuser' GET svn:/repository0
[Wed Dec 12 15:16:20 2012] [error] [client ..ip...] Failed to load the AuthzSVNAccessFile: /var/svn/authz:22: Option expected
[Wed Dec 12 15:16:20 2012] [error] [client ..ip...] Access denied: 'someuser' GET svn:/repository0
[Wed Dec 12 15:16:38 2012] [error] [client ..ip...] Failed to load the AuthzSVNAccessFile: /var/svn/authz:22: Option expected
[Wed Dec 12 15:16:38 2012] [error] [client ..ip...] Access denied: 'someuser' GET svn:/repository0
[Wed Dec 12 15:16:46 2012] [error] [client ..ip...] (20014)Internal error: Can't open file '/var/svn/format': No such file or directory
[Wed Dec 12 15:16:46 2012] [error] [client ..ip...] Could not fetch resource information. [500, #0]
[Wed Dec 12 15:16:46 2012] [error] [client ..ip...] Could not open the requested SVN filesystem [500, #2]
[Wed Dec 12 15:16:46 2012] [error] [client ..ip...] Could not open the requested SVN filesystem [500, #2]
I made some small changes in the authz file:
[groups]
developers = someuser
[repository0:/]
#developers = rw
Now, when I go through this url again http://remote-linux-host:81/svn/repository0/ I get the following:
<D:error><C:error/><m:human-readable errcode="2">
Could not open the requested SVN filesystem
</m:human-readable></D:error>
What am I doing wrong?
I gave read/write access for the user who runs the Apache and now everything is OK.

Error number 13 - Remote access svn with dav_svn failing

I'm getting the following error on my svn repository
<D:error>
<C:error/>
<m:human-readable errcode="13">
Could not open the requested SVN filesystem
</m:human-readable>
</D:error>
I've followed the instructions from the How to Geek, and the Ubuntu Community Page, but to no success. I've even given the repository 777 permissions.
<Location /svn/myProject >
# Uncomment this to enable the repository
DAV svn
# Set this to the path to your repository
SVNPath /svn/myProject
# Comments
# Comments
# Comments
AuthType Basic
AuthName "My Subversion Repository"
AuthUserFile /etc/apache2/dav_svn.passwd
# More Comments
</Location>
The permissions follow:
drwxrwsrwx 6 www-data webdev 4096 2010-02-11 22:02 /svn/myProject
And svnadmin validates the directory
$svnadmin verify /svn/myProject/
* Verified revision 0.
and I'm accessing the repository at
http://ipAddress/svn/myProject
Edit: The apache error log says
[Fri Feb 12 13:55:59 2010] [error] [client <ip>] (20014)Internal error: Can't open file '/svn/myProject/format': Permission denied
[Fri Feb 12 13:55:59 2010] [error] [client <ip>] Could not fetch resource information. [500, #0]
[Fri Feb 12 13:55:59 2010] [error] [client <ip>] Could not open the requested SVN filesystem [500, #13]
[Fri Feb 12 13:55:59 2010] [error] [client <ip>] Could not open the requested SVN filesystem [500, #13]
Even though I confirmed that this file is ugo readable and writable.
What am I doing wrong?
I had to give permissions to apache to the directory above my repo: ie /svn
I used the command
sudo chown -R www-data:webdev /svn
Perhaps the permissions of the files and subdirectories in /svn/myProject weren't changed. Did you change them recursively?

Internal Server Error

The error message I gen when I try to access the web page server "192.168.50.29/cgi-bin/tinyPL.cgi"; looks like this:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, root#localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Apache/2.2.11 (Fedora) Server at 192.168.50.29 Port 80
Error_log :
[Sat Oct 24 21:30:47 2009] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Sat Oct 24 21:30:47 2009] [notice] Digest: generating secret for digest authentication ...
[Sat Oct 24 21:30:47 2009] [notice] Digest: done
[Sat Oct 24 21:30:48 2009] [notice] Apache/2.2.11 (Unix) DAV/2 PHP/5.2.9 mod_ssl/2.2.11 OpenSSL/0.9.8g mod_perl/2.0.4 Perl/v5.10.0 configured -- resuming normal operations
[Sat Oct 24 21:30:50 2009] [error] [client 192.168.50.69] (13)Permission denied: exec of '/var/www/cgi-bin/tinyPL.cgi' failed
[Sat Oct 24 21:30:50 2009] [error] [client 192.168.50.69] Premature end of script headers: tinyPL.cgi
Could any one help me on this!
Your log file will have more details regarding the error, but an Internal Server error on a CGI script usually means that when the server tried to execute your CGI program the expected headers was not present.
In a perl script, that would be (for example):
use CGI qw(:standard);
print header();
Which will print out something like:
Content-type: text/html
Try and run your CGI script from the commandline and see if prints out those lines. The other problem might be due to access permissions. Apache might not be able to execute your script.

Resources