<div dir="ltr">ok thinking a little more - I ran your query and found the entries, but my database knowledge is REALLY limited. How would I delete those entries? I tried to be clever and simply replace SELECT with DELETE but that's clearly wrong....<br>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Aug 22, 2013 at 10:41 PM, Theo <span dir="ltr"><<a href="mailto:axessofficetheo@gmail.com" target="_blank">axessofficetheo@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Hi<br><br></div>I have two servers running. This particular one only has a few permanent contacts and are in fact not needed so I could easily delete them. If I could get into the webinterface. I see now that after this I can't get to the webgui anymore. Apache error log gives me:<br>

<br>Subroutine Sipwise::Base::CLASS redefined at /usr/share/perl5/CLASS.pm line 20.<br><br></div>Do I wait for the fix and run it again, or is there a quickish way around this in the meantime?<br></div><div class="HOEnZb">
<div class="h5"><div class="gmail_extra">
<br><br><div class="gmail_quote">On Thu, Aug 22, 2013 at 6:00 PM, Andrew Pogrebennyk <span dir="ltr"><<a href="mailto:apogrebennyk@sipwise.com" target="_blank">apogrebennyk@sipwise.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Theo,<br>
<br>
this is the problem John reported here:<br>
<a href="http://lists.sipwise.com/pipermail/spce-user/2013-August/004605.html" target="_blank">http://lists.sipwise.com/pipermail/spce-user/2013-August/004605.html</a><br>
<br>
The problem is that in 2.8 installation when we create permanent<br>
contacts the ruid is not unique. In 3.0 it must be unique.<br>
<br>
Please check how many permanent contacts you have:<br>
<br>
SELECT  *<br>
FROM    location loc1<br>
WHERE   EXISTS<br>
        (<br>
        SELECT  1<br>
        FROM    location loc2<br>
        WHERE   loc2.ruid = loc1.ruid<br>
        LIMIT 1, 1<br>
        )<br>
<br>
if there are just a few of them you can delete them, re-run upgrade<br>
script and re-create the permanent contacts afterwards.<br>
<br>
Victor is working on the permanent fix, ETA: tomorrow.<br>
<span><font color="#888888"><br>
Andrew<br>
</font></span><div><br>
On 08/22/2013 05:46 PM, Theo wrote:<br>
> Hi Andrew<br>
><br>
> Thanks as always for quick replies! Got past that now but now have:<br>
><br>
> Applying revision script<br>
> /usr/share/ngcp-db-schema/db_scripts/diff/13659.up: ERROR 1062 (23000)<br>
> at line 13: Duplicate entry 'ulcx-516bff41-36e4-1' for key 'ruid_idx'<br>
> failed. :(<br>
> Please resolve the problem and run ngcp-update-db-schema again.<br>
> root@sipwise:~#<br>
><br>
><br>
><br>
> On Thu, Aug 22, 2013 at 5:42 PM, Andrew Pogrebennyk<br>
</div><div><div>> <<a href="mailto:apogrebennyk@sipwise.com" target="_blank">apogrebennyk@sipwise.com</a> <mailto:<a href="mailto:apogrebennyk@sipwise.com" target="_blank">apogrebennyk@sipwise.com</a>>> wrote:<br>


><br>
>     Hi Theo,<br>
><br>
>     it seems you've had postgresql installed. Could you please deinstall it<br>
>     manually (apt-get remove --purge) and re-run the upgrade script again?<br>
>     It should continue from where it stopped last time.<br>
><br>
>     On 08/22/2013 04:42 PM, Theo wrote:<br>
>     > Hi<br>
>     ><br>
>     > That didn't go as planned :-( - I did not get the request to reboot at<br>
>     > the end. It ended with the famous last words:<br>
>     ><br>
>     > Removing linux-kbuild-2.6.32 ...<br>
>     > Removing postgresql-contrib-8.4 ...<br>
>     > Removing postgresql-8.4 ...<br>
>     > invoke-rc.d: policy-rc.d denied execution of stop.<br>
>     > Purging configuration files for postgresql-8.4 ...<br>
>     > Dropping cluster main...<br>
>     > Can't exec "": No such file or directory at /usr/bin/pg_ctlcluster<br>
>     line 268.<br>
>     > Error: could not stop server, aborting<br>
>     > dpkg: error processing postgresql-8.4 (--purge):<br>
>     >  subprocess installed post-removal script returned error exit status 1<br>
>     > Removing postgresql-client-8.4 ...<br>
>     > Removing postgresql-doc-8.4 ...<br>
>     > Processing triggers for man-db ...<br>
>     > Errors were encountered while processing:<br>
>     >  postgresql-8.4<br>
>     > E: Sub-process /usr/bin/dpkg returned an error code (1)<br>
>     ><br>
>     ><br>
>     > I can no longer login on the webinterface - not accepting my user and<br>
>     > pass and presumably most other things are borked? Any thoughts?<br>
><br>
><br>
<br>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>