Giter Club home page Giter Club logo

addon-appmarket's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

addon-appmarket's Issues

appmarket update: wrong number of arguments

i am trying to update an appliance's metadata stored in a JSON file but somehow it does not work, see below:

$ appmarket update debian7.json -u username -p password

/usr/lib/one/ruby/oneapps/market/appmarket_client.rb:105:in `update_appliance': wrong number of arguments (1 for 2) (ArgumentError)
    from /usr/bin/appmarket:251:in `block (2 levels) in <main>'
    from /var/lib/gems/1.9.1/gems/opennebula-cli-4.4.0/lib/command_parser.rb:449:in `call'
    from /var/lib/gems/1.9.1/gems/opennebula-cli-4.4.0/lib/command_parser.rb:449:in `run'
    from /var/lib/gems/1.9.1/gems/opennebula-cli-4.4.0/lib/command_parser.rb:76:in `initialize'
    from /usr/bin/appmarket:101:in `new'
    from /usr/bin/appmarket:101:in `<main>'

appmarket 1.9.80 package not working on debian 7

Installed the appmarket and appmarket-worker v1.9.80 official OpenNebula packages on Debian 7 as per the instructions, the appmarket web interface works fine but the appmarket command line does not work, here is what happens when I try to run it:

/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- command_parser (LoadError)
    from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /usr/bin/appmarket:34:in `<main>'

I have installed the ruby1.9.1, ruby1.9.1-dev and libruby1.9.1 Debian packages. Am I missing anything here?

updating user through web interface fails: can't convert String into Integer

trying to update any fields (Organization, Firstname, etc) of the admin user through the web interface does not work. as soon as i click on the "Update User" button I get displayed some HTML code, i have pasted here part of it which i think might help for debugging the issue:

  <div id="wrap">
    <div id="header">
      <img src="/__sinatra__/500.png" alt="application error" height="161" width="313" />
      <div id="summary">
        <h1><strong>TypeError</strong> at <strong>&#x2F;user&#x2F;530e1f546e9552200b000001
          </strong></h1>
        <h2>can&#x27;t convert String into Integer</h2>
        <ul>
          <li class="first"><strong>file:</strong> <code>
            user.rb</code></li>
          <li><strong>location:</strong> <code>[]
            </code></li>
          <li class="last"><strong>line:
            </strong> 148</li>
        </ul>
      </div>
      <div class="clear"></div>
    </div>

let me know if you need more details

Error starting appmarket first time one a clean install

CentOS 6.5 & ruby 1.8.7


/usr/lib/ruby/gems/1.8/gems/haml-4.0.5/lib/haml/parser.rb:86: warning: regexp has invalid interval
(DELEGATE):2:in settings': stack level too deep (SystemStackError) from (__DELEGATE__):2:insend'
from (DELEGATE):2:in settings' from (__DELEGATE__):2:insend'
from (DELEGATE):2:in settings' from (__DELEGATE__):2:insend'
from (DELEGATE):2:in settings' from (__DELEGATE__):2:insend'
from (DELEGATE):2:in settings' ... 2027 levels... from /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:929:inconfigure'
from (DELEGATE):2:in send' from (__DELEGATE__):2:inconfigure'

from /usr/lib/one/ruby/oneapps/market/controllers/appmarket-server.rb:49

Solution is to change appmarket-server.rb from:

if settings.respond_to? :public_folder
set :public_folder, File.join(File.dirname(FILE), '..', 'public')
else
set :public, File.join(File.dirname(FILE), '..', 'public')

end

to

set :public_folder, File.join(File.dirname(FILE), '..', 'public')

set :public, File.join(File.dirname(FILE), '..', 'public')

Memory leak in appmarket daemon

Hi,

We have been using the appmarket for a while now in our production environment, however we noticed that the appmarket daemon tends to grow with ~ 400MB of memory per day which eventually leads to the OOM killer to kick in.

If there is any interest from the developers i can provide atop logs.

CLI error messages are not friendly

The cli should parse the error and give something more friendly that this:

$ appmarket create ima.json -u default -p default
{
  "message": "KEY: publisher not allowed; SCHEMA: typeobjectpropertiesvisitstypenulldefault0statustypestringenuminitreadyconvertingdownloadingpublishingerrordefaultinitnametypestringrequiredtruesource_typetypestringenumovadescriptiontypestringrequiredtrueos-archtypestringdefaultx86_64opennebula_templatetypestringsourcetypestringformaturishort_descriptiontypestringrequiredtrueformattypestringenumrawvmdkqcow2vdidefaultrawos-idtypestringdefaultlogotypestringformaturidefault/img/logos/default.pngfilestypearrayitemstypeobjectpropertiesnametypestringtypetypestringenumOSCDROMDATABLOCKdefaultOSos-archtypestringdefaultx86_64formattypestringenumrawvmdkqcow2vdidefaultrawurltypestringformaturios-idtypestringdefaulthypervisortypestringenumVMWAREXENKVMalldefaultallsizetypestringrequiredtrueos-releasetypestringdefaultmd5typestringdev_prefixtypestringcompressiontypestringenumbz2gzipnonedefaultnonesha1typestringdrivertypestringos-releasetypestringdefaulthypervisortypestringenumVMWAREXENKVMalldefaultalltagstypearraydefaultitemstypestringversiontypestringdefault1.0downloadstypenulldefault0opennebula_versiontypestringdefaultallcatalogtypestringdefaultcommunity"
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.