[one-users] Sunstone Looping Login Page with Apache2+Passenger

Mohammad Fazli Ahmat Jalaluddin fazli.jalaluddin at gmail.com
Tue Sep 3 01:56:54 PDT 2013


Thank you


On Mon, Sep 2, 2013 at 10:13 PM, Daniel Molina <dmolina at opennebula.org>wrote:

> Hi,
>
>
> On 28 August 2013 10:26, Mohammad Fazli Ahmat Jalaluddin <
> fazli.jalaluddin at gmail.com> wrote:
>
>> Sunstone.log:
>>
>> Wed Aug 28 16:23:48 2013 [I]: 192.168.113.2 - - [28/Aug/2013 16:23:48]
>> "GET /user?timeout=false " 200 1185 0.0025
>> Wed Aug 28 16:23:48 2013 [I]: 192.168.113.2 - - [28/Aug/2013 16:23:48]
>> "GET /group?timeout=false " 200 752 0.0024
>> Wed Aug 28 16:23:48 2013 [I]: 192.168.113.2 - - [28/Aug/2013 16:23:48]
>> "GET /acl?timeout=false " 200 541 0.0025
>> Wed Aug 28 16:23:48 2013 [I]: 192.168.113.2 - - [28/Aug/2013 16:23:48]
>> "GET /vm?timeout=false " 200 22 0.0027
>> Wed Aug 28 16:23:48 2013 [I]: 192.168.113.2 - - [28/Aug/2013 16:23:48]
>> "GET /image?timeout=true " 200 9533 0.0066
>> Wed Aug 28 16:23:48 2013 [I]: 192.168.113.2 - - [28/Aug/2013 16:23:48]
>> "GET /host?timeout=true " 200 1126 0.0030
>> Wed Aug 28 16:23:48 2013 [I]: 192.168.113.2 - - [28/Aug/2013 16:23:48]
>> "GET /vnet?timeout=true " 401 - 0.0009
>> Wed Aug 28 16:23:48 2013 [I]: 192.168.113.2 - - [28/Aug/2013 16:23:48]
>> "GET /cluster?timeout=true " 401 - 0.0012
>> Wed Aug 28 16:23:48 2013 [I]: 192.168.113.2 - - [28/Aug/2013 16:23:48]
>> "GET /vmtemplate?timeout=false " 200 6253 0.0048
>> Wed Aug 28 16:23:48 2013 [I]: 192.168.113.2 - - [28/Aug/2013 16:23:48]
>> "GET /image?timeout=false " 401 - 0.0019
>> Wed Aug 28 16:23:48 2013 [I]: 192.168.113.2 - - [28/Aug/2013 16:23:48]
>> "GET /datastore?timeout=false " 401 - 0.0009
>> Wed Aug 28 16:23:48 2013 [I]: 192.168.113.2 - - [28/Aug/2013 16:23:48]
>> "GET /vnet?timeout=false " 401 - 0.0006
>> Wed Aug 28 16:23:48 2013 [I]: 192.168.113.2 - - [28/Aug/2013 16:23:48]
>> "GET /cluster?timeout=false " 200 27 0.0057
>> Wed Aug 28 16:23:48 2013 [I]: 192.168.113.2 - - [28/Aug/2013 16:23:48]
>> "GET /host?timeout=false " 401 - 0.0010
>>
>> etc/apache2/error.log:
>>
>> [Wed Aug 28 16:19:55 2013] [notice] caught SIGTERM, shutting down
>> [ 2013-08-28 16:19:56.1342 28055/7f349b166740
>> agents/Watchdog/Main.cpp:459 ]: Options: { 'analytics_log_user' =>
>> 'nobody', 'default_group' => 'nogroup', 'default_python' => 'python',
>> 'default_ruby' => '/usr/bin/ruby1.8', 'default_user' => 'nobody',
>> 'log_level' => '0', 'max_instances_per_app' => '1', 'max_pool_size' => '6',
>> 'passenger_root' => '/var/lib/gems/1.8/gems/passenger-4.0.14',
>> 'pool_idle_time' => '300', 'temp_dir' => '/tmp',
>> 'union_station_gateway_address' => 'gateway.unionstationapp.com',
>> 'union_station_gateway_port' => '443', 'user_switching' => 'true',
>> 'web_server_pid' => '28054', 'web_server_type' => 'apache',
>> 'web_server_worker_gid' => '33', 'web_server_worker_uid' => '33' }
>> [ 2013-08-28 16:19:56.1381 28058/7f25be2a6740
>> agents/HelperAgent/Main.cpp:602 ]: PassengerHelperAgent online, listening
>> at unix:/tmp/passenger.1.0.28054/generation-0/request
>> [ 2013-08-28 16:19:56.1426 28064/7faf3837c740
>> agents/LoggingAgent/Main.cpp:334 ]: PassengerLoggingAgent online, listening
>> at unix:/tmp/passenger.1.0.28054/generation-0/logging
>> [ 2013-08-28 16:19:56.1429 28055/7f349b166740
>> agents/Watchdog/Main.cpp:642 ]: All Phusion Passenger agents started!
>> [ 2013-08-28 16:19:56.1675 28080/7f8fbe18e740
>> agents/Watchdog/Main.cpp:459 ]: Options: { 'analytics_log_user' =>
>> 'nobody', 'default_group' => 'nogroup', 'default_python' => 'python',
>> 'default_ruby' => '/usr/bin/ruby1.8', 'default_user' => 'nobody',
>> 'log_level' => '0', 'max_instances_per_app' => '1', 'max_pool_size' => '6',
>> 'passenger_root' => '/var/lib/gems/1.8/gems/passenger-4.0.14',
>> 'pool_idle_time' => '300', 'temp_dir' => '/tmp',
>> 'union_station_gateway_address' => 'gateway.unionstationapp.com',
>> 'union_station_gateway_port' => '443', 'user_switching' => 'true',
>> 'web_server_pid' => '28075', 'web_server_type' => 'apache',
>> 'web_server_worker_gid' => '33', 'web_server_worker_uid' => '33' }
>> [ 2013-08-28 16:19:56.1703 28083/7ffd111a5740
>> agents/HelperAgent/Main.cpp:602 ]: PassengerHelperAgent online, listening
>> at unix:/tmp/passenger.1.0.28075/generation-0/request
>> [ 2013-08-28 16:19:56.1749 28089/7f8e1de7e740
>> agents/LoggingAgent/Main.cpp:334 ]: PassengerLoggingAgent online, listening
>> at unix:/tmp/passenger.1.0.28075/generation-0/logging
>> [ 2013-08-28 16:19:56.1751 28080/7f8fbe18e740
>> agents/Watchdog/Main.cpp:642 ]: All Phusion Passenger agents started!
>> [Wed Aug 28 16:19:56 2013] [notice] Apache/2.2.22 (Ubuntu)
>> PHP/5.3.10-1ubuntu3.7 with Suhosin-Patch Phusion_Passenger/4.0.14
>> configured -- resuming normal operations
>> [ 2013-08-28 16:20:26.4397 28083/7ffd110bf700 Pool2/Spawner.h:738 ]: [App
>> 28140 stdout]
>> [ 2013-08-28 16:20:26.5701 28083/7ffd1107e700 Pool2/Spawner.h:159 ]: [App
>> 28140 stderr] Requiring "OpenNebula" is deprecated. Use "opennebula".
>> [ 2013-08-28 16:20:26.5759 28083/7ffd110bf700 Pool2/Spawner.h:738 ]: [App
>> 28140 stdout] --------------------------------------
>> [ 2013-08-28 16:20:26.5760 28083/7ffd110bf700 Pool2/Spawner.h:738 ]: [App
>> 28140 stdout]          Server configuration
>> [ 2013-08-28 16:20:26.5760 28083/7ffd110bf700 Pool2/Spawner.h:738 ]: [App
>> 28140 stdout] --------------------------------------
>> [ 2013-08-28 16:20:26.5762 28083/7ffd110bf700 Pool2/Spawner.h:738 ]: [App
>> 28140 stdout] {:vnc_proxy_cert=>nil,
>> [ 2013-08-28 16:20:26.5762 28083/7ffd110bf700 Pool2/Spawner.h:738 ]: [App
>> 28140 stdout]  :memcache_namespace=>"opennebula.sunstone",
>> [ 2013-08-28 16:20:26.5762 28083/7ffd110bf700 Pool2/Spawner.h:738 ]: [App
>> 28140 stdout]  :routes=>["oneflow"],
>> [ 2013-08-28 16:20:26.5763 28083/7ffd110bf700 Pool2/Spawner.h:738 ]: [App
>> 28140 stdout]  :vnc_proxy_port=>29876,
>> [ 2013-08-28 16:20:26.5764 28083/7ffd110bf700 Pool2/Spawner.h:738 ]: [App
>> 28140 stdout]  :tmpdir=>"/var/tmp",
>> [ 2013-08-28 16:20:26.5764 28083/7ffd110bf700 Pool2/Spawner.h:738 ]: [App
>> 28140 stdout]  :vnc_proxy_key=>nil,
>> [ 2013-08-28 16:20:26.5765 28083/7ffd110bf700 Pool2/Spawner.h:738 ]: [App
>> 28140 stdout]  :host=>"127.0.0.1",
>> [ 2013-08-28 16:20:26.5765 28083/7ffd110bf700 Pool2/Spawner.h:738 ]: [App
>> 28140 stdout]  :oneflow_server=>"http://localhost:2474/",
>> [ 2013-08-28 16:20:26.5766 28083/7ffd110bf700 Pool2/Spawner.h:738 ]: [App
>> 28140 stdout]  :vnc_proxy_support_wss=>false,
>> [ 2013-08-28 16:20:26.5766 28083/7ffd110bf700 Pool2/Spawner.h:738 ]: [App
>> 28140 stdout]  :core_auth=>"cipher",
>> [ 2013-08-28 16:20:26.5767 28083/7ffd110bf700 Pool2/Spawner.h:738 ]: [App
>> 28140 stdout]  :auth=>"sunstone",
>> [ 2013-08-28 16:20:26.5768 28083/7ffd110bf700 Pool2/Spawner.h:738 ]: [App
>> 28140 stdout]  :memcache_host=>"192.168.113.2",
>> [ 2013-08-28 16:20:26.5768 28083/7ffd110bf700 Pool2/Spawner.h:738 ]: [App
>> 28140 stdout]  :debug_level=>3,
>> [ 2013-08-28 16:20:26.5769 28083/7ffd110bf700 Pool2/Spawner.h:738 ]: [App
>> 28140 stdout]  :one_xmlrpc=>"http://192.168.113.2:2633/RPC2",
>> [ 2013-08-28 16:20:26.5769 28083/7ffd110bf700 Pool2/Spawner.h:738 ]: [App
>> 28140 stdout]  :lang=>"en_US",
>> [ 2013-08-28 16:20:26.5770 28083/7ffd110bf700 Pool2/Spawner.h:738 ]: [App
>> 28140 stdout]  :memcache_port=>11211,
>> [ 2013-08-28 16:20:26.5771 28083/7ffd110bf700 Pool2/Spawner.h:738 ]: [App
>> 28140 stdout]  :port=>9869}
>> [ 2013-08-28 16:20:26.5771 28083/7ffd110bf700 Pool2/Spawner.h:738 ]: [App
>> 28140 stdout] --------------------------------------
>> [ 2013-08-28 16:20:26.5771 28083/7ffd110bf700 Pool2/Spawner.h:738 ]: [App
>> 28140 stdout]
>> [ 2013-08-28 16:20:26.6560 28083/7ffd110bf700 Pool2/SmartSpawner.h:301 ]:
>> Preloader for /var/lib/one/lib/sunstone started on PID 28140, listening on
>> unix:/tmp/passenger.1.0.28075/generation-0/backends/preloader.28140
>>
>>
>>
>> On Wed, Aug 28, 2013 at 4:05 PM, Mohammad Fazli Ahmat Jalaluddin <
>> fazli.jalaluddin at gmail.com> wrote:
>>
>>> Dear All,
>>>
>>> I am thinking of installing multiple Sunstone Server by referring to
>>> this page [1] and [2]:
>>>
>>> My installation for OpenNebula 4.0 is self-contained mode in
>>> /var/lib/one folder.
>>>
>>> This is the step that I have taken by following the page with my
>>> self-contained mode:
>>>
>>> 1. sudo gem install passenger
>>> 2. sudo passenger-install-apache2-module
>>> 3. chgrp www-data /var/lib/one/etc/sunstone-server.conf
>>> 4. sudo chgrp www-data /var/lib/one/etc/sunstone-server.conf
>>> 5. sudo chgrp www-data sunstone-plugins.yaml
>>> 6. sudo chgrp www-data ../var/.one/sunstone_auth
>>> 7. sudo chmod a+x /var/lib/one/
>>> 8. sudo chmod a+x /var/lib/one/var/.one/
>>> 9. sudo chgrp www-data /var/lib/one/var/
>>> 10. sudo chgrp www-data var/sunstone*
>>> 11. chmod g+w var/sunstone*
>>> 12. sudo chmod g+w var/sunstone*
>>>
>>> Then, I configured the apache configuration file:
>>>
>>> LoadModule passenger_module
>>> /var/lib/gems/1.8/gems/passenger-4.0.14/buildout/apache2/mod_passenger.so
>>> PassengerRoot /var/lib/gems/1.8/gems/passenger-4.0.14
>>> PassengerDefaultRuby /usr/bin/ruby1.8
>>> PassengerMaxInstancesPerApp 1
>>>
>>> and also for the virtual host:
>>>
>>> ServerName sunstone-server
>>> # !!! Be sure to point DocumentRoot to 'public'!
>>> DocumentRoot /var/lib/one/lib/sunstone/public
>>> <Directory /var/lib/one/lib/sunstone/public>
>>>         # This relaxes Apache security settings.
>>>         AllowOverride all
>>>         # MultiViews must be turned off.
>>>         Options -MultiViews
>>> </Directory>
>>>
>>> I accessed my browser with sunstone IP; http://192.168.113.2 and can
>>> see the Sunstone front page.
>>> I try to login, it bounce back to the login page;
>>> http://192.168.113.2/login
>>>
>>> Please help me.
>>>
>>
> If you are running sunstone-server using passenger, more than one sunstone
> instance will be launched depending on the number of requests. Therefore,
> you will have to use memcache [1] to share sessions between different
> instances. Otherwise, you will get 401 auth errors as shown in the logs you
> sent.
>
> Hope this helps
>
> [1] http://opennebula.org/documentation:rel4.2:suns_advance
>
>
>>
>>> Thank you.
>>>
>>> Regards,
>>> Fazli
>>>
>>>
>>> [1]
>>> http://opennebula.org/documentation:archives:rel4.0:suns_advance#deploying_sunstone_in_a_different_machine
>>> [2]
>>> http://lists.opennebula.org/pipermail/users-opennebula.org/2012-July/019694.html
>>>
>>>
>>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opennebula.org
>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>
>>
>
>
> --
> Join us at OpenNebulaConf2013 <http://opennebulaconf.com/> in Berlin,
> 24-26 September, 2013
> --
> Daniel Molina
> Project Engineer
> OpenNebula - The Open Source Solution for Data Center Virtualization
> www.OpenNebula.org | dmolina at opennebula.org | @OpenNebula
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20130903/adc8d7ef/attachment-0002.htm>


More information about the Users mailing list