Not starting gw6c - no server key

Bug #578848 reported by Vincenzo Ampolo
40
This bug affects 8 people
Affects Status Importance Assigned to Milestone
gw6c (Ubuntu)
New
Undecided
Unassigned
Nominated for Lucid by Vincenzo Ampolo
Nominated for Maverick by Vincenzo Ampolo

Bug Description

Binary package hint: gw6c

Hi,
On lucid gw6c doesn't import new keys automatically.

As soon as you change the configuration from the default value to the authentication login of freenet6 when you start the program again you receive:

goshawk@earth:~$ sudo /etc/init.d/gw6c start
 * Starting Gateway6 Client gw6c * Not starting gw6c - no server key

This is because the package knows only the anonymous.freenet6.net key. To solve this just run gw6c once.

goshawk@earth:~$ sudo /usr/sbin/gw6c
amsterdam.freenet6.net is an unknown host, do you want to add its key?? (Y/N) y
goshawk@earth:~$ sudo /etc/init.d/gw6c start
 * Starting Gateway6 Client gw6c /usr/sbin/gw6c already running.
                                                                                                                                                                                                                                            [ OK ]
goshawk@earth:~$ sudo /etc/init.d/gw6c stop
 * Stopping Gateway6 Client gw6c [ OK ]
goshawk@earth:~$ sudo /etc/init.d/gw6c start
 * Starting Gateway6 Client gw6c

The init script of the package should handle this exception and import a new key if gw6c requires it.

Revision history for this message
I'M YourOnly.One 🔏 (techmagus) wrote :

I did your instructions but it did not work for me.

I remember doing something similar before on my desktop but I can not recall it. Doing the above on UNR is failing. The key was added but the init.d seems to think the key is still missing.

Revision history for this message
I'M YourOnly.One 🔏 (techmagus) wrote :

Follow up to #1..

I remember it now, the temporary workaround:
In the terminal: gksu gedit /etc/default/gw6c
Look for: # CHECK_KEYFILE="yes"
and change it to: CHECK_KEYFILE="no"

Revision history for this message
Jason Frost (jasonf) wrote :

Hi, I know this is a very old bug report, but it's still valid - the same error happened to me today.

As said in the original report, running gw6c once will download the key, but the reason why it won't work for everyone is because keys are rejected if you're redirected to a hostname other than the one in your gw6c.conf file - the solution to this is to put the final server you are connecting to as the server in your gw6c.conf, so for mine, as I connect to sydney.freenet6.net, I had to set my server to that.

Once this is done, the workaround in #2 is not necessary.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.