<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    It worked after I changed the permissions for sunstone to oneadmin
    user , the following is what I observed.<br>
    <br>
    king@frontend:/$ ls -lrt /var/log/one/<br>
    total 1392<br>
    -rw-r--r-- 1 root     root      25601 2011-04-06 01:10 sunstone.log<br>
    -rw-r--r-- 1 oneadmin oneadmin 606478 2011-04-06 06:34 sched.log<br>
    -rw------- 1 oneadmin oneadmin 348766 2011-04-06 06:34
    one_xmlrpc.log<br>
    -rw-r--r-- 1 oneadmin oneadmin 421791 2011-04-06 06:34 oned.log<br>
    <br>
    While I understand the permission issue, I am puzzled about what
    went wrong with permissions of sunstone.log,  <br>
    <br>
    touch /var/log/one/test works without any issues. <br>
    <br>
    I have used 2.2 .deb files in the express install script.<br>
    <br>
    Regards,<br>
    Kinglabs<br>
    <br>
    On 04/06/2011 03:06 PM, Jaime Melis wrote:
    <blockquote
      cite="mid:BANLkTi=xPfQHpWt1rJs2Ls6Fs2RQOo3Ayg@mail.gmail.com"
      type="cite">Hello,
      <div><br>
      </div>
      <div>I forgot to mention that you need to set the ONE_AUTH
        environment variable:</div>
      <div><a moz-do-not-send="true"
          href="http://opennebula.org/documentation:rel2.2:cg#opennebula_users">http://opennebula.org/documentation:rel2.2:cg#opennebula_users</a></div>
      <div><br>
      </div>
      <div>Regards,</div>
      <div>Jaime<br>
        <br>
        <div class="gmail_quote">On Wed, Apr 6, 2011 at 10:44 AM, Jaime
          Melis <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:jmelis@opennebula.org">jmelis@opennebula.org</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
            0.8ex; border-left: 1px solid rgb(204, 204, 204);
            padding-left: 1ex;">Hi,
            <div><br>
            </div>
            <div>It seems that you don't have write permissions in
              /var/log/one, could you try the following?</div>
            <div>touch /var/log/one/test</div>
            <div>If that's the problem try to fix it with chown or
              chmod.</div>
            <div><br>
            </div>
            <div>However, you shouldn't be having that problem, how have
              you installed OpenNebula? what package and what distro?</div>
            <div><br>
            </div>
            <div>Regards,</div>
            <div>Jaime</div>
            <div><br>
              <div class="gmail_quote">
                <div>
                  <div class="h5">
                    On Wed, Apr 6, 2011 at 7:12 AM, KING LABS <span
                      dir="ltr"><<a moz-do-not-send="true"
                        href="http://kinglabs.in" target="_blank">kinglabs.in</a>@<a
                        moz-do-not-send="true" href="http://gmail.com"
                        target="_blank">gmail.com</a>></span> wrote:<br>
                  </div>
                </div>
                <blockquote class="gmail_quote" style="margin: 0pt 0pt
                  0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204);
                  padding-left: 1ex;">
                  <div>
                    <div class="h5">
                      Hi ,<br>
                      <br>
                      I have been trying to install and configure 2.2
                      with Sunstone. I unable to login into the sunstone
                      . The details of the error are as follows when I
                      log in as a normal user on the frontend.<br>
                      <br>
                      Also when i try while logged in as oneadmin I get
                      <br>
                      <br>
                      oneadmin@frontend:~$ sunstone-server start<br>
                      /usr/bin/sunstone-server: line 70:
                      /var/log/one/sunstone.log: Permission denied<br>
                      sunstone-server started<br>
                      oneadmin@frontend:~$ <br>
                      <br>
                      <br>
                      Please correct me if I am missing anything.<br>
                      <br>
                      <br>
                      <br>
                      <br>
                      <br>
                      <br>
                      <br>
