[Fuego] ftc add-nodes fails

Laszlo Sitzer laszlo.sitzer at native-instruments.de
Wed Jul 1 13:13:10 UTC 2020


I managed to get the Jenkins error message that was masked by the python
exception.
I have uploaded it (it is a HTML page from Jenkins) to
https://filebin.net/7ihevnus0vzwuoo6/err.html?t=h64q47ri

Aside from the Java exception on the HTML page, Jenkins mentions some that
the following plugins could not be loaded:

- Script Security Plugin
- Pipeline: Step API
- JUnit Plugin
- Command Agent Launcher Plugin
- Matrix Project Plugin

Could this explain why adding an executor/node fails via ftc? I know this
might be more an issue for the jenkins mailing list.

I will try to manually add a Jenkins executor to see if that part should
work (without ftc).
I will also try to use Jenkins 2.176.4 as suggested by the error message to
see if the above mentioned plugins will start to work again.

On Tue, Jun 30, 2020 at 10:09 PM Bird, Tim <Tim.Bird at sony.com> wrote:

>
>
> > -----Original Message-----
> > From: Fuego <fuego-bounces at lists.linuxfoundation.org> On Behalf Of
> Laszlo Sitzer
> >
> > Hello!
> >
> > I ran into this problem that "ftc add-nodes -b bbb" (or any other board)
> fails with a cryptic python unicode/ascii encoding/decoding
> > exception. I think this is just masking the actual problem with Jenkins.
> >
> > ```
> > # ftc add-nodes -b bbb
> > Traceback (most recent call last):
> >   File "/usr/local/bin/ftc", line 5625, in <module>
> >     main()
> >   File "/usr/local/bin/ftc", line 5553, in main
> >     sys.exit(str(e) + '\n' + command_help['add-nodes'][1])
> > UnicodeEncodeError: 'ascii' codec can't encode character u'\xa0' in
> position 4199: ordinal not in range(128)
>
> First - thanks very much for the bug report!
>
> This looks to be an issue with the str(e).  It would probably be helpful
> to see what that
> exception is from the server.  You might try moving the do_add_nodes()
> outside the try/except block
> (or just changing the generic 'except Exception as e:' to something
> specific that is unlikely for this
> case like: 'except ArithmeticError as e:'
>
> Then the exception should bubble up and maybe print something useful.
>
> (Independent of what the real error is, that str(e) should be changed to
> something
> that handles Unicode.  This is likely from some message from the server
> with a non-ascii
> char in it.
> >
> > ```
> >
> >
> > I am executing this inside of the fuego-container that I have built from
> current master branches of fuego.git and fuego-core.git repos
> > and started using ./start.sh.
> >
> > I did some printf debugging on the python side and noticed the HTTP
> request is answered with HTTP 405.
> > When looking at /var/log/jenkins/jenkins.log I can see warnings/errors
> (ambiguous) and java exceptions.
> >
> > ```
> > WARNING: Error while serving
> http://localhost:8090/fuego/computer/doCreateItem
> > java.lang.reflect.InvocationTargetException
> > ```
> >
> > Anyone ran into this before?
>
> I haven't seen it before, but it does look like the Unicode error is
> masking whatever the
> real issue is.
>  -- Tim
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxfoundation.org/pipermail/fuego/attachments/20200701/ca74c230/attachment.html>


More information about the Fuego mailing list