Skip navigation.

exploreopera

| Help

Sign up | Help

v.plonk!

don't feed the trolls

Posts tagged with "linux"

permission denied...

,

For several hours I tried to fix a small "bug" in my subversion installation, but without any results. I commited a file to subversion successfully, but the hook "post-commit" didn't do anything at all. So I logged on to my server, started the hook manually and it worked perfectly.

So what went wrong? Well... it all started with my login to the server. As I'm pretty lazy, I (locally) logged in as root, installed subversion, created the logfiles and so on. Everything seemed fine and as commiting worked too I was pretty happy. Then I changed the hook to update the logfiles but nothing happened. I started the hook manually... and it worked. :eyes:

So I started to read several blogs about subversion, read online manuals, tutorials and so on... nothing helped. :irked:

When I asked a friend concerning this problem I suddenly had an idea... I logged on the server switched the user to my testuser and started the hook manually:

[testuser@localhost hooks] $ sh post-commit
post-commit: line 54: /var/log/svn/project.log: Permission denied
post-commit: line 55: /var/log/svn/project.log: Permission denied


After adjusting the permissions and ownership of the logfile everything works totally fine now. I still can't believe how blind I have been... :ko:

CVS replaced by Subversion

, ,

After alot of untraceable trouble with setting up CVS on a local test server for 2 days, I kicked it from the server and installed Subversion instead. It worked perfectly on my first attempt, even though I never installed it before.

When I started I had CVS ready after around 10 minutes, configured the firewall and created a repository. Everything looked fine as always. Then I tried to access the repository... but instead of a connect I got an error message: "no such repository"! After reading endless threads describing but never solving my problem I decided to try Subversion instead, even though I wasn't familiar with it until today. I read a documentation and installed it using a pretty neat manual I found on linuxfromscratch.org.

Now all works well and I can finally head home. I'm so dead beat after hours and hours of trial and error with CVS, I'll surely have short nap and afterwards a nice time playing "Red Steel" on my Wii or "Tomb Raider Anniversary" on my PC. :rolleyes: