Domhnall Currie's picture

Just installed Ghost yesterday in a Proxmox container, everything pretty generic/default.  I haven't done anything with it yet and last night I had a Proxmox console open sitting at the confconsole screen.  When I went to bed, I closed my browser and clicked "leave page" when it asked about the Ghost console.  This morning I went into Proxmox and clicked on the Ghost console and saw all this: 

Traceback (most recent call last):
  File "/usr/bin/confconsole", line 663, in loop
    new_dialog = method()
  File "/usr/bin/confconsole", line 398, in usage
    button_label=default_button_label)
  File "/usr/bin/confconsole", line 126, in msgbox────────────Caught exception──────────────────────┐
    title=title, ok_label=button_label)  │  Traceback (most recent call last):   File               │  
  File "/usr/bin/confconsole", line 96, in _wrappern/confconsole", line 663, in loop     new_dialog │  
    ret = method("\n" + text, *args, **kws)= method()   File "/usr/bin/confconsole", line 398, in   │  
  File "/usr/lib/python3/dist-packages/dialog.py", line 3028, in msgboxlt_button_label)   File      │  
    kwargs)                              │ "/usr/bin/confconsole", line 126, in msgbox              │  
  File "/usr/lib/python3/dist-packages/dialog.py", line 1717, in _widget_with_no_output             │  
    code, output = self._perform(args, **kwargs)/bin/confconsole", line 96, in _wrapper     ret =   │  
  File "/usr/lib/python3/dist-packages/dialog.py", line 1504, in _perform                           │  
    args_file)                           │ " + text, *args, **kws)   File                           │  
  File "/usr/lib/python3/dist-packages/dialog.py", line 1469, in _handle_program_exit, line 3028,   │  
    child_output_rfd)                    │ in msgbox     kwargs)   File                             │  
  File "/usr/lib/python3/dist-packages/dialog.py", line 1421, in _wait_for_program_termination17,   │  
    child_output.strip()))               │ in _widget_with_no_output     code, output =             │  
dialog.DialogError: dialog-like terminated due to an error: the dialog-like program exited with status 3 (which was passed to it as the DIALOG_ERROR environment variable). Sometimes, the reason is simply that dialog was given a height or width parameter that is too big for the terminal in use. Its output, with leading and trailing whitespace stripped, was:)   File                        │  
                                         ├─────────────────────────────────────────────────────57%──┤  
                                         │                         <  ok  >                         │  
                                         └──────────────────────────────────────────────────────────┘  
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 1421, in _wait_for_program_termination
    child_output.strip()))
dialog.DialogError: dialog-like terminated due to an error: the dialog-like program exited with status 3 (which was passed to it as the DIALOG_ERROR environment variable). Sometimes, the reason is simply that dialog was given a height or width parameter that is too big for the terminal in use. Its output, with leading and trailing whitespace stripped, was:

 

[EOF - dtach terminating]
root@Ghost ~#

Only thing I can make of it is maybe I need to go in and configure the terminal size or something, or try one of the other terminal types in Proxmox.  I haven't looked at it yet, but I've never seen anything like that with any of the TKL appliances, so thought I'd sent it on up.  :) 

Don

 

Forum: 
Domhnall Currie's picture

Loading confconsole back up, it comes up ok....

Jeremy Davis's picture

As you guessed from the output, the issue is the terminal size. However, that usually doesn't occur unless the terminal window is resized.

My guess is that when you clicked "leave page" in your browser, Proxmox resized the "console"window and it was too small for Confconsole to redraw the 'Ok" message cleanly?!

As you noticed, if you restart Confconsole, it works fine. That is until you resize the console window too small... Note that you may not be able to do that in your browser Proxmox console window (perhaps? I haven't tested TBH). But if you SSH in (via an SSH client) in and run Confconsole within that, then resize the SSH client window, you will definitely be able to recreate the issue.

FWIW, I've opened an issue to handle this scenario a bit more gracefully.

Domhnall Currie's picture

I can't remember which console I opened. (I'll try to do better next time) :)  If you click console over on the left in the Proxmox menu under summary, it opens a NoVNC window internally to the Proxmox browser window.  If you click on console over on the top right by the shutdown button, it opens a NoVNC window in a separate QEMU browser window.  I don't know if that has anything to do with it or not.  Looking at my screenshot, when I reloaded it the next morning it appears I clicked on the left, but I don't remember which one I got the error message in.  Anyway, if it's just complaining about terminal size, I can deal with that.  :)

 

Jeremy Davis's picture

Yeah I use the NoVNC window quite a bit myself but I can't make it error like that?! When I resize the main window (as per your screenshot) it just scales the NoVNC window (not the resolution but the size - i.e. if I make the window small, the font is so small I can't read the text anymore). If click the button to open a new window, that will auto (re)size. If I try to resize it it snaps back to the preset size?! I can only reproduce the issue when using a terminal (i.e. log in via SSH).

I wonder if it's the web browser you are using? FWIW I use Chrome (or chromium based browser). So perhaps you are using Firefox and it acts differently? Actually my Proxmox is out of date, so perhaps it's an issue that only occurs on newer Proxmox version?

Domhnall Currie's picture

Doh!  Just did something similar in my Dokuwiki container:

 

I've just started with Proxmox and I'm basically using all defaults on everything.  Is this something that'd be more easily configured in Proxmox that'd work with everything versus you guys making changes on the TKL end?

Add new comment