[one-users] NoMemory error in image upload. and Error in Image upload

Kumar Vaibhav kvaibhav at barc.gov.in
Tue Apr 17 05:19:17 PDT 2012


Hi,

Here is the log file for the error messages.

where should I set the PATh of the temporary file for dumping.

Regards,
Vaibhav




-------------- next part --------------
json (1.4.3)
rack (1.4.1, 1.1.0)
rack-test (0.5.4)
sequel (3.16.0)
sinatra (1.0)
sqlite3-ruby (1.2.4)



--------------------------------------
         Server configuration
--------------------------------------
{:vnc_proxy_path=>"/usr/share/one/noVNC/utils/websockify",
 :one_xmlrpc=>"http://localhost:2633/RPC2",
 :lang=>"en_US",
 :vnc_proxy_cert=>nil,
 :core_auth=>"cipher",
 :auth=>"sunstone",
 :vnc_proxy_base_port=>29876,
 :host=>"0.0.0.0",
 :vnc_proxy_key=>nil,
 :vnc_proxy_support_wss=>false,
 :debug_level=>3,
 :port=>80}
[2012-04-17 14:45:46] INFO  WEBrick 1.3.1
[2012-04-17 14:45:46] INFO  ruby 1.8.7 (2011-06-30) [x86_64-linux]
[2012-04-17 14:45:46] INFO  WEBrick::HTTPServer#start: pid=2021 port=80
10.21.19.65 - - [17/Apr/2012:14:45:49 IST] "GET /datastore?timeout=true HTTP/1.1" 401 0
http://10.35.1.25/ -> /datastore?timeout=true
10.21.19.65 - - [17/Apr/2012:14:45:49 IST] "GET /login HTTP/1.1" 200 1987
http://10.35.1.25/ -> /login
10.21.19.65 - - [17/Apr/2012:14:45:54 IST] "POST /login HTTP/1.1" 204 0
http://10.35.1.25/login -> /login
10.21.19.65 - - [17/Apr/2012:14:45:54 IST] "GET / HTTP/1.1" 200 4277
http://10.35.1.25/login -> /
10.21.19.65 - - [17/Apr/2012:14:45:55 IST] "GET /vendor/noVNC/include/plain.css HTTP/1.1" 404 439
http://10.35.1.25/ -> /vendor/noVNC/include/plain.css



Oned.log when tried to load a 700MB CD image

I have chosen type CDROM, prefix hd, Bus IDE, driver raw

Tue Apr 17 17:36:09 2012 [ReM][D]: ImageAllocate method invoked
Tue Apr 17 17:36:09 2012 [IMG][E]: No PATH in template.
Tue Apr 17 17:36:09 2012 [ReM][E]: [ImageAllocate] Error allocating a new image. No PATH in template.
Tue Apr 17 17:36:09 2012 [ReM][D]: VirtualNetworkPoolInfo method invoked


when uploading big image file. 

This is the error I see in sunstone.log


10.21.19.65 - - [17/Apr/2012:17:39:07 IST] "POST /upload?img=%7B%22image%22%3A%7B%22NAME%22%3A%22XP-64+CD+Image%22%2C%22DESCRIPTION%22%3A%22vcxcvcx%22%2C%22TYPE%22%3A%22CDROM%22%2C%22PERSISTENT%22%3A%22NO%22%2C%22DEV_PREFIX%22%3A%22hd%22%2C%22BUS%22%3A%22ide%22%2C%22DRIVER%22%3A%22qcow2%22%7D%2C%22ds_id%22%3A%22100%22%7D&file=SL60.qcow.img&qqfile=SL60.qcow.img HTTP/1.1" 200 0
http://megh.barc.gov.in/ -> /upload?img=%7B%22image%22%3A%7B%22NAME%22%3A%22XP-64+CD+Image%22%2C%22DESCRIPTION%22%3A%22vcxcvcx%22%2C%22TYPE%22%3A%22CDROM%22%2C%22PERSISTENT%22%3A%22NO%22%2C%22DEV_PREFIX%22%3A%22hd%22%2C%22BUS%22%3A%22ide%22%2C%22DRIVER%22%3A%22qcow2%22%7D%2C%22ds_id%22%3A%22100%22%7D&file=SL60.qcow.img&qqfile=SL60.qcow.img
[2012-04-17 17:45:34] ERROR NoMemoryError: failed to allocate memory
        /usr/lib/ruby/1.8/webrick/httprequest.rb:125:in `<<'
        /usr/lib/ruby/1.8/webrick/httprequest.rb:125:in `body'
        /usr/lib/ruby/1.8/webrick/httprequest.rb:282:in `call'
        /usr/lib/ruby/1.8/webrick/httprequest.rb:282:in `read_body'
        /usr/lib/ruby/1.8/webrick/httprequest.rb:126:in `body'
        /usr/lib/ruby/gems/1.8/gems/rack-1.4.1/lib/rack/handler/webrick.rb:37:in `service'
        /usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
        /usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
        /usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
        /usr/lib/ruby/1.8/webrick/server.rb:162:in `start'
        /usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
        /usr/lib/ruby/1.8/webrick/server.rb:95:in `start'
        /usr/lib/ruby/1.8/webrick/server.rb:92:in `each'
        /usr/lib/ruby/1.8/webrick/server.rb:92:in `start'
        /usr/lib/ruby/1.8/webrick/server.rb:23:in `start'
        /usr/lib/ruby/1.8/webrick/server.rb:82:in `start'
        /usr/lib/ruby/gems/1.8/gems/rack-1.4.1/lib/rack/handler/webrick.rb:13:in `run'
        /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:946:in `run!'
        /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/main.rb:25
        /usr/lib/one/sunstone/sunstone-server.rb:408

core file size          (blocks, -c) 0
data seg size           (kbytes, -d) unlimited
scheduling priority             (-e) 0
file size               (blocks, -f) unlimited
pending signals                 (-i) 7822
max locked memory       (kbytes, -l) unlimited
max memory size         (kbytes, -m) unlimited
open files                      (-n) 1024
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
real-time priority              (-r) 0
stack size              (kbytes, -s) unlimited
cpu time               (seconds, -t) unlimited
max user processes              (-u) 1024
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited


More information about the Users mailing list