It appears to yield the same level of debugging.

Here is what we are finding

stat("/usr/local/lib/ruby/1.8/rexml/document.rb", {st_mode=S_IFREG|0644, st_size=7619, ...}) = 0
open("/usr/local/lib/ruby/1.8/rexml/document.rb", O_RDONLY) = 7
fstat(7, {st_mode=S_IFREG|0644, st_size=7619, ...}) = 0
close(7)                                = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=3543, ...}) = 0
write(2, "131.225.169.96 - - [18/Oct/2011 "..., 78131.225.169.96 - - [18/Oct/2011 17:01:28] "POST /login HTTP/1.1" 500 - 0.1337
) = 78
read(8, 0x7fffb39305f0, 16384) = -1 EAGAIN (Resource temporarily unavailable)
select(9, [4 6 8], [8], [], {0, 90000}) = 1 (out [8], left {0, 90000})
writev(8, [{"HTTP/1.1 500 Internal Server Err"..., 165}, {"", 0}], 2) = 165


On 10/18/11 4:51 PM, Daniel Molina wrote:
I think the problem is in the following section of the sunstone-server.rb
        begin
            result = cloud_auth.auth(request.env, params)
        rescue Exception => e
            error 500, e.message
        end

the exception is captured and is not shown in the login screen, instead you get a "OpenNebula is not running" error.

In order to debug, can you add the following line to find out what is the cause:
        begin
            result = cloud_auth.auth(request.env, params)
        rescue Exception => e
            STDERR.puts "DEBUGGING #{e.message}"
            error 500, e.message
        end

In next versions we will add a debug flag in order to ease this task.

On 18 October 2011 22:47, Faarooq Lowe <l...@fnal.gov <mailto:l...@fnal.gov>> wrote:

    Hi Daniel,

    Here is some additional information.

    I started the sunstone-server once directly by referencing the
    ruby script and used strace

    Here is output from that when I attempted to login using x509
    credentials≄

    write(2, "131.225.80.86 - - [18/Oct/2011 1"..., 77131.225.80.86 -
    - [18/Oct/2011 14:39:50] "POST /login HTTP/1.1" 500 - 0.1351
    ) = 77
    read(7, 0x7fff8c09ecc0, 16384)          = -1 EAGAIN (Resource
    temporarily unavailable)


    On 10/18/11 11:51 AM, Daniel Molina wrote:
    Hi,

    On 18 October 2011 18:24, Faarooq Lowe <l...@fnal.gov
    <mailto:l...@fnal.gov>> wrote:

        We are running OpenNebula 3.0 with Sunstone.  I am able to
        use command-line launch VMs and to see host, VMs, users, etc.

        The sunstone server did launch successfully, however when I
        attempt to login to I get the following message:  "OpenNebula
        is not running"

        The initial pages come up just fine.  We just are unable to
        log into OpenNebula.  We are using x509 authentication.


    Would you mind to send us the content of the following files:
    oned.conf (AUTH_MAD section), sunstone-server.conf, oned.log and
    sunstone.log; after a login request from sunstone?.

    Regards

-- Daniel Molina
    Project Engineer
    OpenNebula - The Open Source Toolkit for Cloud Computing
    www.OpenNebula.org <http://www.OpenNebula.org> | @dmamolina




--
Daniel Molina
Project Engineer
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org <http://www.OpenNebula.org> | @dmamolina

_______________________________________________
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org

Reply via email to