You have to try to recover the same file for it to succeed. Just "vi -r koha" would not succeed because this file:<br><div style="margin-left: 40px;">/etc/apache2/sites-enabled/koha-httpd.conf<br></div><br>is probably just a link to:<br>
<div style="margin-left: 40px;">/etc/koha/koha-httpd.conf<br></div><br>So you probably want to recover using:<br><div style="margin-left: 40px;">vi -r /etc/koha/koha-httpd.conf</div><br>Otherwise try to delete the swap file manually as the message suggests:<br>
<div style="margin-left: 40px;">rm /etc/koha/.koha-httpd.conf.swp<br></div><br>--Joe<br><br><div class="gmail_quote">On Tue, Jan 13, 2009 at 5:03 AM, Noel Peter Kalonga <span dir="ltr"><<a href="mailto:neilkalonzi@gmail.com">neilkalonzi@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Koha 3.0.0 on debian<br>
<br>
Have posted this problem yesterday and tried suggested solutions. Our<br>
problem is two fold.<br>
1. When starting up the OS, we get one file failed with the following<br>
message; Syntax error on line 668 of etc/apache2/sites-enabled/<br>
koha-httpd.conf: No such file or directory.<br>
<br>
When we log into the root terminal to change IP addresses, the # vim<br>
koha command returns the following message.<br>
<br>
E325: ATTENTION<br>
Found a swap file by the name "/etc/koha/.koha-httpd.conf.swp"<br>
owned by: root dated: Thu Jan 8 14:46:11 2009<br>
file name: /etc/apache2/sites-available/koha<br>
modified: YES<br>
user name: root host name: koha<br>
process ID: 4582<br>
While opening file "koha"<br>
dated: Fri Jan 9 15:03:18 2009<br>
NEWER than swap file!<br>
<br>
(1) Another program may be editing the same file.<br>
If this is the case, be careful not to end up with two<br>
different instances of the same file when making changes.<br>
Quit, or continue with caution.<br>
<br>
(2) An edit session for this file crashed.<br>
If this is the case, use ":recover" or "vim -r koha"<br>
to recover the changes (see ":help recovery").<br>
If you did this already, delete the swap file "/etc/koha/.koha-httpd.conf.sw<br>
p"<br>
to avoid this message.<br>
<br>
-- More --<br>
When we use "vim -r koha"<br>
it says no swap file exists. We also tried the mailing list<br>
suggestion of pressing the space bar, but did not get the option to<br>
delete swap file (maybe because it doesn't exist??)<br>
Could you please give more specific advice,<br>
Carmel Young<br>
Catholic University of Malawi<br>
--<br>
Noel Peter Kalonga<br>
The Catholic University of Malawi<br>
Montfort Campus<br>
P.O Box 5452<br>
Limbe - Malawi<br>
<br>
09 934 794<br>
<br>
Other e-mail: <a href="mailto:nkalonga@cunima.net">nkalonga@cunima.net</a><br>
<a href="mailto:nkalonga@africa-online.net">nkalonga@africa-online.net</a></blockquote></div><br>