Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate
Sign In | Create Account

Stuff
Wednesday, April 23rd, 2008 at 4:54:50am UTC 

  1. I am receiving errors when I try to import files into a repository.
  2.  
  3. svn import svn.test https://www.grstaff.net:8500/svn/svn.test -m "test import"
  4. [authenticate]
  5. svn: MKACTIVITY of '/svn/svn.test/!svn/act/0bdd7457-16e0-413b-839e-c2e306b9b2aa': 403 Forbidden (https://www.grstaff.net:8500)
  6.  
  7. I know the authentication is working because i get an authorization failed if i type in the incorrect password:
  8.  
  9. svn import svn.test https://www.grstaff.net:8500/svn/svn.test -m "test import"
  10. [use wrong password]
  11. svn: PROPFIND request failed on '/svn/svn.test'
  12. svn: PROPFIND of '/svn/svn.test': authorization failed (https://www.grstaff.net:8500)
  13.  
  14. www-data is the apache user, the permissions look good (i've put them at 0777 since the paste, just to be sure).
  15.  
  16. ls -al /var/
  17. drwxrwsr-x  4 www-data www-data 4096 2008-04-18 11:06 svn
  18.  
  19. ls -al /var/svn/
  20. drwxrwsr-x  7 www-data www-data 4096 2008-04-18 11:06 svn.test
  21. drwxrwsr-x  7 www-data www-data 4096 2008-04-18 10:21 test
  22.  
  23.  
  24. The apache error.log:
  25. [Fri Apr 18 13:06:29 2008] [error] [client 72.234.249.223] Access denied: 'tfante' MKACTIVITY svn.test:
  26.  
  27. The apache access.log:
  28. [ip address] - - [18/Apr/2008:13:16:00 -1000] "PROPFIND /svn/svn.test HTTP/1.1" 401 528 "-" "SVN/1.3.1 (r19032) neon/0.25.5"
  29. [ip address] - tfante [18/Apr/2008:13:16:04 -1000] "PROPFIND /svn/svn.test HTTP/1.1" 207 655 "-" "SVN/1.3.1 (r19032) neon/0.25.5"
  30. [ip address] - tfante [18/Apr/2008:13:16:04 -1000] "PROPFIND /svn/svn.test/!svn/vcc/default HTTP/1.1" 207 406 "-" "SVN/1.3.1 (r19032) neon/0.25.5"
  31. [ip address] - tfante [18/Apr/2008:13:16:04 -1000] "PROPFIND /svn/svn.test/!svn/bln/0 HTTP/1.1" 207 457 "-" "SVN/1.3.1 (r19032) neon/0.25.5"
  32. [ip address] - tfante [18/Apr/2008:13:16:04 -1000] "PROPFIND /svn/svn.test/!svn/bc/0 HTTP/1.1" 207 665 "-" "SVN/1.3.1 (r19032) neon/0.25.5"
  33. [ip address] - tfante [18/Apr/2008:13:16:05 -1000] "OPTIONS /svn/svn.test HTTP/1.1" 200 192 "-" "SVN/1.3.1 (r19032) neon/0.25.5"
  34. [ip address] - tfante [18/Apr/2008:13:16:05 -1000] "MKACTIVITY /svn/svn.test/!svn/act/23318718-834b-0410-8bef-c0492cf2aa55 HTTP/1.1" 403 387 "-" "SVN/1.3.1 (r19032) neon/0.25.5"
  35.  
  36.  
  37. Apache Virtual Host conf:
  38.  
  39. cat /etc/apache2/sites-enabled/svn.test
  40.  
  41. <VirtualHost 10.10.0.115:443>
  42.         ServerAdmin webmaster@localhost
  43.         ServerName grstaff.net
  44.         ServerAlias svn.grstaff.net
  45.         DocumentRoot /var/www/svn.test/
  46.  
  47.         SSLEngine on
  48. #       SSLOptions +FakeBasicAuth +ExportCertData +CompatEnvVars +StrictRequire
  49.         SSLOptions +FakeBasicAuth +ExportCertData +StrictRequire
  50.         SSLCertificateFile /etc/ssl/certs/svn.crt
  51.         SSLCertificateKeyFile /etc/ssl/private/svn.key
  52.  
  53.  
  54.  
  55.         <Directory />
  56.                 Options FollowSymLinks
  57.                 AllowOverride None
  58.         </Directory>
  59.         <Directory /var/www/svn.test/>
  60.                 Options Indexes FollowSymLinks MultiViews
  61.                 AllowOverride None
  62.                 Order allow,deny
  63.                 allow from all
  64.                 # This directive allows us to have apache2's default start page
  65.                 # in /apache2-default/, but still have / go to the right place
  66.                 #RedirectMatch ^/$ /apache2-default/
  67.         </Directory>
  68.  
  69.         ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
  70.         <Directory "/usr/lib/cgi-bin">
  71.                 AllowOverride None
  72.                 Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
  73.                 Order allow,deny
  74.                 Allow from all
  75.         </Directory>
  76.  
  77.         ErrorLog /var/log/apache2/error.log
  78.  
  79.         # Possible values include: debug, info, notice, warn, error, crit,
  80.         # alert, emerg.
  81.         LogLevel warn
  82.  
  83.         CustomLog /var/log/apache2/access.log combined
  84.         ServerSignature On
  85.  
  86.     Alias /doc/ "/usr/share/doc/"
  87.     <Directory "/usr/share/doc/">
  88.         Options Indexes MultiViews FollowSymLinks
  89.         AllowOverride None
  90.         Order deny,allow
  91.         Deny from all
  92.         Allow from 127.0.0.0/255.0.0.0 ::1/128
  93.     </Directory>
  94.  
  95.         <Directory /var/svn>
  96.          Allow from all
  97.         </Directory>
  98.  
  99. <Location /svn>
  100. DAV svn
  101. SVNParentPath /var/svn
  102. AuthType Basic
  103. AuthName "Subversion Repository"
  104. AuthUserFile /etc/apache2/dav_svn.passwd
  105. #AuthzSVNAccessFile /etc/apache2/dav_svn.authz
  106. Require valid-user
  107. SSLRequireSSL
  108. Allow from all
  109. </Location>
  110.  
  111. </VirtualHost>
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127. httpd.conf
  128. [start]
  129. ServerRoot "/etc/apache2"
  130.  
  131. LockFile /var/lock/apache2/accept.lock
  132.  
  133.  
  134. #
  135. # PidFile: The file in which the server should record its process
  136. # identification number when it starts.
  137. #
  138. PidFile /var/run/apache2.pid
  139.  
  140. #
  141. # Timeout: The number of seconds before receives and sends time out.
  142. #
  143. Timeout 300
  144.  
  145. #
  146. # KeepAlive: Whether or not to allow persistent connections (more than
  147. # one request per connection). Set to "Off" to deactivate.
  148. #
  149. KeepAlive On
  150.  
  151. #
  152. # MaxKeepAliveRequests: The maximum number of requests to allow
  153. # during a persistent connection. Set to 0 to allow an unlimited amount.
  154. # We recommend you leave this number high, for maximum performance.
  155. #
  156. MaxKeepAliveRequests 100
  157.  
  158. #
  159. # KeepAliveTimeout: Number of seconds to wait for the next request from the
  160. # same client on the same connection.
  161. #
  162. KeepAliveTimeout 15
  163.  
  164. ##
  165. ## Server-Pool Size Regulation (MPM specific)
  166. ##
  167.  
  168. # prefork MPM
  169. # StartServers: number of server processes to start
  170. # MinSpareServers: minimum number of server processes which are kept spare
  171. # MaxSpareServers: maximum number of server processes which are kept spare
  172. # MaxClients: maximum number of server processes allowed to start
  173. # MaxRequestsPerChild: maximum number of requests a server process serves
  174. <IfModule mpm_prefork_module>
  175.     StartServers          5
  176.     MinSpareServers       5
  177.     MaxSpareServers      10
  178.     MaxClients          150
  179.     MaxRequestsPerChild   0
  180. </IfModule>
  181.  
  182. # worker MPM
  183. # StartServers: initial number of server processes to start
  184. # MaxClients: maximum number of simultaneous client connections
  185. # MinSpareThreads: minimum number of worker threads which are kept spare
  186. # MaxSpareThreads: maximum number of worker threads which are kept spare
  187. # ThreadsPerChild: constant number of worker threads in each server process
  188. # MaxRequestsPerChild: maximum number of requests a server process serves
  189. <IfModule mpm_worker_module>
  190.     StartServers          2
  191.     MaxClients          150
  192.     MinSpareThreads      25
  193.     MaxSpareThreads      75
  194.     ThreadsPerChild      25
  195.     MaxRequestsPerChild   0
  196. </IfModule>
  197.  
  198. User www-data
  199. Group www-data
  200.  
  201. #
  202. # AccessFileName: The name of the file to look for in each directory
  203. # for additional configuration directives.  See also the AllowOverride
  204. # directive.
  205. #
  206.  
  207. AccessFileName .htaccess
  208.  
  209. #
  210. # The following lines prevent .htaccess and .htpasswd files from being
  211. # viewed by Web clients.
  212. #
  213. <Files ~ "^\.ht">
  214.     Order allow,deny
  215.     Deny from all
  216. </Files>
  217.  
  218. #
  219. # DefaultType is the default MIME type the server will use for a document
  220. # if it cannot otherwise determine one, such as from filename extensions.
  221. # If your server contains mostly text or HTML documents, "text/plain" is
  222. # a good value.  If most of your content is binary, such as applications
  223. # or images, you may want to use "application/octet-stream" instead to
  224. # keep browsers from trying to display binary files as though they are
  225. # text.
  226. #
  227. DefaultType text/plain
  228.  
  229.  
  230. #
  231. # HostnameLookups: Log the names of clients or just their IP addresses
  232. # e.g., www.apache.org (on) or 204.62.129.132 (off).
  233. # The default is off because it'd be overall better for the net if people
  234. # had to knowingly turn this feature on, since enabling it means that
  235. # each client request will result in AT LEAST one lookup request to the
  236. # nameserver.
  237. #
  238. HostnameLookups Off
  239.  
  240. # ErrorLog: The location of the error log file.
  241. # If you do not specify an ErrorLog directive within a <VirtualHost>
  242. # container, error messages relating to that virtual host will be
  243. # logged here.  If you *do* define an error logfile for a <VirtualHost>
  244. # container, that host's errors will be logged there and not here.
  245. #
  246. ErrorLog /var/log/apache2/error.log
  247.  
  248. #
  249. # LogLevel: Control the number of messages logged to the error_log.
  250. # Possible values include: debug, info, notice, warn, error, crit,
  251. # alert, emerg.
  252. #
  253. LogLevel warn
  254.  
  255. # Include module configuration:
  256. Include /etc/apache2/mods-enabled/*.load
  257. Include /etc/apache2/mods-enabled/*.conf
  258.  
  259. # Include all the user configurations:
  260. Include /etc/apache2/httpd.conf
  261.  
  262. # Include ports listing
  263. Include /etc/apache2/ports.conf
  264.  
  265. #
  266. # The following directives define some format nicknames for use with
  267. # a CustomLog directive (see below).
  268. #
  269. LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
  270. LogFormat "%h %l %u %t \"%r\" %>s %b" common
  271. LogFormat "%{Referer}i -> %U" referer
  272. LogFormat "%{User-agent}i" agent
  273.  
  274. #
  275. # ServerTokens
  276. # This directive configures what you return as the Server HTTP response
  277. # Header. The default is 'Full' which sends information about the OS-Type
  278. # and compiled in modules.
  279. # Set to one of:  Full | OS | Minor | Minimal | Major | Prod
  280. # where Full conveys the most information, and Prod the least.
  281. #
  282. ServerTokens Full
  283.  
  284. #
  285. # Optionally add a line containing the server version and virtual host
  286. # name to server-generated pages (internal error documents, FTP directory
  287. # listings, mod_status and mod_info output etc., but not CGI generated
  288. # documents or custom error documents).
  289. # Set to "EMail" to also include a mailto: link to the ServerAdmin.
  290. # Set to one of:  On | Off | EMail
  291. #
  292. ServerSignature On
  293.  
  294.  
  295.  
  296. #
  297. # Customizable error responses come in three flavors:
  298. # 1) plain text 2) local redirects 3) external redirects
  299. #
  300. # Some examples:
  301. #ErrorDocument 500 "The server made a boo boo."
  302. #ErrorDocument 404 /missing.html
  303. #ErrorDocument 404 "/cgi-bin/missing_handler.pl"
  304. #ErrorDocument 402 http://www.example.com/subscription_info.html
  305. #
  306.  
  307. #
  308. # Putting this all together, we can internationalize error responses.
  309. #
  310. # We use Alias to redirect any /error/HTTP_<error>.html.var response to
  311. # our collection of by-error message multi-language collections.  We use
  312. # includes to substitute the appropriate text.
  313. #
  314. # You can modify the messages' appearance without changing any of the
  315. # default HTTP_<error>.html.var files by adding the line:
  316. #
  317. #   Alias /error/include/ "/your/include/path/"
  318. #
  319. # which allows you to create your own set of files by starting with the
  320. # /usr/share/apache2/error/include/ files and copying them to /your/include/path/,
  321. # even on a per-VirtualHost basis.  The default include files will display
  322. # your Apache version number and your ServerAdmin email address regardless
  323. # of the setting of ServerSignature.
  324. #
  325. # The internationalized error documents require mod_alias, mod_include
  326. # and mod_negotiation.  To activate them, uncomment the following 30 lines.
  327.  
  328. #    Alias /error/ "/usr/share/apache2/error/"
  329. #
  330. #    <Directory "/usr/share/apache2/error">
  331. #        AllowOverride None
  332. #        Options IncludesNoExec
  333. #        AddOutputFilter Includes html
  334. #        AddHandler type-map var
  335. #        Order allow,deny
  336. #        Allow from all
  337. #        LanguagePriority en cs de es fr it nl sv pt-br ro
  338. #        ForceLanguagePriority Prefer Fallback
  339. #    </Directory>
  340. #
  341. #    ErrorDocument 400 /error/HTTP_BAD_REQUEST.html.var
  342. #    ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var
  343. #    ErrorDocument 403 /error/HTTP_FORBIDDEN.html.var
  344. #    ErrorDocument 404 /error/HTTP_NOT_FOUND.html.var
  345. #    ErrorDocument 405 /error/HTTP_METHOD_NOT_ALLOWED.html.var
  346. #    ErrorDocument 408 /error/HTTP_REQUEST_TIME_OUT.html.var
  347. #    ErrorDocument 410 /error/HTTP_GONE.html.var
  348. #    ErrorDocument 411 /error/HTTP_LENGTH_REQUIRED.html.var
  349. #    ErrorDocument 412 /error/HTTP_PRECONDITION_FAILED.html.var
  350. #    ErrorDocument 413 /error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var
  351. #    ErrorDocument 414 /error/HTTP_REQUEST_URI_TOO_LARGE.html.var
  352. #    ErrorDocument 415 /error/HTTP_UNSUPPORTED_MEDIA_TYPE.html.var
  353. #    ErrorDocument 500 /error/HTTP_INTERNAL_SERVER_ERROR.html.var
  354. #    ErrorDocument 501 /error/HTTP_NOT_IMPLEMENTED.html.var
  355. #    ErrorDocument 502 /error/HTTP_BAD_GATEWAY.html.var
  356. #    ErrorDocument 503 /error/HTTP_SERVICE_UNAVAILABLE.html.var
  357. #    ErrorDocument 506 /error/HTTP_VARIANT_ALSO_VARIES.html.var
  358.  
  359.  
  360.  
  361. # Include of directories ignores editors' and dpkg's backup files,
  362. # see README.Debian for details.
  363.  
  364. # Include generic snippets of statements
  365. Include /etc/apache2/conf.d/
  366.  
  367. # Include the virtual host configurations:
  368. Include /etc/apache2/sites-enabled/
  369.  
  370. [END]

Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.

comments powered by Disqus
worth-right