ha11oga11o's picture

Hello,

 

please be gentle with me because im linux n00b.

I tried to update confconsole hoping it will add new fetures for lets encrypt but during update i opted to replace config file and got bunch of errors when starting it now.

Heres what i manage to see on putty console. I hope its enough?

 

TurnKey GNU/Linux Configuration Console
 qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq

 

 

 

 

                           lqqqqqqqqqqqqqqqqqqqqCaught exceptionqqqqqqqqqqqqqqqqqqqqqqk
                           x     ifname = self._get_default_nic()                     x
                           x   File "/usr/bin/confconsole", line 238, in              x
                           x _get_default_nic                                         x
                           x     if _validip(ifname):                                 x
                           x   File "/usr/bin/confconsole", line 228, in _validip     x
                           x     ip = ifutil.get_ipconf(ifname)[0]                    x
                           x   File "/usr/lib/confconsole/ifutil.py", line 247, in    x
                           x get_ipconf                                               x
                           x     return net.addr, net.netmask,                        x
                           x net.get_gateway(error), get_nameservers(ifname)          x
                           x   File                                                   x
                           x "/usr/lib/python3/dist-packages/netinfo/__init__.py",    x
                           x line 85, in __getattr__                                  x
                           x     raise AttributeError("no such attribute: " +         x
                           x attrname)                                                x
                           x AttributeError: no such attribute: get_gateway           x
                           tqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq100%qu
                           x                         <  ok  >                         x
                           mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj

 

 

 

 

 


Traceback (most recent call last):
  File "/usr/bin/confconsole", line 663, in loop
    new_dialog = method()
  File "/usr/bin/confconsole", line 356, in usage
    ifname = self._get_default_nic()
  File "/usr/bin/confconsole", line 238, in _get_default_nic
    if _validip(ifname):
  File "/usr/bin/confconsole", line 228, in _validip
    ip = ifutil.get_ipconf(ifname)[0]
  File "/usr/lib/confconsole/ifutil.py", line 247, in get_ipconf
    return net.addr, net.netmask, net.get_gateway(error), get_nameservers(ifname)
  File "/usr/lib/python3/dist-packages/netinfo/__init__.py", line 85, in __getattr__
    raise AttributeError("no such attribute: " + attrname)
AttributeError: no such attribute: get_gateway

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/confconsole", line 731, in <module>
    main()
  File "/usr/bin/confconsole", line 726, in main
    tc.loop()
  File "/usr/bin/confconsole", line 673, in loop
    self.console.msgbox("Caught exception", sio.getvalue())
  File "/usr/bin/confconsole", line 126, in msgbox
    title=title, ok_label=button_label)
  File "/usr/bin/confconsole", line 96, in _wrapper
    ret = method("\n" + text, *args, **kws)
  File "/usr/lib/python3/dist-packages/dialog.py", line 3028, in msgbox
    kwargs)
  File "/usr/lib/python3/dist-packages/dialog.py", line 1717, in _widget_with_no_output
    code, output = self._perform(args, **kwargs)
  File "/usr/lib/python3/dist-packages/dialog.py", line 1504, in _perform
    args_file)
  File "/usr/lib/python3/dist-packages/dialog.py", line 1469, in _handle_program_exit
    child_output_rfd)
  File "/usr/lib/python3/dist-packages/dialog.py", line 1394, in _wait_for_program_termination
    child_output = f.read()
KeyboardInterrupt
root@nextcloud ~#

 

Output of 

 

root@nextcloud ~# apt policy confconsole dehydrated
confconsole:
  Installed: 2.0.2+4+gef5db16
  Candidate: 2.0.2+4+gef5db16
  Version table:
 *** 2.0.2+4+gef5db16 999
        999 http://archive.turnkeylinux.org/debian buster/main amd64 Packages
        100 /var/lib/dpkg/status
dehydrated:
  Installed: 0.6.2-2+deb10u1
  Candidate: 0.6.2-2+deb10u1
  Version table:
 *** 0.6.2-2+deb10u1 500
        500 http://deb.debian.org/debian buster/main amd64 Packages
        100 /var/lib/dpkg/status

If someone please help me to fix this i will be really thankfull. Its Nextcloud instance which i cannot backup and reinstall easy. Not even remotely easy just for that.

 

Many thnx in advance!

Forum: 
Jeremy Davis's picture

Firstly, hi ha11oga11o and welcome to TurnKey! :)

TBH, I'm not quite sure, but to take a wild guess, perhaps there is still an older version of confconsole running?

To know whether that's possible, then we'd need to know which version of confconsole was instalelled previously. If you are running v16.1, then that shipped with the version that you have. If you are running v16.0, then that shipped with an older version. If you are unsure/don't recall, try running this:

turnkey-version

Regardless, working on my guess, try killing all instances of confconsole like this:

kill -9 $(pgrep confconsole)

And try launching it again:

confconsole

If that still doesn't fix it, try doing a re-install of confconsole:

apt install --reinstall confconsole -y

Accepting the new config file should be fine (and is recommended in this case).

If the reinstall doesn't work as expected and/or it still doesn't work after doing that, please post the full output for the reinstall process.

The final thing to try (without further feedback/input from me) is to try rebooting ("have you tried turning it off and on again? :)

If none of that works, please do post back.

Jeremy Davis's picture

I just had a colleague have a quick look and he noted that your version of 'turnkey-netinfo' likely needs update too. TBH, I'm not sure that is the issue, but it surely won't hurt!

apt install -y turnkey-netinfo
Jeremy Davis's picture

I mean to also ask, what new features for Let's Encrypt were you seeking?

ha11oga11o's picture

Hello,

 

thanks for welcome and time spent on my problem. Actually after reinstalling netinfo it works.

Its turnkey 16.0 and it seems that Lets Encrypt has old url/settings which cannot work. I never tried to use it before so im experimenting. Wold be nice to run Nextcloud with valid cert.

I saw that here https://letsencrypt.org/docs/acme-protocol-updates/ and comparing urls with those in config i saw its not valid anymore, thats why im getting error when trying it.

 

Many thnx for helping me fix this. It seems after updating confconsole, net info needs to be too.

 

 

 

 

Jeremy Davis's picture

I forgot about the need to update dehydrated in v16.0.

And I wasn't actually aware of the need to update the netinfo library. That's valuable info. Although the current release (v16.1 for most; some are up to v16.2) should already have the newer Confconsole (and netinfo and dehydrated). Regardless, I should probably release a new confconsole version that specifically depends on the newer netinfo so it automatically get's pulled in for anybody else who tries that upgrade path. I'll try to do that ASAP.

FYI, unlike lots of Debian packages, the confconsole Let's Encrypt plugin doesn't automatically put it's config in /etc. It actaully checks to see if it exists and if not, copies it in. So if you have troubles with Dehydrated, please try removing the confconsole related config in /etc/dehydrated. Although keep confconsole.domains.txt as that will have your domain(s). Here's a quick way to do that:

rm -f /etc/dehydrated/confconsole.{config,hook.sh}

Then when the dehydrated-wrapper script is next run, it will update them.

Also if you wish you can run the wrapper script directly (instead of via confconsole):

/usr/lib/confconsole/plugins.d/Lets_Encrypt/dehydrated-wrapper --help
ha11oga11o's picture

Thank you kind sir!

Add new comment