Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UTF8 error ? #9

Open
golgoth777 opened this issue Aug 15, 2015 · 4 comments
Open

UTF8 error ? #9

golgoth777 opened this issue Aug 15, 2015 · 4 comments
Assignees
Labels
Milestone

Comments

@golgoth777
Copy link

Hello,

I use RundeckMonitor since a few monthes and appreciates this great tool.

Am facing an issue, after relocating my rundeck server, the RundeckMonitor couldn't start on my laptop :

2015-08-15 10:29:38,403 [main] ERROR c.g.s.rundeckmonitor.RundeckMonitor:main(53
7) - Rundeck Monitor startup error: org.rundeck.api.RundeckApiException: Failed
to read Rundeck response
at org.rundeck.api.parser.ParserHelper.loadDocument(ParserHelper.java:47
)
at org.rundeck.api.ApiCall$ParserHandler.handle(ApiCall.java:488)
at org.rundeck.api.ApiCall.execute(ApiCall.java:418)
at org.rundeck.api.ApiCall.get(ApiCall.java:173)
at org.rundeck.api.RundeckClient.getExecutions(RundeckClient.java:1600)
at com.github.sbugat.rundeckmonitor.RundeckMonitor.updateRundeckHistory(
RundeckMonitor.java:331)
at com.github.sbugat.rundeckmonitor.RundeckMonitor.(RundeckMonitor
.java:106)
at com.github.sbugat.rundeckmonitor.RundeckMonitor.main(RundeckMonitor.j
ava:524)
Caused by: org.dom4j.DocumentException: Invalid byte 2 of 3-byte UTF-8 sequence.
Nested exception: Invalid byte 2 of 3-byte UTF-8 sequence.
at org.dom4j.io.SAXReader.read(SAXReader.java:484)
at org.dom4j.io.SAXReader.read(SAXReader.java:343)
at org.rundeck.api.parser.ParserHelper.loadDocument(ParserHelper.java:45
)
... 7 common frames omitted

2015-08-15 10:31:10,227 [main] ERROR c.g.s.r.tools.SystemTools:exit(57) - RunDec
k Monitor exit with code 1

Is it the fact that my rundeck install uses UTF-8 instead of ASCII that produces this result ?
Has someone already faced this ?

Thx

@Sylvain-Bugat
Copy link
Owner

Hello,

it's a bug in the https://github.com/rundeck/rundeck-api-java-client, some non-ascii/UTF-8 character like é, è, à, etc. seems to cannot be decoded in the SAXReader used by the java Rundeck client.
Do you use any non-ascii character in your job definitions? How do your Rundeck installation uses UTF-8 instead of ASCII?

Rundeck Monitor get the 10 latest failed job by default and one or more of these execution contains some non-ascii characters.
The current workaround is to edit all jobs and replace non-ascii character by ascii one (you can export jobs to do a mass replace or to see with come grep command where are non-ascii characters) AND generate new 10 latest failed executions with a test command like unknowncmd.

@Sylvain-Bugat Sylvain-Bugat added this to the v2.1 milestone Aug 15, 2015
@Sylvain-Bugat Sylvain-Bugat self-assigned this Aug 15, 2015
@golgoth777
Copy link
Author

Merci pour le contournement.
Le 15 août 2015 11:58, "Sylvain Bugat" [email protected] a écrit :

Hello,

it's a bug in the https://github.com/rundeck/rundeck-api-java-client
http://rundeck-api-java-client, some non-ascii/UTF-8 character like é,
è, à, etc. seems to cannot be decoded in the SAXReader used by the java
Rundeck client.
Do you use any non-ascii character in your job definitions? How do your
Rundeck installation uses UTF-8 instead of ASCII?

Rundeck Monitor get the 10 latest failed job by default and one or more of
these execution contains some non-ascii characters.
The current workaround is to edit all jobs and replace non-ascii character
by ascii one (you can export jobs to do a mass replace or to see with come
grep command where are non-ascii characters) AND generate new 10 latest
failed executions with a test command like unknowncmd.


Reply to this email directly or view it on GitHub
#9 (comment)
.

@srininad
Copy link

Hello, I downloaded rundeck monitor and was trying to use it on rundeck 2.8 version on rhel7. I am getting following error.
[main] ERROR c.g.s.r.tools.SystemTools:exit(57) - RunDeck Monitor exit with code 2

and the export display throws

image

Could you please help

Thanks,
Srini

@Sylvain-Bugat
Copy link
Owner

Hello,
Please open a new issue with some response to theses questions.
Which desktop or window manager do you use on rhel 7.1? Does it have a system tray area?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants