Unable to lock/unlock images

Hi,

My system using ONE CE 6.2.0
I’m facing issue when try to lock/unlock images.

  • Error notification when lock image:
    grafik

  • Error notification when unlock image:
    grafik

  • Error log on /var/log/one/oned.log

Apr 28 16:17:13 h1 ruby: 2022-04-28 16:17:13 - ArgumentError - wrong number of arguments (1 for 0):
Apr 28 16:17:13 h1 ruby: /usr/lib/one/ruby/opennebula/lockable_ext.rb:77:in `unlock'
Apr 28 16:17:13 h1 ruby: /usr/lib/one/sunstone/models/OpenNebulaJSON/ImageJSON.rb:67:in `perform_action'
Apr 28 16:17:13 h1 ruby: /usr/lib/one/sunstone/models/SunstoneServer.rb:226:in `perform_action'
Apr 28 16:17:13 h1 ruby: /usr/lib/one/sunstone/sunstone-server.rb:1225:in `block in <main>'
Apr 28 16:17:13 h1 ruby: /usr/share/one/gems-dist/gems/sinatra-1.4.8/lib/sinatra/base.rb:1611:in `call'
Apr 28 16:17:13 h1 ruby: /usr/share/one/gems-dist/gems/sinatra-1.4.8/lib/sinatra/base.rb:1611:in `block in compile!'
Apr 28 16:17:13 h1 ruby: /usr/share/one/gems-dist/gems/sinatra-1.4.8/lib/sinatra/base.rb:975:in `[]'
Apr 28 16:17:13 h1 ruby: /usr/share/one/gems-dist/gems/sinatra-1.4.8/lib/sinatra/base.rb:975:in `block (3 levels) in route!'Apr 28 16:17:13 h1 ruby: /usr/share/one/gems-dist/gems/sinatra-1.4.8/lib/sinatra/base.rb:994:in `route_eval'
Apr 28 16:17:13 h1 ruby: /usr/share/one/gems-dist/gems/sinatra-1.4.8/lib/sinatra/base.rb:975:in `block (2 levels) in route!'Apr 28 16:17:13 h1 ruby: /usr/share/one/gems-dist/gems/sinatra-1.4.8/lib/sinatra/base.rb:1015:in `block in process_route'
Apr 28 16:17:13 h1 ruby: /usr/share/one/gems-dist/gems/sinatra-1.4.8/lib/sinatra/base.rb:1013:in `catch'
Apr 28 16:17:13 h1 ruby: /usr/share/one/gems-dist/gems/sinatra-1.4.8/lib/sinatra/base.rb:1013:in `process_route'
Apr 28 16:17:13 h1 ruby: /usr/share/one/gems-dist/gems/sinatra-1.4.8/lib/sinatra/base.rb:973:in `block in route!'
Apr 28 16:17:13 h1 ruby: /usr/share/one/gems-dist/gems/sinatra-1.4.8/lib/sinatra/base.rb:972:in `each'
Apr 28 16:17:13 h1 ruby: /usr/share/one/gems-dist/gems/sinatra-1.4.8/lib/sinatra/base.rb:972:in `route!'
Apr 28 16:17:13 h1 ruby: /usr/share/one/gems-dist/gems/sinatra-1.4.8/lib/sinatra/base.rb:1085:in `block in dispatch!'
Apr 28 16:17:13 h1 ruby: /usr/share/one/gems-dist/gems/sinatra-1.4.8/lib/sinatra/base.rb:1067:in `block in invoke'
Apr 28 16:17:13 h1 ruby: /usr/share/one/gems-dist/gems/sinatra-1.4.8/lib/sinatra/base.rb:1067:in `catch'
Apr 28 16:17:13 h1 ruby: /usr/share/one/gems-dist/gems/sinatra-1.4.8/lib/sinatra/base.rb:1067:in `invoke'
Apr 28 16:17:13 h1 ruby: /usr/share/one/gems-dist/gems/sinatra-1.4.8/lib/sinatra/base.rb:1082:in `dispatch!'
Apr 28 16:17:13 h1 ruby: /usr/share/one/gems-dist/gems/sinatra-1.4.8/lib/sinatra/base.rb:907:in `block in call!'
Apr 28 16:17:13 h1 ruby: /usr/share/one/gems-dist/gems/sinatra-1.4.8/lib/sinatra/base.rb:1067:in `block in invoke'
Apr 28 16:17:13 h1 ruby: /usr/share/one/gems-dist/gems/sinatra-1.4.8/lib/sinatra/base.rb:1067:in `catch'
Apr 28 16:17:13 h1 ruby: /usr/share/one/gems-dist/gems/sinatra-1.4.8/lib/sinatra/base.rb:1067:in `invoke'
Apr 28 16:17:13 h1 ruby: /usr/share/one/gems-dist/gems/sinatra-1.4.8/lib/sinatra/base.rb:907:in `call!'
Apr 28 16:17:13 h1 ruby: /usr/share/one/gems-dist/gems/sinatra-1.4.8/lib/sinatra/base.rb:895:in `call'
Apr 28 16:17:13 h1 ruby: /usr/share/one/gems-dist/gems/rack-1.6.13/lib/rack/commonlogger.rb:33:in `call'
Apr 28 16:17:13 h1 ruby: /usr/share/one/gems-dist/gems/sinatra-1.4.8/lib/sinatra/base.rb:219:in `call'
Apr 28 16:17:13 h1 ruby: /usr/share/one/gems-dist/gems/rack-1.6.13/lib/rack/deflater.rb:35:in `call'
Apr 28 16:17:13 h1 ruby: /usr/share/one/gems-dist/gems/rack-1.6.13/lib/rack/session/abstract/id.rb:252:in `context'
Apr 28 16:17:13 h1 ruby: /usr/share/one/gems-dist/gems/rack-1.6.13/lib/rack/session/abstract/id.rb:247:in `call'
Apr 28 16:17:13 h1 ruby: /usr/share/one/gems-dist/gems/rack-protection-1.5.5/lib/rack/protection/xss_header.rb:18:in `call'
Apr 28 16:17:13 h1 ruby: /usr/share/one/gems-dist/gems/rack-protection-1.5.5/lib/rack/protection/path_traversal.rb:16:in `call'
Apr 28 16:17:13 h1 ruby: /usr/share/one/gems-dist/gems/rack-protection-1.5.5/lib/rack/protection/json_csrf.rb:18:in `call'
Apr 28 16:17:13 h1 ruby: /usr/share/one/gems-dist/gems/rack-protection-1.5.5/lib/rack/protection/base.rb:49:in `call'
Apr 28 16:17:13 h1 ruby: /usr/share/one/gems-dist/gems/rack-protection-1.5.5/lib/rack/protection/base.rb:49:in `call'
Apr 28 16:17:13 h1 ruby: /usr/share/one/gems-dist/gems/rack-protection-1.5.5/lib/rack/protection/frame_options.rb:31:in `call'
Apr 28 16:17:13 h1 ruby: /usr/share/one/gems-dist/gems/rack-1.6.13/lib/rack/nulllogger.rb:9:in `call'
Apr 28 16:17:13 h1 ruby: /usr/share/one/gems-dist/gems/rack-1.6.13/lib/rack/head.rb:13:in `call'
Apr 28 16:17:13 h1 ruby: /usr/share/one/gems-dist/gems/rack-1.6.13/lib/rack/methodoverride.rb:22:in `call'
Apr 28 16:17:13 h1 ruby: /usr/share/one/gems-dist/gems/sinatra-1.4.8/lib/sinatra/base.rb:182:in `call'
Apr 28 16:17:13 h1 ruby: /usr/share/one/gems-dist/gems/sinatra-1.4.8/lib/sinatra/base.rb:2013:in `call'
Apr 28 16:17:13 h1 ruby: /usr/share/one/gems-dist/gems/sinatra-1.4.8/lib/sinatra/base.rb:1487:in `block in call'
Apr 28 16:17:13 h1 ruby: /usr/share/one/gems-dist/gems/sinatra-1.4.8/lib/sinatra/base.rb:1787:in `synchronize'
Apr 28 16:17:13 h1 ruby: /usr/share/one/gems-dist/gems/sinatra-1.4.8/lib/sinatra/base.rb:1487:in `call'
Apr 28 16:17:13 h1 ruby: /usr/share/one/gems-dist/gems/thin-1.8.1/lib/thin/connection.rb:86:in `block in pre_process'
Apr 28 16:17:13 h1 ruby: /usr/share/one/gems-dist/gems/thin-1.8.1/lib/thin/connection.rb:84:in `catch'
Apr 28 16:17:13 h1 ruby: /usr/share/one/gems-dist/gems/thin-1.8.1/lib/thin/connection.rb:84:in `pre_process'
Apr 28 16:17:13 h1 ruby: /usr/share/one/gems-dist/gems/thin-1.8.1/lib/thin/connection.rb:50:in `block in process'
Apr 28 16:17:13 h1 ruby: /usr/share/one/gems-dist/gems/eventmachine-1.2.7/lib/eventmachine.rb:1077:in `call'
Apr 28 16:17:13 h1 ruby: /usr/share/one/gems-dist/gems/eventmachine-1.2.7/lib/eventmachine.rb:1077:in `block in spawn_threadpool'

Anyone facing the same issue?

Best regards,
Harry S

Hello @Harry_Suryapambagya,

Do you get the same error using the CLI?

Best,
Álex.

Hi @ahuertas
No, using CLI I can successfully lock or unlock images.
This error just happen when using Sunstone UI.

Best regards,
Harry

Hello @Harry_Suryapambagya,

Thanks for confirming! Could you please try to reproduce the issue in the new 6.4.0 version and if it continues happening open a ticker here.

Best,
Álex.

1 Like