[foreman-users] Re: UPF from 2.4.4 to 3.4.5: previous Job Templates not displayed & Remote Execution failing

2017-09-01 Thread ehartchr
Remote Execution: *fixed as described 
under http://projects.theforeman.org/issues/20206  
*

-- 
You received this message because you are subscribed to the Google Groups 
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to foreman-users+unsubscr...@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.


[foreman-users] UPF from 2.4.4 to 3.4.5: previous Job Templates not displayed & Remote Execution failing

2017-09-01 Thread ehartchr
Dear all,

maybe someone else had the same problem...

*Steps:*
I upgraded from 2.4.4 => 3.0 => 3.1 => 3.2 => 3.3 => 3.4.5

*Result:*
previous Job Templates are not displayed 
Import of private Job Templates is failing with Error "has already been 
taken"
Import of public JobTemplate is failing with "not found Please try to 
update your request"
Remote Execution wants to connect to TCP3000 even Config is setup to listen 
on TCP9090, therefore all Jobs are failing too

Thanks,
Christian


-- 
You received this message because you are subscribed to the Google Groups 
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to foreman-users+unsubscr...@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.


Re: [foreman-users] UPG 2.4.4 to 3.4.4: Upgrade step migrate_foreman failed

2017-08-30 Thread ehartchr
Hi Eric,

I found the Root Cause, in my case "cockpit" was running on 9090 and 
Foreman on 9000, this caused the issue to fail the UPG.
I disabled cockpit and configured Foreman to listen on 9090, afterwards UPG 
to 3.0.x suceeeded, will now continue step by step to 3.4.x

Sorry & Thanks,
Christian

-- 
You received this message because you are subscribed to the Google Groups 
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to foreman-users+unsubscr...@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.


[foreman-users] UPG 2.4.4 to 3.4.4: Upgrade step migrate_foreman failed

2017-08-24 Thread ehartchr
Dear all,

can someone help me to upgrade my Katello from 2.4.4 to 3.4.4, I´m getting 
now the following:

[ERROR 2017-08-23 22:20:58 main] foreman-rake -- config -k use_pulp_oauth 
-v true >/dev/null failed! Check the output for error!
[DEBUG 2017-08-23 22:21:12 main] API controllers newer than Apipie cache! 
Run apipie:cache rake task to regenerate cache.
[DEBUG 2017-08-23 22:21:44 main] rake aborted!
[DEBUG 2017-08-23 22:21:44 main] StandardError: An error has occurred, this 
and all later migrations canceled:
[DEBUG 2017-08-23 22:21:44 main]
[DEBUG 2017-08-23 22:21:44 main] The single-table inheritance mechanism 
failed to locate the subclass: 'Katello::System'. This error is raised 
because the column 'type' is reserved for storing the class in case of 
inheritance. Please rename this column if you didn't intend it to be used 
for storing the inheritance class or overwrite 
HostCollectionToHosts::System.inheritance_column to use another column for 
that 
information./opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-4.2.5.1/lib/active_record/inheritance.rb:186:in
 
