Koozali.org: home of the SME Server

Obsolete Releases => SME 7.x Contribs => Topic started by: stard0g101 on December 05, 2007, 08:15:33 PM

Title: subversion and Primary ibay
Post by: stard0g101 on December 05, 2007, 08:15:33 PM
Hi All!

Got a bit of a problem that Id love to get some advice on; its a bit of a dumb thing I've done.

I did an rm * on the ibays/Primary/html directory; and as a result I am now unable to access my subversion repos (*slaps forehead*)

There must have been something in the Primary/html that hooked up with the subversion repos.

Is there any way to restore the deleted svn folders/files? or some other way to gain access to the repos again?

Thanks in advance!
Title: Re: subversion and Primary ibay
Post by: cactus on December 05, 2007, 09:04:44 PM
Is there any way to restore the deleted svn folders/files? or some other way to gain access to the repos again?
Normally you can not undelete things on linux, unless you enabled the recycle bin for an ibay. Hopefully you have a backup to restore the html folder from you primary ibay folder.

Are you sure your webserver is running? What is the output of the following command?
Code: [Select]
sv s httpd-e-smith
If you do not have a backup and the webserver is running you should try to figure out what you configuration was and where things are going wrong. You could start by looking at the log files of the webserver at the time you tried to access the Primary ibay unsuccessfully, the access_log and error_log might have some clues to what is going wrong. Perhaps you can post relevant snippets of the log files here, so we can try and help you analyze them.
Title: Re: subversion and Primary ibay
Post by: stard0g101 on December 05, 2007, 09:11:58 PM
Hi there cactus! Thanks for the prompt response!

output of:

sv s httpd-e-smith
run: httpd-e-smith: (pid 4201) 1550s, normally down

access_log
hostname.co.uk 192.168.1.35 - username [05/Dec/2007:20:07:24 +0000] "OPTIONS /www/my-site HTTP/1.1" 403 217 "-" "SVN/1.4.5 (r25188) neon/0.26.3                                                   "

error_log
[Wed Dec 05 20:05:29 2007] [error] [client 127.0.0.1] File does not exist: /home/e-smith/files/ibays/Primary/html/server-status
[Wed Dec 05 20:07:24 2007] [error] [client 192.168.1.35] Options FollowSymLinks or SymLinksIfOwnerMatch is off which implies that RewriteRule directive is forbidden: /home/e-smith/files/ibays/Primary/html/www/my-site


the server-status file appears to be missing?
AND
I have some funk mod_rewrite happening (this is part of the site itself, but was working fine up until clearing the Primary/html).

To my SME inexperienced mind I guess the question is: How does one get the server-status dir/file back?

Greatly appreciate any light you could shed on the next steps.


Title: Re: subversion and Primary ibay
Post by: cactus on December 05, 2007, 09:25:04 PM
What did you install in your Primary ibay folder? Is it a CMS package like Moodle, Typo3 or something like that? If it was some sort of contrib you might perhaps try and reinstall this contrib...

If not you will need to retrace what you put in the Primary folder. Ar you sure there was a server-status file in the Primary html folder? To me it seems that this might be the server-status page from apache, which normally not is a real file or folder but is an alias (see also http://httpd.apache.org/docs/2.0/mod/mod_status.html).

Did you perhaps somehow disable that?
Title: Re: subversion and Primary ibay
Post by: stard0g101 on December 05, 2007, 09:35:13 PM
Nopers the application is a bespoke solution im developing.

I deployed it to the Primary. simple svn export. and now i dont seem to be able to commit anythign to the repos.

The problem appears to be with authentication on the svn repo. Im getting:

Error: Commit failed (details follow): 
Error: OPTIONS request failed on '/wwwsnm/trunk' 
Error: OPTIONS of '/wwwsnm/trunk': 403 Forbidden (https://office) 

Somehow, it seems that the svn user authentication and the SME server users has been lost.. or mod rewrite is doign something strange..

I hope iv not wasted your time; ill have a look at wether mod rewrite is trying to redir the https:// requests.

Title: Re: subversion and Primary ibay
Post by: stard0g101 on December 06, 2007, 09:03:11 AM
ok! so solution  to the problem seems to be simply to create a symbolic link to the svn repos! from the primary html directory and make sure you change ownership to the group/person who you specified to own the repo.

Very stupid thing to do granted; however highlights (in my mind anyway) how the Primary ibay should not be fooled around with :)
Title: Re: subversion and Primary ibay
Post by: cactus on December 06, 2007, 09:40:07 AM
ok! so solution  to the problem seems to be simply to create a symbolic link to the svn repos! from the primary html directory and make sure you change ownership to the group/person who you specified to own the repo.

Very stupid thing to do granted; however highlights (in my mind anyway) how the Primary ibay should not be fooled around with :)
IMHO it is a good lesson that you need to document what you are doing so you can easily trace what you are missing...