Gitolite push error for gitolite-admin - gitolite

When i try to push the repository gitolite-admin it gives me below error
Counting objects: 7, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (4/4), 360 bytes | 0 bytes/s, done.
Total 4 (delta 1), reused 0 (delta 0)
error: unpack failed: unpack-objects a bnormal exit
To http://server.name/git/gitolite-admin.git
! [remote rejected] master -> master (n/a (unpacker error))
error: failed to push some refs to 'http://server.name/git/gitolite-admin.git'
Below is my apache log
[Mon Sep 02 08:39:50 2013] [error] [client ] error: insufficient permission for adding an object to repository database ./objects
[Mon Sep 02 08:39:50 2013] [error] [client ] fatal: failed to write object
Your Help would be appreciated
Thanks

You need to make sure of the user accessing your gitolite repos behind your Apache.
Then, following this blog post:
ssh to server
cd repository.git
sudo chmod -R g+ws *
sudo chgrp -R mygroup *
git repo-config core.sharedRepository true

Related

Received error in GitLab: "The repository for this project does not exist."

I run the GitLab from docker-compose. I had repositories with content and everything had been working as expected but now it says "The repository for this project does not exist." and I cannot get back my existing repositories and the content of them.
In /etc/gitlab/gitlab.rb file the git_data_dirs points to /var/opt/gitlab/git-data as default. The user/group set to git for /var/opt/gitlab/git-data/repositories recursively.
Content of /var/opt/gitlab/git-data/repositories:
ll /var/opt/gitlab/git-data/repositories
total 84
drwxrws--- 3 git git 4096 Dec 22 01:32 +gitaly/
drwxrws--- 4 git git 4096 Dec 22 09:28 ./
drwx------ 3 git git 4096 Aug 31 2020 ../
-rwxrwx--- 1 git git 64 Dec 22 09:28 .gitaly-metadata*
-rwxrwx--- 1 git git 80 Dec 22 03:15 .gitaly-metadata.locked*
drwxrws--- 16 git git 4096 Apr 19 2021 #hashed/
-rwxrwx--- 1 git git 57607 Dec 22 03:15 __$$RECOVERY_README$$__.html
Content of /var/opt/gitlab/git-data/repositories/#hashed: (It seems my Git repos are available)
ll /var/opt/gitlab/git-data/repositories/#hashed
total 64
drwxrws--- 16 git git 4096 Apr 19 2021 ./
drwxrws--- 4 git git 4096 Dec 22 09:28 ../
drwxrws--- 3 git git 4096 Oct 21 2020 19/
drwxrws--- 3 git git 4096 Oct 21 2020 2c/
drwxrws--- 3 git git 4096 Dec 4 2020 3f/
drwxrws--- 3 git git 4096 Oct 28 2020 4a/
drwxrws--- 3 git git 4096 Sep 20 2020 4b/
drwxrws--- 3 git git 4096 Sep 20 2020 4e/
drwxrws--- 3 git git 4096 Nov 5 2020 4f/
drwxrws--- 4 git git 4096 Nov 11 2020 6b/
drwxrws--- 3 git git 4096 Oct 21 2020 79/
drwxrws--- 3 git git 4096 Dec 11 2020 85/
drwxrws--- 3 git git 4096 Aug 28 2020 d4/
drwxrws--- 3 git git 4096 Apr 19 2021 e6/
drwxrws--- 3 git git 4096 Oct 12 2020 e7/
drwxrws--- 3 git git 4096 Sep 20 2020 ef/
The repos are even not accessible from my local PC:
>>> git fetch
Username for 'https://my_host.com': milan.balazs
Password for 'https://milan.balazs#my_host.com':
remote: A repository for this project does not exist yet.
fatal: repository 'https://my_host.com/systemdevelopers/tools.git/' not found
I have search and tried many "solution"/work-around but I couldn't solve it.
Tried:
gitlab-rake cache:clear
gitlab-rake gitlab:check
gitlab-ctl reconfigure
Restart Docker Service
Restart Docker Swarm
Restart Docker Daemon
The given error on UI:
My docker-compose.yml:
version: "3.8"
services:
gitlab:
image: ${ENVIRONMENT_HOST}:5000/environment/gitlab
ports:
- "80:80"
- "443:443"
- "60000:22"
hostname: "${ENVIRONMENT_HOST}"
environment:
GITLAB_OMNIBUS_CONFIG: |
external_url 'https://${ENVIRONMENT_HOST}'
gitlab_rails['gitlab_shell_ssh_port'] = 60000
nginx['redirect_http_to_https'] = true
nginx['ssl_certificate'] = '/etc/letsencrypt/live/${ENVIRONMENT_HOST}/fullchain.pem'
nginx['ssl_certificate_key'] = '/etc/letsencrypt/live/${ENVIRONMENT_HOST}/privkey.pem'
gitlab_shell['custom_hooks_dir'] = '/home/git/gitlab-shell/hooks'
volumes:
- gitlab_config:/etc/gitlab
- gitlab_logs:/var/log/gitlab
- gitlab_data:/var/opt/gitlab
- /etc/letsencrypt:/etc/letsencrypt
- ./gitlab/server_hooks/:/home/git/gitlab-shell/hooks
networks:
- gitlab_ci_net
gitlab-runner-1:
image: gitlab/gitlab-runner:alpine-v13.6.0
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- gitlab_runner_config_1:/etc/gitlab-runner
networks:
- gitlab_ci_net
- image_registry_net
gitlab-runner-2:
image: gitlab/gitlab-runner:alpine-v13.6.0
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- gitlab_runner_config_2:/etc/gitlab-runner
networks:
- gitlab_ci_net
- image_registry_net
gitlab-runner-3:
image: gitlab/gitlab-runner:alpine-v13.6.0
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- gitlab_runner_config_3:/etc/gitlab-runner
networks:
- gitlab_ci_net
- image_registry_net
volumes:
gitlab_config: {}
gitlab_logs: {}
gitlab_data: {}
gitlab_runner_config_1: {}
gitlab_runner_config_2: {}
gitlab_runner_config_3: {}
networks:
gitlab_ci_net: {}
image_registry_net: {}
The ${ENVIRONMENT_HOST}:5000/environment/gitlab Dockerfile:
FROM gitlab/gitlab-ce:13.6.3-ce.0
# Install python3 for server hooks
RUN apt-get update && apt-get install -y python3
# Copy server hooks
COPY --chown=git:git ./server_hooks /home/git/gitlab-shell/hooks
# Give permission to server hooks
RUN find . -name *.py -exec chmod +x {} \
The gitlab-ctl reconfigure command has been ran successfully.
Some strange log parts:
I don't know the following error messages from log folder are related or not but I share them, perhaps they can help in debugging. The used command to find messages root#env:/var# grep -rnw 'log/' -e 'error'
In my understanding the gitaly is not able to recognize the Git repository (I can see this message for more Git repos).
log/gitlab/gitaly/#4000000061c31f1028b9701c.u:437:
{
"correlation_id":"EyMTcQIIRP9",
"error":"rpc error: code = NotFound desc = GetRepoPath: not a git repository '/var/opt/gitlab/git-data/repositories/#hashed/e7/f6/e7f6c011776e8db7cd330b54174fd76f7d0216b612387a5ffcfb81e6f0919683.git'",
"grpc.code":"NotFound",
"grpc.meta.auth_version":"v2",
"grpc.meta.client_name":"gitlab-web",
"grpc.meta.deadline_type":"regular",
"grpc.method":"FindDefaultBranchName",
"grpc.request.deadline":"2021-12-22T12:32:41Z",
"grpc.request.fullMethod":"/gitaly.RefService/FindDefaultBranchName",
"grpc.request.glProjectPath":"systemdevelopers/database",
"grpc.request.glRepository":"project-6",
"grpc.request.repoPath":"#hashed/e7/f6/e7f6c011776e8db7cd330b54174fd76f7d0216b612387a5ffcfb81e6f0919683.git",
"grpc.request.repoStorage":"default",
"grpc.request.topLevelGroup":"#hashed",
"grpc.service":"gitaly.RefService",
"grpc.start_time":"2021-12-22T12:32:31Z",
"grpc.time_ms":0.252,
"level":"info",
"msg":"finished unary call with code NotFound",
"peer.address":"#",
"pid":266,
"span.kind":"server",
"system":"grpc",
"time":"2021-12-22T12:32:31.361Z"
}
Other strange message (I see more times in my logs):
log/gitlab/gitlab-rails/application_json.log:42:
{
"severity":"ERROR",
"time":"2021-12-22T12:07:41.806Z",
"correlation_id":null,
"message":" \n!! RUNTIME IDENTIFICATION FAILED: Failed to identify runtime for process 52717 (bin/rails)\n Runtime based configuration settings may not work properly.\n If you continue to see this error, please file an issue via\n https://gitlab.com/gitlab-org/gitlab/issues/new\n"
}
Some errors from gitlab-workhorse:
log/gitlab/gitlab-workhorse/#4000000061c31f28343253dc.u:11373:
{
"command":[
"exiftool",
"-all=",
"--IPTC:all",
"--XMP-iptcExt:all",
"-tagsFromFile",
"#",
"-ResolutionUnit",
"-XResolution",
"-YResolution",
"-YCbCrSubSampling",
"-YCbCrPositioning",
"-BitsPerSample",
"-ImageHeight",
"-ImageWidth",
"-ImageSize",
"-Copyright",
"-CopyrightNotice",
"-Orientation",
"-"
],
"correlation_id":"ODWhqqnLNH2",
"error":"exit status 1",
"level":"info",
"msg":"exiftool command failed",
"stderr":" % Total % Received % Xferd Average Speed Time Time Time Current\n Dload Upload Total Spent Left Speed\n\r 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0\r 0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0\r 0 0 0 0 0 0 0 0 --:--:-- 0:00:02 --:--:-- 0\r 0 0 0 0 0 0 0 0 --:--:-- 0:00:03 --:--:-- 0\r 0 0 0 0 0 0 0 0 --:--:-- 0:00:04 --:--:-- 0Error: Writing of this type of file is not supported - -\n",
"time":"2021-12-22T12:44:50Z"
}
log/gitlab/gitlab-workhorse/#4000000061c31f28343253dc.u:11374:
{
"correlation_id":"ODWhqqnLNH2",
"error":"error while removing EXIF",
"level":"error",
"method":"POST",
"msg":"error",
"time":"2021-12-22T12:44:50Z",
"uri":"/uploads/user"
}
log/gitlab/gitlab-workhorse/#4000000061c343b71091c0ac.u:4:
{
"correlation_id":"OKWMhVphvr5",
"duration_ms":0,
"error":"badgateway: failed to receive response: dial unix /var/opt/gitlab/gitlab-rails/sockets/gitlab.socket: connect: connection refused",
"level":"error",
"method":"GET",
"msg":"error",
"time":"2021-12-22T12:51:32Z",
"uri":"/help"
}
Results of GitLab environment info:
root#env:/# gitlab-rake gitlab:env:info
System information
System:
Current User: git
Using RVM: no
Ruby Version: 2.7.2p137
Gem Version: 3.1.4
Bundler Version:2.1.4
Rake Version: 13.0.1
Redis Version: 5.0.9
Git Version: 2.29.0
Sidekiq Version:5.2.9
Go Version: unknown
GitLab information
Version: 13.6.3
Revision: 857c6c6a6a9
Directory: /opt/gitlab/embedded/service/gitlab-rails
DB Adapter: PostgreSQL
DB Version: 11.9
URL: https://my_host.com
HTTP Clone URL: https://my_host.com/some-group/some-project.git
SSH Clone URL: ssh://git#my_host.com:60000/some-group/some-project.git
Using LDAP: no
Using Omniauth: yes
Omniauth Providers:
GitLab Shell
Version: 13.13.0
Repository storage paths:
- default: /storage/data/gitlab/git-data/repositories
GitLab Shell path: /opt/gitlab/embedded/service/gitlab-shell
Git: /opt/gitlab/embedded/bin/git
Results of GitLab application Check:
root#env:/# gitlab-rake gitlab:check SANITIZE=true
Checking GitLab subtasks ...
Checking GitLab Shell ...
GitLab Shell: ... GitLab Shell version >= 13.13.0 ? ... OK (13.13.0)
Running /opt/gitlab/embedded/service/gitlab-shell/bin/check
Internal API available: OK
Redis available via internal API: OK
gitlab-shell self-check successful
Checking GitLab Shell ... Finished
Checking Gitaly ...
Gitaly: ... default ... OK
Checking Gitaly ... Finished
Checking Sidekiq ...
Sidekiq: ... Running? ... yes
Number of Sidekiq processes ... 1
Checking Sidekiq ... Finished
Checking Incoming Email ...
Incoming Email: ... Reply by email is disabled in config/gitlab.yml
Checking Incoming Email ... Finished
Checking LDAP ...
LDAP: ... LDAP is disabled in config/gitlab.yml
Checking LDAP ... Finished
Checking GitLab App ...
Git configured correctly? ... yes
Database config exists? ... yes
All migrations up? ... yes
Database contains orphaned GroupMembers? ... no
GitLab config exists? ... yes
GitLab config up to date? ... yes
Log directory writable? ... yes
Tmp directory writable? ... yes
Uploads directory exists? ... yes
Uploads directory has correct permissions? ... yes
Uploads directory tmp has correct permissions? ... yes
Init script exists? ... skipped (omnibus-gitlab has no init script)
Init script up-to-date? ... skipped (omnibus-gitlab has no init script)
Projects have namespace: ...
11/1 ... yes
5/2 ... yes
11/3 ... yes
11/4 ... yes
11/5 ... yes
11/6 ... yes
11/7 ... yes
11/8 ... yes
11/9 ... yes
11/10 ... yes
11/11 ... yes
11/12 ... yes
11/13 ... yes
11/14 ... yes
11/15 ... yes
Redis version >= 4.0.0? ... yes
Ruby version >= 2.7.2 ? ... yes (2.7.2)
Git version >= 2.29.0 ? ... yes (2.29.0)
Git user has default SSH configuration? ... yes
Active users: ... 14
Is authorized keys file accessible? ... yes
GitLab configured to store new projects in hashed storage? ... yes
All projects are in hashed storage? ... yes
Checking GitLab App ... Finished
Checking GitLab subtasks ... Finished
I have already written a bug ticket for GitLab but I haven't got any feedback yet: https://gitlab.com/gitlab-org/gitlab/-/issues/349149
I would be very grateful if somebody could provide some hits how I can recover my system.

