<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>248049</bug_id>
          
          <creation_ts>2008-11-21 19:49 0000</creation_ts>
          <short_desc>net-misc/nxserver-freeedition fails to upgrade if a DSA is not present</short_desc>
          <delta_ts>2008-11-25 02:43:38 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>unspecified</version>
          <rep_platform>AMD64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>yanfali@gmail.com</reporter>
          <assigned_to>nx@gentoo.org</assigned_to>
          <cc>pva@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>yanfali@gmail.com</who>
            <bug_when>2008-11-21 19:49:52 0000</bug_when>
            <thetext>[I] net-misc/nxserver-freeedition
     Available versions:  3.2.0!s (~)3.2.0-r1!s (~)3.2.0.13!s (~)3.2.0.16!s (~)3.3.0.8!s
     Installed versions:  3.3.0.8!s(11:42:56 11/21/08)
     Homepage:            http://www.nomachine.com/
     Description:         Free edition NX server from NoMachine

I was upgrading from 3.2.0.16 to 3.3.0.8 and the upgrade failed with this
error:

--------------------------------------------------------------------- 

NX&gt; 701 ERROR: Output: /bin/cp: cannot stat `/usr/NX/home/nx/.ssh/default.id_dsa.pub.backup&apos;: No such file or directory.
NX&gt; 701 ERROR: Cannot restore DSA key..

--------------------------------------------------------------------- 

To work around the problem I simply touched an empty
&apos;/usr/NX/home/nx/.ssh/default.id_dsa.pub.backup&apos;.  Probably the script should
be a bit smarter and check if the backup exists before copying.


Reproducible: Always

Steps to Reproduce:
1. have an install of nxserver-freedition with only DSA keys not RSA.
2. try and upgrade to 3.3.0.8
3. boom

Actual Results:  
* Running NoMachine&apos;s update script
NX&gt; 701 Updating: server at: Fri Nov 21 11:41:51 2008.
NX&gt; 701 Autodetected system: gentoo.
NX&gt; 701 Update log is: /usr/NX/var/log/update.
NX&gt; 701 Checking NX server configuration using /usr/NX/etc/server.cfg file.
NX&gt; 723 Cannot start NX statistics:
NX&gt; 709 NX statistics are disabled for this server.
NX&gt; 701 ERROR: Output: /bin/cp: cannot stat `/usr/NX/home/nx/.ssh/default.id_dsa.pub.backup&apos;: No such file or directory.
NX&gt; 701 ERROR: Cannot restore DSA key..
 *
 * ERROR: net-misc/nxserver-freeedition-3.3.0.8 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called pkg_postinst
 *             environment, line 2221:  Called die
 * The specific snippet of code:
 *           &quot;${ROOT}&quot;/usr/NX/scripts/setup/nxserver --update || die &quot;Update script failed&quot;;
 *  The die message:
 *   Update script failed
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at &apos;/var/tmp/portage/net-misc/nxserver-freeedition-3.3.0.8/temp/build.log&apos;.
 * The ebuild environment file is located at &apos;/var/tmp/portage/net-misc/nxserver-freeedition-3.3.0.8/temp/environment&apos;.



Expected Results:  
clean upgrade.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>yanfali@gmail.com</who>
            <bug_when>2008-11-21 19:51:10 0000</bug_when>
            <thetext>Ooops, I meant no DSA keys, not RSA. :)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>voyageur@gentoo.org</who>
            <bug_when>2008-11-24 09:56:05 0000</bug_when>
            <thetext>Ouch upstream fix for default DSA key (in the setup script) does not like our handling of key files.

Fixed and bumped in CVS, thanks for the report!

If you still have problems, you may need to uninstall and reinstall nx.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>voyageur@gentoo.org</who>
            <bug_when>2008-11-24 10:03:11 0000</bug_when>
            <thetext>*** Bug 248124 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>yanfali@gmail.com</who>
            <bug_when>2008-11-25 02:43:38 0000</bug_when>
            <thetext>Yeah I did end up having to uninstall and reinstall because I couldn&apos;t get the server to startup correctly.  It&apos;s working now but only after deleting all the files left over from the previous install.  Thanks for fixing this!</thetext>
          </long_desc>
      
    </bug>

</bugzilla>