`rescue in find_sti_class'
[DEBUG 2017-08-23 22:21:44 main] ActiveRecord::SubclassNotFound: The 
single-table inheritance mechanism failed to locate the subclass: 
'Katello::System'. This error is raised because the column 'type' is 
reserved for storing the class in case of inheritance. Please rename this 
column if you didn't intend it to be used for storing the inheritance class 
or overwrite HostCollectionToHosts::System.inheritance_column to use 
another column for that information.
[DEBUG 2017-08-23 22:21:44 main] NameError: uninitialized constant 
Katello::System
[ERROR 2017-08-23 22:21:44 main] foreman-rake db:migrate failed! Check the 
output for error!
[ERROR 2017-08-23 22:22:02 main] foreman-rake -- config -k use_pulp_oauth 
-v false >/dev/null failed! Check the output for error!
[ERROR 2017-08-23 22:22:02 main] Upgrade step migrate_foreman failed. Check 
logs for more information.
[DEBUG 2017-08-23 22:22:02 main] Exit with status code: 1 (signal was 1)
[ERROR 2017-08-23 22:22:02 main] Errors encountered during run:
[ERROR 2017-08-23 22:22:02 main] foreman-rake -- config -k use_pulp_oauth 
-v true >/dev/null failed! Check the output for error!
[ERROR 2017-08-23 22:22:02 main] foreman-rake db:migrate failed! Check the 
output for error!
[ERROR 2017-08-23 22:22:02 main] foreman-rake -- config -k use_pulp_oauth 
-v false >/dev/null failed! Check the output for error!
[ERROR 2017-08-23 22:22:02 main] Upgrade step migrate_foreman failed. Check 
logs for more information.

Thanks,
Christian

-- 
You received this message because you are subscribed to the Google Groups 
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to foreman-users+unsubscr...@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.


[foreman-users] UPG from 2.4.4 to 3.x (also to 3.4.4 failing)

2017-08-23 Thread ehartchr
Dear all,

I´m trying to upgrade my Katello from 2.4.4 to any version of 3.x but 
everytime I´m failing with different errors, its a real nightmare, below is 
what I get now for the latest version of 3.4.4:

[DEBUG 2017-08-23 00:44:07 main] katello-service start --only 
tomcat,tomcat6 finished successfully!
[ INFO 2017-08-23 00:44:07 main] Upgrade Step: fix_katello_settings_file...
[ INFO 2017-08-23 00:44:07 main] Upgrade Step: migrate_foreman...
*[ERROR 2017-08-23 00:44:27 main] foreman-rake -- config -k use_pulp_oauth 
-v true >/dev/null failed! Check the output for error!*
*[DEBUG 2017-08-23 00:44:41 main] API controllers newer than Apipie cache! 
Run apipie:cache rake task to regenerate cache.*
[DEBUG 2017-08-23 00:44:47 main] rake aborted!
*[DEBUG 2017-08-23 00:44:47 main] Foreman::PluginRequirementError: 
ERF72-1622 [Foreman::PluginRequirementError]: bastion plugin requires 
Foreman >= 1.16 but current is 1.15.3*
[DEBUG 2017-08-23 00:44:47 main] 
/usr/share/foreman/app/services/foreman/plugin.rb:143:in `requires_foreman'
[DEBUG 2017-08-23 00:44:47 main] 
/opt/theforeman/tfm/root/usr/share/gems/gems/bastion-5.0.9/lib/bastion/engine.rb:48:in
 
`block (2 levels) in '
[DEBUG 2017-08-23 00:44:47 main] 
/usr/share/foreman/app/services/foreman/plugin.rb:66:in `instance_eval'
[DEBUG 2017-08-23 00:44:47 main] 
/usr/share/foreman/app/services/foreman/plugin.rb:66:in `register'
[DEBUG 2017-08-23 00:44:47 main] 
/opt/theforeman/tfm/root/usr/share/gems/gems/bastion-5.0.9/lib/bastion/engine.rb:47:in
 
`block in '
[DEBUG 2017-08-23 00:44:47 main] 
/opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/initializable.rb:30:in
 
`instance_exec'
[DEBUG 2017-08-23 00:44:47 main] 
/opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/initializable.rb:30:in
 
`run'
[DEBUG 2017-08-23 00:44:47 main] 
/opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/initializable.rb:55:in
 
`block in run_initializers'
[DEBUG 2017-08-23 00:44:47 main] 
/opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/initializable.rb:54:in
 
`run_initializers'
[DEBUG 2017-08-23 00:44:47 main] 
/opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/application.rb:352:in
 
`initialize!'
[DEBUG 2017-08-23 00:44:47 main] 
/opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/railtie.rb:194:in
 
`public_send'
[DEBUG 2017-08-23 00:44:47 main] 
/opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/railtie.rb:194:in
 
