Can't check logs

Hello,

In some instances, when I click on “Log” I receive this error:
"Some ad-block extensions are known to filter the '/log?id=' URL"
and, down on the right, appears this message:
"It appears there was a server exception. Please check server's log".

In file /var/log/one/oned.log appears these message:

Fri Nov 20 10:03:40 2020 [Z0][ReM][D]: Req:4112 UID:0 IP:127.0.0.1 one.vm.info invoked , 5682, false
Fri Nov 20 10:03:40 2020 [Z0][ReM][D]: Req:4112 UID:0 one.vm.info result SUCCESS, “5682<UI…”

And in /var/log/one/sunstone.log appears:

Fri Nov 20 10:03:40 2020 [I]: 192.168.10.25 - - [20/Nov/2020:10:03:40 +0100] "GET /vm/5682/log?id=5682&csrftoken=842835bc04ce673bff74995494b67b87661ae0700263da5096c73e9f833629d7 " 500 - 0.4060

These error is appearing with differents templates and not always…

Thanks.

Now, I have checked in /var/log/httpd/error_log these error:
App 41444 stderr: 2020-11-24 09:25:57 - Encoding::InvalidByteSequenceError - “\xC3” on US-ASCII:
App 41444 stderr: /usr/lib/one/sunstone/models/SunstoneServer.rb:282:in encode' App 41444 stderr: /usr/lib/one/sunstone/models/SunstoneServer.rb:282:in to_json’
App 41444 stderr: /usr/lib/one/sunstone/models/SunstoneServer.rb:282:in get_vm_log' App 41444 stderr: /usr/lib/one/sunstone/sunstone-server.rb:770:in block in <top (required)>’
App 41444 stderr: /usr/share/one/gems/gems/sinatra-1.4.8/lib/sinatra/base.rb:1611:in call' App 41444 stderr: /usr/share/one/gems/gems/sinatra-1.4.8/lib/sinatra/base.rb:1611:in block in compile!’
App 41444 stderr: /usr/share/one/gems/gems/sinatra-1.4.8/lib/sinatra/base.rb:975:in []' App 41444 stderr: /usr/share/one/gems/gems/sinatra-1.4.8/lib/sinatra/base.rb:975:in block (3 levels) in route!’
App 41444 stderr: /usr/share/one/gems/gems/sinatra-1.4.8/lib/sinatra/base.rb:994:in route_eval' App 41444 stderr: /usr/share/one/gems/gems/sinatra-1.4.8/lib/sinatra/base.rb:975:in block (2 levels) in route!’
App 41444 stderr: /usr/share/one/gems/gems/sinatra-1.4.8/lib/sinatra/base.rb:1015:in block in process_route' App 41444 stderr: /usr/share/one/gems/gems/sinatra-1.4.8/lib/sinatra/base.rb:1013:in catch’
App 41444 stderr: /usr/share/one/gems/gems/sinatra-1.4.8/lib/sinatra/base.rb:1013:in process_route' App 41444 stderr: /usr/share/one/gems/gems/sinatra-1.4.8/lib/sinatra/base.rb:973:in block in route!’
App 41444 stderr: /usr/share/one/gems/gems/sinatra-1.4.8/lib/sinatra/base.rb:972:in each' App 41444 stderr: /usr/share/one/gems/gems/sinatra-1.4.8/lib/sinatra/base.rb:972:in route!’
App 41444 stderr: /usr/share/one/gems/gems/sinatra-1.4.8/lib/sinatra/base.rb:1085:in block in dispatch!' App 41444 stderr: /usr/share/one/gems/gems/sinatra-1.4.8/lib/sinatra/base.rb:1067:in block in invoke’
App 41444 stderr: /usr/share/one/gems/gems/sinatra-1.4.8/lib/sinatra/base.rb:1067:in catch' App 41444 stderr: /usr/share/one/gems/gems/sinatra-1.4.8/lib/sinatra/base.rb:1067:in invoke’
App 41444 stderr: /usr/share/one/gems/gems/sinatra-1.4.8/lib/sinatra/base.rb:1082:in dispatch!' App 41444 stderr: /usr/share/one/gems/gems/sinatra-1.4.8/lib/sinatra/base.rb:907:in block in call!’
App 41444 stderr: /usr/share/one/gems/gems/sinatra-1.4.8/lib/sinatra/base.rb:1067:in block in invoke' App 41444 stderr: /usr/share/one/gems/gems/sinatra-1.4.8/lib/sinatra/base.rb:1067:in catch’
App 41444 stderr: /usr/share/one/gems/gems/sinatra-1.4.8/lib/sinatra/base.rb:1067:in invoke' App 41444 stderr: /usr/share/one/gems/gems/sinatra-1.4.8/lib/sinatra/base.rb:907:in call!’
App 41444 stderr: /usr/share/one/gems/gems/sinatra-1.4.8/lib/sinatra/base.rb:895:in call' App 41444 stderr: /usr/share/gems/gems/rack-1.6.12/lib/rack/commonlogger.rb:33:in call’
App 41444 stderr: /usr/share/one/gems/gems/sinatra-1.4.8/lib/sinatra/base.rb:219:in call' App 41444 stderr: /usr/share/gems/gems/rack-1.6.12/lib/rack/deflater.rb:35:in call’
App 41444 stderr: /usr/share/gems/gems/rack-1.6.12/lib/rack/session/abstract/id.rb:252:in context' App 41444 stderr: /usr/share/gems/gems/rack-1.6.12/lib/rack/session/abstract/id.rb:247:in call’
App 41444 stderr: /usr/share/one/gems/gems/rack-protection-1.5.5/lib/rack/protection/xss_header.rb:18:in call' App 41444 stderr: /usr/share/one/gems/gems/rack-protection-1.5.5/lib/rack/protection/path_traversal.rb:16:in call’
App 41444 stderr: /usr/share/one/gems/gems/rack-protection-1.5.5/lib/rack/protection/json_csrf.rb:18:in call' App 41444 stderr: /usr/share/one/gems/gems/rack-protection-1.5.5/lib/rack/protection/base.rb:49:in call’
App 41444 stderr: /usr/share/one/gems/gems/rack-protection-1.5.5/lib/rack/protection/base.rb:49:in call' App 41444 stderr: /usr/share/one/gems/gems/rack-protection-1.5.5/lib/rack/protection/frame_options.rb:31:in call’
App 41444 stderr: /usr/share/gems/gems/rack-1.6.12/lib/rack/nulllogger.rb:9:in call' App 41444 stderr: /usr/share/gems/gems/rack-1.6.12/lib/rack/head.rb:13:in call' App 41444 stderr: /usr/share/gems/gems/rack-1.6.12/lib/rack/methodoverride.rb:22:in call’
App 41444 stderr: /usr/share/one/gems/gems/sinatra-1.4.8/lib/sinatra/base.rb:182:in call' App 41444 stderr: /usr/share/one/gems/gems/sinatra-1.4.8/lib/sinatra/base.rb:2013:in call’
App 41444 stderr: /usr/share/one/gems/gems/sinatra-1.4.8/lib/sinatra/base.rb:1487:in block in call' App 41444 stderr: /usr/share/one/gems/gems/sinatra-1.4.8/lib/sinatra/base.rb:1787:in synchronize’
App 41444 stderr: /usr/share/one/gems/gems/sinatra-1.4.8/lib/sinatra/base.rb:1487:in call' App 41444 stderr: /usr/share/passenger/phusion_passenger/rack/thread_handler_extension.rb:74:in process_request’
App 41444 stderr: /usr/share/passenger/phusion_passenger/request_handler/thread_handler.rb:141:in accept_and_process_next_request' App 41444 stderr: /usr/share/passenger/phusion_passenger/request_handler/thread_handler.rb:109:in main_loop’
App 41444 stderr: /usr/share/passenger/phu
App 41444 stderr: sion_passenger/request_handler.rb:455:in `block (3 levels) in start_threads’

(I’m using Passenger because Sunstone daemon fell some time to time)

Any idea?

Thanks.

I attach “onevm show -x” output
5682.txt (13.7 KB)

All help will be belcome

Thaks.

Hi,

after some tests, I have discovered the problem. This is caused by a message in Spanish that contains a word with accents (“Operación”) when user tries to attach a IDE volatil disk… and, of course, system locales are defined as “es_ES@utf-8” (and, as I told yesterday, system is running Passenger RackApp). After changing locales to en_GB@utf-8, message returned during attaching an IDE volaltil disk, has not yet contains an accent.

If you have an VM with the same problem, you can remove the line with accents in /var/log/one/$id.log and you could get its logs again.

Bye!