From marcus.moeller at gmx.ch Thu Aug 20 08:30:03 2015 Content-Type: multipart/mixed; boundary="===============3772257521103557342==" MIME-Version: 1.0 From: Marcus Moeller To: katello at lists.fedorahosted.org Subject: unable to login after db switch to pgsql Date: Thu, 03 Nov 2011 15:43:48 +0100 Message-ID: <4EB2A8A4.6020701@gmx.ch> --===============3772257521103557342== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi all. I have switched the katello db from sqlite3 to postresql (as after = latest update sqlite is no longer supported by default). Afterwards I have done a katello-reset-dbs and am no longer able to log = in using admin/admin. Is there a way to reset the admin pw? Greets Marcus --===============3772257521103557342==-- From lzap+pub at redhat.com Thu Aug 20 08:30:03 2015 Content-Type: multipart/mixed; boundary="===============3683894666149310547==" MIME-Version: 1.0 From: Lukas Zapletal To: katello at lists.fedorahosted.org Subject: Re: unable to login after db switch to pgsql Date: Thu, 03 Nov 2011 15:49:14 +0100 Message-ID: <4EB2A9EA.7020800@redhat.com> In-Reply-To: 4EB2A8A4.6020701@gmx.ch --===============3683894666149310547== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable On 11/03/2011 03:43 PM, Marcus Moeller wrote: > Is there a way to reset the admin pw? Hi, katello-reset-dbs completely resets all databases, including the Katello = one. You should have it set to admin/admin. If you are not able to loging check the log files, paste them here if = you find anything suspicious. LZ -- = Later, Lukas "lzap" Zapletal --===============3683894666149310547==-- From marcus.moeller at gmx.ch Thu Aug 20 08:30:03 2015 Content-Type: multipart/mixed; boundary="===============4031424821149794070==" MIME-Version: 1.0 From: Marcus Moeller To: katello at lists.fedorahosted.org Subject: Re: unable to login after db switch to pgsql Date: Thu, 03 Nov 2011 15:55:55 +0100 Message-ID: <4EB2AB7B.5080304@gmx.ch> In-Reply-To: 4EB2A9EA.7020800@redhat.com --===============4031424821149794070== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable On 11/03/2011 03:49 PM, Lukas Zapletal wrote: > On 11/03/2011 03:43 PM, Marcus Moeller wrote: >> Is there a way to reset the admin pw? > > Hi, > > katello-reset-dbs completely resets all databases, including the Katello > one. You should have it set to admin/admin. > > If you are not able to loging check the log files, paste them here if > you find anything suspicious. At least I got the following error during katello-reset-dbs: ** Execute db:seed rake aborted! Candlepin::Owner: 404 Resource Not Found Apache = Tomcat/6.0.32 - Error report =

HTTP Status 404 -


type Status report

message =

description The requested resource () is not = available.


Apache = Tomcat/6.0.32