Developer Cloud Service and Packer Build Failing with HTTP 401 Unauthorized?

My Oracle Developer build failed and stated something about an HTTP unauthorized code:
oracle-oci: Problem creating instance: Service error:NotAuthenticated. The required information to complete authentication was not provided or was incorrect.. http status code: 401
My packer json build has a bunch of elements I just setup and a bunch of them have OCI in the string...
"builders": [
{
"user_ocid":"ocid1.user.oc1..",
"tenancy_ocid": "ocid1.tenancy.oc1..",
"fingerprint":"0d:1e:...",
"key_file":"oci_api_key.pem",
"availability_domain": "uKbv:CA-TORONTO-1-AD-1",
"region": "us-ashburn-1",
"base_image_ocid": "ocid1.image.oc1.iad...",
"compartment_ocid": "ocid1.compartment.oc1..",
"image_name": "DevCS_MYSQL",
"shape": "VM.Standard2.2",
"ssh_username": "opc",
"ssh_password": "welcome1",
"subnet_ocid": "ocid1.subnet.oc1.ca-johnstown-1...",
"type": "oracle-oci"
}
],
How do I tell which one is wrong and causing the HTTP 401 unauthorized code? I don't see any of the elements mentioned, and I don't see
[2019-08-21 12:44:50] Build scheduled. Build started by user helpdeskaleer#gmail.com
[2019-08-21 12:44:50] Build task id: 830601c8-5ba8-4dc4-8bdc-07abaff9de73
[2019-08-21 12:55:03] Build execution started.
[2019-08-21 12:55:03] Building on slave PackerTerraformNodeJS
[2019-08-21 12:55:02] Git: Checkout directory is the workspace root.
[2019-08-21 12:55:02] Git: git version 1.8.3.1
[2019-08-21 12:55:02] Git: Fetching from remote repository https://mysqlalphaoffice-helpdeskaleer.developer.ocp.oraclecloud.com/mysqlalphaoffice-helpdeskaleer/s/mysqlalphaoffice-helpdeskaleer_mysql-alphaoffice_10254/scm/MYSQL-PackerTerraform.git
[2019-08-21 12:55:02] /bin/git fetch --no-tags https://mysqlalphaoffice-helpdeskaleer.developer.ocp.oraclecloud.com/mysqlalphaoffice-helpdeskaleer/s/mysqlalphaoffice-helpdeskaleer_mysql-alphaoffice_10254/scm/MYSQL-PackerTerraform.git +refs/heads/*:refs/remotes/origin/*
[2019-08-21 12:55:04] Git: Checking out branch master
[2019-08-21 12:55:04] Git: Done
[2019-08-21 12:55:04] BEGIN shell script execution with /bin/sh -ex
[2019-08-21 12:55:04] + packer --version
[2019-08-21 12:55:04] 1.3.5
[2019-08-21 12:55:04] + tee output.txt
[2019-08-21 12:55:04] + packer build build.json
[2019-08-21 12:55:05] [1;32moracle-oci output will be in this color.[0m
[2019-08-21 12:55:05] [1;32m==> oracle-oci: Creating temporary ssh key for instance...[0m
[2019-08-21 12:55:05] [1;32m==> oracle-oci: Creating instance...[0m
[2019-08-21 12:55:05] [1;31m==> oracle-oci: Problem creating instance: Service error:NotAuthenticated. The required information to complete authentication was not provided or was incorrect.. http status code: 401[0m
[2019-08-21 12:55:05] [1;31mBuild 'oracle-oci' errored: Problem creating instance: Service error:NotAuthenticated. The required information to complete authentication was not provided or was incorrect.. http status code: 401[0m
[2019-08-21 12:55:05] ==> Some builds didn't complete successfully and had errors:
[2019-08-21 12:55:05] --> oracle-oci: Problem creating instance: Service error:NotAuthenticated. The required information to complete authentication was not provided or was incorrect.. http status code: 401
[2019-08-21 12:55:05] ==> Builds finished but no artifacts were created.
[2019-08-21 12:55:05] + ls -l
[2019-08-21 12:55:05] total 56
[2019-08-21 12:55:05] -rw-r-----. 1 builder builder 2577 Aug 21 12:55 build.json
[2019-08-21 12:55:05] -rw-r-----. 1 builder builder 1406 Aug 21 12:55 compute.tf
[2019-08-21 12:55:05] -rw-r-----. 1 builder builder 888 Aug 21 12:55 datasources.tf
[2019-08-21 12:55:05] -rw-r-----. 1 builder builder 99 Aug 21 12:55 Dockerfile
[2019-08-21 12:55:05] -rw-r-----. 1 builder builder 786 Aug 21 12:55 env-vars
[2019-08-21 12:55:05] -rw-r-----. 1 builder builder 2983 Aug 21 12:55 network.tf
[2019-08-21 12:55:05] -rw-r-----. 1 builder builder 1675 Aug 21 12:55 oci_api_key.pem
[2019-08-21 12:55:05] -rw-r-----. 1 builder builder 450 Aug 21 12:55 oci_api_key_public.pem
[2019-08-21 12:55:05] -rw-r-----. 1 builder builder 1678 Aug 21 12:55 oci_instance_key
[2019-08-21 12:55:05] -rw-r-----. 1 builder builder 402 Aug 21 12:55 oci_instance_key.pub
[2019-08-21 12:55:05] -rw-r-----. 1 builder builder 488 Aug 21 12:55 outputs.tf
[2019-08-21 12:55:05] -rw-r-----. 1 builder builder 874 Aug 21 12:55 output.txt
[2019-08-21 12:55:05] -rw-r-----. 1 builder builder 260 Aug 21 12:55 provider.tf
[2019-08-21 12:55:05] -rw-r-----. 1 builder builder 1726 Aug 21 12:55 variables.tf
[2019-08-21 12:55:05] + cat output.txt
[2019-08-21 12:55:05] [1;32moracle-oci output will be in this color.[0m
[2019-08-21 12:55:05] [1;32m==> oracle-oci: Creating temporary ssh key for instance...[0m
[2019-08-21 12:55:05] [1;32m==> oracle-oci: Creating instance...[0m
[2019-08-21 12:55:05] [1;31m==> oracle-oci: Problem creating instance: Service error:NotAuthenticated. The required information to complete authentication was not provided or was incorrect.. http status code: 401[0m
[2019-08-21 12:55:05] [1;31mBuild 'oracle-oci' errored: Problem creating instance: Service error:NotAuthenticated. The required information to complete authentication was not provided or was incorrect.. http status code: 401[0m
[2019-08-21 12:55:05] ==> Some builds didn't complete successfully and had errors:
[2019-08-21 12:55:05] --> oracle-oci: Problem creating instance: Service error:NotAuthenticated. The required information to complete authentication was not provided or was incorrect.. http status code: 401
[2019-08-21 12:55:05] ==> Builds finished but no artifacts were created.
[2019-08-21 12:55:05] /data/cibuild/830601c8-5ba8-4dc4-8bdc-07abaff9de73/tmp/script5780075887420937130.sh: line 5: unexpected EOF while looking for matching ``'
[2019-08-21 12:55:05] Error: Command exited with status 2
[2019-08-21 12:55:05] END shell script execution
[2019-08-21 12:55:05] No artifacts requested
Slave log size 4.6 KB (4,622)
[2019-08-21 12:55:07]
[2019-08-21 12:55:07] Build completed.
[2019-08-21 12:55:07] Status: DONE Result: FAILED Duration: 5.0 sec
401 NotAuthenticated indicates there's a problem with one of these values:
"user_ocid":"ocid1.user.oc1..",
"tenancy_ocid": "ocid1.tenancy.oc1..",
"fingerprint":"0d:1e:...",
"key_file":"oci_api_key.pem",
Those settings are all used to construct the signing string used to authenticate to OCI. When that authentication fails, you get a 401 NotAuthenticated response.

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

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

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?

Resources