`method_missing'
[DEBUG 2017-08-23 00:44:47 main] 
/usr/share/foreman/config/environment.rb:5:in `'
[DEBUG 2017-08-23 00:44:47 main] 
/opt/rh/sclo-ror42/root/usr/share/gems/gems/polyglot-0.3.4/lib/polyglot.rb:65:in
 
`require'
[DEBUG 2017-08-23 00:44:47 main] 
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/dependencies.rb:274:in
 
`block in require'
[DEBUG 2017-08-23 00:44:47 main] 
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/dependencies.rb:240:in
 
`load_dependency'
[DEBUG 2017-08-23 00:44:47 main] 
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/dependencies.rb:274:in
 
`require'
[DEBUG 2017-08-23 00:44:47 main] 
/opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/application.rb:328:in
 
`require_environment!'
[DEBUG 2017-08-23 00:44:47 main] 
/opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/application.rb:457:in
 
`block in run_tasks_blocks'
[DEBUG 2017-08-23 00:44:47 main] Tasks: TOP => db:migrate => environment
[DEBUG 2017-08-23 00:44:47 main] (See full trace by running task with 
--trace)
[ERROR 2017-08-23 00:44:47 main] foreman-rake db:migrate failed! Check the 
output for error!
[ERROR 2017-08-23 00:45:05 main] foreman-rake -- config -k use_pulp_oauth 
-v false >/dev/null failed! Check the output for error!
[ERROR 2017-08-23 00:45:05 main] Upgrade step migrate_foreman failed. Check 
logs for more information.
[DEBUG 2017-08-23 00:45:05 main] Exit with status code: 1 (signal was 1)
[ERROR 2017-08-23 00:45:05 main] Errors encountered during run:
[ERROR 2017-08-23 00:45:05 main] foreman-rake -- config -k use_pulp_oauth 
-v true >/dev/null failed! Check the output for error!
[ERROR 2017-08-23 00:45:05 main] foreman-rake db:migrate failed! Check the 
output for error!
[ERROR 2017-08-23 00:45:05 main] foreman-rake -- config -k use_pulp_oauth 
-v false >/dev/null failed! Check the output for error!
[ERROR 2017-08-23 00:45:05 main] Upgrade step migrate_foreman failed. Check 
logs for more information.


*I tried to upgrade Foreman with Nighly Version to get 1.16 but then I´m 
getting failed dependencies*

Error: Package: tfm-rubygem-runcible-1.12.0-1.el7.noarch (@katello)
   Requires: tfm-rubygem(rest-client) < 2.0.0
   Removing: tfm-rubygem-rest-client-1.8.0-1.el7.noarch (@foreman)
   tfm-rubygem(rest-client) = 1.8.0
   Updated By: 

[foreman-users] Katello: UPG from 2.4.4 to 3.4.2-1 failed

2017-07-17 Thread ehartchr
Dear all,

During the last steps of "yum update" I´m getting the following errors, 
should I proceed with the Upgrade Installer or is there anything I should 
fix before?

###

  Cleanup: python-rhsm-1.17.2-1.el7.centos.x86_64   

   545/545 
b   Loaded plugins: fastestmirror, langpacks, priorities, product-id
warning: %posttrans(foreman-installer-katello-3.4.2-1.el7.noarch) scriptlet 
failed, exit status 26
Non-fatal POSTTRANS scriptlet failure in rpm package 
foreman-installer-katello-3.4.2-1.el7.noarch
Uploading Package Profile
Unable to upload Package Profile

###