(POST /candlepin/owners/) /usr/lib/ruby/gems/1.8/gems/rest-client-1.6.1/lib/restclient/abstract_respo= nse.rb:48:in = `return!' /usr/lib/ruby/gems/1.8/gems/rest-client-1.6.1/lib/restclient/request.rb:220= :in = `process_result' /usr/lib/ruby/gems/1.8/gems/rest-client-1.6.1/lib/restclient/request.rb:169= :in = `transmit' /usr/lib/ruby/1.8/net/http.rb:543:in `start' /usr/lib/ruby/gems/1.8/gems/rest-client-1.6.1/lib/restclient/request.rb:166= :in = `transmit' /usr/lib/ruby/gems/1.8/gems/rest-client-1.6.1/lib/restclient/request.rb:60:= in = `execute' /usr/lib/ruby/gems/1.8/gems/rest-client-1.6.1/lib/restclient/request.rb:31:= in = `execute' /usr/lib/ruby/gems/1.8/gems/rest-client-1.6.1/lib/restclient/resource.rb:63= :in = `post' /usr/share/katello/lib/http_resource.rb:104:in `post' /usr/share/katello/lib/resources/candlepin.rb:164:in `create' /usr/share/katello/app/models/glue/candlepin/owner.rb:32:in `set_owner' /usr/share/katello/app/models/glue.rb:137:in `send' /usr/share/katello/app/models/glue.rb:137:in `execute' /usr/share/katello/app/models/glue.rb:97:in `process' /usr/share/katello/app/models/glue.rb:93:in `each' /usr/share/katello/app/models/glue.rb:93:in `process' /usr/share/katello/app/models/glue.rb:32:in `on_save' /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.10/lib/active_support/callbac= ks.rb:220:in = `_conditional_callback_around_251' /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.10/lib/active_support/callbac= ks.rb:419:in = `_run_save_callbacks' /usr/lib/ruby/gems/1.8/gems/activerecord-3.0.10/lib/active_record/callbacks= .rb:273:in = `create_or_update' /usr/lib/ruby/gems/1.8/gems/activerecord-3.0.10/lib/active_record/persisten= ce.rb:40:in = `save' /usr/lib/ruby/gems/1.8/gems/activerecord-3.0.10/lib/active_record/validatio= ns.rb:43:in = `save' /usr/lib/ruby/gems/1.8/gems/activerecord-3.0.10/lib/active_record/attribute= _methods/dirty.rb:21:in = `save' /usr/lib/ruby/gems/1.8/gems/activerecord-3.0.10/lib/active_record/transacti= ons.rb:240:in = `save' /usr/lib/ruby/gems/1.8/gems/activerecord-3.0.10/lib/active_record/transacti= ons.rb:292:in = `with_transaction_returning_status' /usr/lib/ruby/gems/1.8/gems/activerecord-3.0.10/lib/active_record/connectio= n_adapters/abstract/database_statements.rb:139:in = `transaction' /usr/lib/ruby/gems/1.8/gems/activerecord-3.0.10/lib/active_record/transacti= ons.rb:207:in = `transaction' /usr/lib/ruby/gems/1.8/gems/activerecord-3.0.10/lib/active_record/transacti= ons.rb:290:in = `with_transaction_returning_status' /usr/lib/ruby/gems/1.8/gems/activerecord-3.0.10/lib/active_record/transacti= ons.rb:240:in = `save' /usr/lib/ruby/gems/1.8/gems/activerecord-3.0.10/lib/active_record/transacti= ons.rb:251:in = `rollback_active_record_state!' /usr/lib/ruby/gems/1.8/gems/activerecord-3.0.10/lib/active_record/transacti= ons.rb:239:in = `save' /usr/lib/ruby/gems/1.8/gems/activerecord-3.0.10/lib/active_record/relation/= finder_methods.rb:271:in = `find_or_instantiator_by_attributes' /usr/lib/ruby/gems/1.8/gems/activerecord-3.0.10/lib/active_record/base.rb:9= 95:in = `send' /usr/lib/ruby/gems/1.8/gems/activerecord-3.0.10/lib/active_record/base.rb:9= 95:in = `method_missing' /usr/share/katello/db/seeds.rb:38 /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.10/lib/active_support/depende= ncies.rb:235:in = `load' /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.10/lib/active_support/depende= ncies.rb:235:in = `load' /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.10/lib/active_support/depende= ncies.rb:227:in = `load_dependency' /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.10/lib/active_support/depende= ncies.rb:235:in = `load' /usr/lib/ruby/gems/1.8/gems/activerecord-3.0.10/lib/active_record/railties/= databases.rake:290 /usr/lib/ruby/gems/1.8/gems/rake-0.9.2/lib/rake/task.rb:205:in `call' /usr/lib/ruby/gems/1.8/gems/rake-0.9.2/lib/rake/task.rb:205:in `execute' /usr/lib/ruby/gems/1.8/gems/rake-0.9.2/lib/rake/task.rb:200:in `each' /usr/lib/ruby/gems/1.8/gems/rake-0.9.2/lib/rake/task.rb:200:in `execute' /usr/lib/ruby/gems/1.8/gems/rake-0.9.2/lib/rake/task.rb:158:in = `invoke_with_call_chain' /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize' /usr/lib/ruby/gems/1.8/gems/rake-0.9.2/lib/rake/task.rb:151:in = `invoke_with_call_chain' /usr/lib/ruby/gems/1.8/gems/rake-0.9.2/lib/rake/task.rb:144:in `invoke' /usr/lib/ruby/gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:112:in = `invoke_task' /usr/lib/ruby/gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:90:in = `top_level' /usr/lib/ruby/gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:90:in `each' /usr/lib/ruby/gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:90:in = `top_level' /usr/lib/ruby/gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:129:in = `standard_exception_handling' /usr/lib/ruby/gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:84:in = `top_level' /usr/lib/ruby/gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:62:in `run' /usr/lib/ruby/gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:129:in = `standard_exception_handling' /usr/lib/ruby/gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:59:in `run' /usr/lib/ruby/gems/1.8/gems/rake-0.9.2/bin/rake:32 /usr/bin/rake:19:in `load' /usr/bin/rake:19 Tasks: TOP =3D> db:seed Greets Marcus --===============4031424821149794070==-- From lzap+pub at redhat.com Thu Aug 20 08:30:03 2015 Content-Type: multipart/mixed; boundary="===============1447205333809079489==" MIME-Version: 1.0 From: Lukas Zapletal To: katello at lists.fedorahosted.org Subject: Re: unable to login after db switch to pgsql Date: Thu, 03 Nov 2011 16:02:04 +0100 Message-ID: <4EB2ACEC.1060003@redhat.com> In-Reply-To: 4EB2AB7B.5080304@gmx.ch --===============1447205333809079489== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable On 11/03/2011 03:55 PM, Marcus Moeller wrote: > At least I got the following error during katello-reset-dbs: > > ** Execute db:seed > rake aborted! > Candlepin::Owner: 404 Resource Not FoundApache Candlepin was not deployed properly, it has been shut down for some = reason. Can you please attach latest errors from the catalina.out log = file from the /var/log/tomcat6 dir? LZ -- = Later, Lukas "lzap" Zapletal --===============1447205333809079489==-- From marcus.moeller at gmx.ch Thu Aug 20 08:30:03 2015 Content-Type: multipart/mixed; boundary="===============2896420392337139031==" MIME-Version: 1.0 From: Marcus Moeller <marcus.moeller at gmx.ch> To: katello at lists.fedorahosted.org Subject: Re: unable to login after db switch to pgsql Date: Thu, 03 Nov 2011 16:16:25 +0100 Message-ID: <4EB2B049.2040701@gmx.ch> In-Reply-To: 4EB2ACEC.1060003@redhat.com --===============2896420392337139031== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi all >> At least I got the following error during katello-reset-dbs: >> >> ** Execute db:seed >> rake aborted! >> Candlepin::Owner: 404 Resource Not Found<html><head><title>Apache > > Candlepin was not deployed properly, it has been shut down for some > reason. Can you please attach latest errors from the catalina.out log > file from the /var/log/tomcat6 dir? I have tried to re-run cpsetup and always ran into the 2048 error. ########## ERROR ############ Error running command: wget -qO- http://localhost:8080/candlepin/admin/init Status code: 2048 Command output: Traceback (most recent call last): File "/usr/share/candlepin/cpsetup", line 215, in <module> main(sys.argv[1:]) File "/usr/share/candlepin/cpsetup", line 207, in main run_command("wget -qO- http://localhost:8080/candlepin/admin/init") File "/usr/share/candlepin/cpsetup", line 34, in run_command raise Exception("Error running command") Exception: Error running command alternatives and permissions are of course correct (and cpsetup worked = before the latest tomcat update) to: tomcat6-el-2.1-api-6.0.32-8.fc15.noarch Greets Marcus --===============2896420392337139031==-- From lzap+pub at redhat.com Thu Aug 20 08:30:03 2015 Content-Type: multipart/mixed; boundary="===============4849235489559201424==" MIME-Version: 1.0 From: Lukas Zapletal <lzap+pub at redhat.com> To: katello at lists.fedorahosted.org Subject: Re: unable to login after db switch to pgsql Date: Thu, 03 Nov 2011 22:13:37 +0100 Message-ID: <4EB30401.8010203@redhat.com> In-Reply-To: 4EB2B049.2040701@gmx.ch --===============4849235489559201424== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable On 11/03/2011 04:16 PM, Marcus Moeller wrote: > I have tried to re-run cpsetup and always ran into the 2048 error. > > ########## ERROR ############ > Error running command: wget -qO-http://localhost:8080/candlepin/admin/init > Status code: 2048 > Command output: > Traceback (most recent call last): > File "/usr/share/candlepin/cpsetup", line 215, in<module> > main(sys.argv[1:]) > File "/usr/share/candlepin/cpsetup", line 207, in main > run_command("wget -qO-http://localhost:8080/candlepin/admin/init") > File "/usr/share/candlepin/cpsetup", line 34, in run_command > raise Exception("Error running command") > Exception: Error running command > > alternatives and permissions are of course correct (and cpsetup worked > before the latest tomcat update) to: > > tomcat6-el-2.1-api-6.0.32-8.fc15.noarch I see, I still need to see the catalina.out log file, because the setup = starts tomcat6 server and then starts initialization process using a = HTTP GET request. Something got wrong there. Let's see it. -- = Later, Lukas "lzap" Zapletal --===============4849235489559201424==--