-------------------------------------------------------------------------------------------------------------------------------------------------------------<br>
                      <br>
                      <br>
                      <br>
                      RuntimeError - ONE_AUTH file not present:<br>
                       /usr/lib/one/ruby/OpenNebula.rb:93:in
                      `initialize'<br>
                       /usr/lib/one/sunstone/models/SunstoneServer.rb:51:in
                      `new'<br>
                       /usr/lib/one/sunstone/models/SunstoneServer.rb:51:in
                      `authorize'<br>
                       /usr/lib/one/sunstone/sunstone-server.rb:48:in
                      `build_session'<br>
                       /usr/lib/one/sunstone/sunstone-server.rb:120:in
                      `POST /login'<br>
                       /var/lib/gems/1.8/gems/sinatra-1.2.1/lib/sinatra/base.rb:1125:in
                      `call'<br>
                       /var/lib/gems/1.8/gems/sinatra-1.2.1/lib/sinatra/base.rb:1125:in
                      `compile!'<br>
                       /var/lib/gems/1.8/gems/sinatra-1.2.1/lib/sinatra/base.rb:709:in
                      `instance_eval'<br>
                       /var/lib/gems/1.8/gems/sinatra-1.2.1/lib/sinatra/base.rb:709:in
                      `route_eval'<br>
                       /var/lib/gems/1.8/gems/sinatra-1.2.1/lib/sinatra/base.rb:693:in
                      `route!'<br>
                       /var/lib/gems/1.8/gems/sinatra-1.2.1/lib/sinatra/base.rb:741:in
                      `process_route'<br>
                       /var/lib/gems/1.8/gems/sinatra-1.2.1/lib/sinatra/base.rb:738:in
                      `catch'<br>
                       /var/lib/gems/1.8/gems/sinatra-1.2.1/lib/sinatra/base.rb:738:in
                      `process_route'<br>
                       /var/lib/gems/1.8/gems/sinatra-1.2.1/lib/sinatra/base.rb:692:in
                      `route!'<br>
                       /var/lib/gems/1.8/gems/sinatra-1.2.1/lib/sinatra/base.rb:691:in
                      `each'<br>
                       /var/lib/gems/1.8/gems/sinatra-1.2.1/lib/sinatra/base.rb:691:in
                      `route!'<br>
                       /var/lib/gems/1.8/gems/sinatra-1.2.1/lib/sinatra/base.rb:826:in
                      `dispatch!'<br>
                       /var/lib/gems/1.8/gems/sinatra-1.2.1/lib/sinatra/base.rb:619:in
                      `call!'<br>
                       /var/lib/gems/1.8/gems/sinatra-1.2.1/lib/sinatra/base.rb:791:in
                      `instance_eval'<br>
                       /var/lib/gems/1.8/gems/sinatra-1.2.1/lib/sinatra/base.rb:791:in
                      `invoke'<br>
                       /var/lib/gems/1.8/gems/sinatra-1.2.1/lib/sinatra/base.rb:791:in
                      `catch'<br>
                       /var/lib/gems/1.8/gems/sinatra-1.2.1/lib/sinatra/base.rb:791:in
                      `invoke'<br>
                       /var/lib/gems/1.8/gems/sinatra-1.2.1/lib/sinatra/base.rb:619:in
                      `call!'<br>
                       /var/lib/gems/1.8/gems/sinatra-1.2.1/lib/sinatra/base.rb:604:in
                      `call'<br>
                       /var/lib/gems/1.8/gems/rack-1.2.2/lib/rack/session/abstract/id.rb:63:in
                      `context'<br>
                       /var/lib/gems/1.8/gems/rack-1.2.2/lib/rack/session/abstract/id.rb:58:in
                      `call'<br>
                       /var/lib/gems/1.8/gems/sinatra-1.2.1/lib/sinatra/showexceptions.rb:21:in
                      `call'<br>
                       /var/lib/gems/1.8/gems/rack-1.2.2/lib/rack/methodoverride.rb:24:in
                      `call'<br>
                       /var/lib/gems/1.8/gems/rack-1.2.2/lib/rack/commonlogger.rb:18:in
                      `call'<br>
                       /var/lib/gems/1.8/gems/sinatra-1.2.1/lib/sinatra/base.rb:1245:in
                      `call'<br>
                       /var/lib/gems/1.8/gems/sinatra-1.2.1/lib/sinatra/base.rb:1276:in
                      `synchronize'<br>
                       /var/lib/gems/1.8/gems/sinatra-1.2.1/lib/sinatra/base.rb:1245:in
                      `call'<br>
                       /var/lib/gems/1.8/gems/rack-1.2.2/lib/rack/lint.rb:48:in
                      `_call'<br>
                       /var/lib/gems/1.8/gems/rack-1.2.2/lib/rack/lint.rb:36:in
                      `call'<br>
                       /var/lib/gems/1.8/gems/rack-1.2.2/lib/rack/showexceptions.rb:24:in
                      `call'<br>
                       /var/lib/gems/1.8/gems/rack-1.2.2/lib/rack/commonlogger.rb:18:in
                      `call'<br>
                       /usr/lib/ruby/1.8/rack/content_length.rb:13:in
                      `call'<br>
                       /usr/lib/ruby/1.8/rack/chunked.rb:15:in `call'<br>
                       /usr/lib/ruby/1.8/thin/connection.rb:76:in
                      `pre_process'<br>
                       /usr/lib/ruby/1.8/thin/connection.rb:74:in
                      `catch'<br>
                       /usr/lib/ruby/1.8/thin/connection.rb:74:in
                      `pre_process'<br>
                       /usr/lib/ruby/1.8/thin/connection.rb:57:in
                      `process'<br>
                       /usr/lib/ruby/1.8/thin/connection.rb:42:in
                      `receive_data'<br>
                       /usr/lib/ruby/1.8/eventmachine.rb:240:in
                      `run_machine'<br>
                       /usr/lib/ruby/1.8/eventmachine.rb:240:in `run'<br>
                       /usr/lib/ruby/1.8/thin/backends/base.rb:57:in
                      `start'<br>
                       /usr/lib/ruby/1.8/thin/server.rb:156:in `start'<br>
                       /usr/lib/ruby/1.8/rack/handler/thin.rb:14:in
                      `run'<br>
                       /usr/lib/ruby/1.8/rack/server.rb:155:in `start'<br>
                       /usr/lib/ruby/1.8/rack/server.rb:83:in `start'<br>
                       /usr/bin/rackup:4<br>
                      127.0.0.1 - - [06/Apr/2011 01:07:05] "POST /login
                      HTTP/1.1" 500 138892 0.0876<br>
                      127.0.0.1 - - [06/Apr/2011 01:07:05] "POST /login
                      HTTP/1.1" 500 138892 0.0885<br>
                      ^C<br>
                      king@frontend:~$ <br>
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------<br>
                      <br>
                    </div>
                  </div>
                  _______________________________________________<br>
                  Users mailing list<br>
                  <a moz-do-not-send="true"
                    href="mailto:Users@lists.opennebula.org"
                    target="_blank">Users@lists.opennebula.org</a><br>
                  <a moz-do-not-send="true"
                    href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org"
                    target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
                  <br>
                </blockquote>
              </div>
              <br>
            </div>
            <br clear="all">
            <br>
            -- <br>
            Jaime Melis, Cloud Technology Engineer/Researcher<br>
            Major Contributor<br>
            OpenNebula - The Open Source Toolkit for Cloud Computing<br>
            <a moz-do-not-send="true" href="http://www.OpenNebula.org"
              target="_blank">www.OpenNebula.org</a> | <a
              moz-do-not-send="true" href="mailto:jmelis@opennebula.org"
              target="_blank">jmelis@opennebula.org</a><br>
          </blockquote>
        </div>
        <br>
        <br clear="all">
        <br>
        -- <br>
        Jaime Melis, Cloud Technology Engineer/Researcher<br>
        Major Contributor<br>
        OpenNebula - The Open Source Toolkit for Cloud Computing<br>
        <a moz-do-not-send="true" href="http://www.OpenNebula.org"
          target="_blank">www.OpenNebula.org</a> | <a
          moz-do-not-send="true" href="mailto:jmelis@opennebula.org"
          target="_blank">jmelis@opennebula.org</a><br>
      </div>
    </blockquote>
    <br>
  </body>
</html>