Jul 17 12:42:14 itsatltkatello goferd: [ERROR][MainThread] 
rhsm.connection:630 - Response: 404
Jul 17 12:42:14 itsatltkatello goferd: [ERROR][MainThread] 
rhsm.connection:631 - JSON parsing error: Expecting value: line 1 column 1 
(char 0)
Jul 17 12:42:21 itsatltkatello pulp: gofer.messaging.consumer:ERROR: 
(2594-81600) pulp.task
Jul 17 12:42:21 itsatltkatello pulp: gofer.messaging.consumer:ERROR: 
(2594-81600) Traceback (most recent call last):
Jul 17 12:42:21 itsatltkatello pulp: gofer.messaging.consumer:ERROR: 
(2594-81600)   File 
"/usr/lib/python2.7/site-packages/gofer/messaging/consumer.py", line 88, in 
_read
Jul 17 12:42:21 itsatltkatello pulp: gofer.messaging.consumer:ERROR: 
(2594-81600) Read and process incoming documents.
Jul 17 12:42:21 itsatltkatello pulp: gofer.messaging.consumer:ERROR: 
(2594-81600)   File 
"/usr/lib/python2.7/site-packages/gofer/messaging/adapter/model.py", line 
39, in _fn
Jul 17 12:42:21 itsatltkatello pulp: gofer.messaging.consumer:ERROR: 
(2594-81600) return fn(*args, **keywords)
Jul 17 12:42:21 itsatltkatello pulp: gofer.messaging.consumer:ERROR: 
(2594-81600)   File 
"/usr/lib/python2.7/site-packages/gofer/messaging/adapter/model.py", line 
648, in next
Jul 17 12:42:21 itsatltkatello pulp: gofer.messaging.consumer:ERROR: 
(2594-81600) :param timeout: The read timeout in seconds.
Jul 17 12:42:21 itsatltkatello pulp: gofer.messaging.consumer:ERROR: 
(2594-81600)   File 
"/usr/lib/python2.7/site-packages/gofer/messaging/adapter/model.py", line 
39, in _fn
Jul 17 12:42:21 itsatltkatello pulp: gofer.messaging.consumer:ERROR: 
(2594-81600) return fn(*args, **keywords)
Jul 17 12:42:21 itsatltkatello pulp: gofer.messaging.consumer:ERROR: 
(2594-81600)   File 
"/usr/lib/python2.7/site-packages/gofer/messaging/adapter/model.py", line 
614, in get
Jul 17 12:42:21 itsatltkatello pulp: gofer.messaging.consumer:ERROR: 
(2594-81600) Get the next message.
Jul 17 12:42:21 itsatltkatello pulp: gofer.messaging.consumer:ERROR: 
(2594-81600)   File 
"/usr/lib/python2.7/site-packages/gofer/messaging/adapter/qpid/reliability.py", 
line 34, in _fn
Jul 17 12:42:21 itsatltkatello pulp: gofer.messaging.consumer:ERROR: 
(2594-81600) try:
Jul 17 12:42:21 itsatltkatello pulp: gofer.messaging.consumer:ERROR: 
(2594-81600) NotFound: no such queue: pulp.task
Jul 17 12:42:21 itsatltkatello server: INFO: Illegal access: this web 
application instance has been stopped already.  Could not load 
org.apache.qpid.client.AMQSession$Dispatcher.  The eventual following stack 
trace is caused by an error thrown for debugging purposes as well as to 
attempt to terminate the thread which caused the illegal access, and has no 
functional impact.
Jul 17 12:42:21 itsatltkatello server: Exception in thread "IoReceiver - 
itsatltkatello.itsdone.local/192.168.67.114:5671" 
java.lang.NoClassDefFoundError: org/apache/qpid/client/AMQSession$Dispatcher
Jul 17 12:42:21 itsatltkatello server: Exception: 
java.lang.NoClassDefFoundError thrown from the UncaughtExceptionHandler in 
thread "IoReceiver - itsatltkatello.itsdone.local/192.168.67.114:5671"
Jul 17 12:42:22 itsatltkatello qpidd: 2017-07-17 12:42:22 [Protocol] error 
Error on attach: Node not found: 
pulp.agent.71eed24a-cf05-402b-b5e8-4e00d515c4ec
Jul 17 12:42:22 itsatltkatello qpidd[8444]: 2017-07-17 12:42:22 [Protocol] 
error Error on attach: Node not found: 
pulp.agent.71eed24a-cf05-402b-b5e8-4e00d515c4ec

Thanks,
Christian

-- 
You received this message because you are subscribed to the Google Groups 
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to foreman-users+unsubscr...@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.