Skip to content

Instantly share code, notes, and snippets.

View bochi's full-sized avatar

Stefan Bogner bochi

  • B1 Systems GmbH
  • Germany
View GitHub Profile
2022-02-03T09:32:29 [I|app|53ab9b56] Started PATCH "/users/37-j7931" for 10.7.67.200 at 2022-02-03 09:32:29 +0100
2022-02-03T09:32:29 [I|app|53ab9b56] Processing by UsersController#update as HTML
2022-02-03T09:32:29 [I|app|53ab9b56] Parameters: {"utf8"=>"✓", "authenticity_token"=>"k0hBtpiNSXGA8nK8rvwKEhjodSQMgmzfE7RlDdQqz31Wd+vhOY8+PSu2LXHTNPwhc5/r6evPL7Z7eTgDzztLaA==", "user"=>{"login"=>"j79311", "firstname"=>"Stefan", "lastname"=>"Bogner", "mail"=>"stefan.bogner@lalala", "description"=>"", "locale"=>"", "timezone"=>"", "current_password"=>"[FILTERED]", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "mail_enabled"=>"1", "user_mail_notifications_attributes"=>{"0"=>{"mail_notification_id"=>"3", "interval"=>"", "mail_query"=>""}, "1"=>{"mail_notification_id"=>"6", "interval"=>""}, "2"=>{"mail_notification_id"=>"1", "interval"=>""}, "3"=>{"mail_notification_id"=>"4", "interval"=>""}}, "role_ids"=>["1"], "location_ids"=>["2", "2", ""], "default_location_id"=>"2", "organization_ids"=>["1", "1",
2021-04-16 09:47:28,388 [ajp-nio-0:0:0:0:0:0:0:1-8009-exec-2] ERROR com.redhat.rhn.common.localization.LocalizationService - *** ERROR: Message with id: [org-config.crash-reporting.jsp] not found.*** called by com.redhat.rhn.frontend.struts.XmlMessageResources.getMessage(XmlMessageResources.java:85)
2021-04-16 09:47:28,388 [ajp-nio-0:0:0:0:0:0:0:1-8009-exec-2] ERROR com.redhat.rhn.common.localization.LocalizationService - *** ERROR: Message with id: [org-config.crash-reporting.jsp] not found.*** called by com.redhat.rhn.frontend.struts.XmlMessageResources.getMessage(XmlMessageResources.java:85)
2021-04-16 09:47:28,389 [ajp-nio-0:0:0:0:0:0:0:1-8009-exec-2] ERROR com.redhat.rhn.frontend.servlets.SessionFilter - Error during transaction. Rolling back
javax.el.PropertyNotFoundException: Property [crashReportingEnabled] not found on type [com.redhat.rhn.domain.org.OrgConfig]
at javax.el.BeanELResolver$BeanProperties.get(BeanELResolver.java:260)
at javax.el.BeanELResolver$BeanProperties.access$300(B
class Source < ApplicationRecord
has_many :reports, :through => :logs
has_many :logs
validates_lengths_from_database
validates :value, :presence => true
def to_s
value
end
2021-04-08T08:53:12 [E|bac|83863189] PG::UndefinedColumn: ERROR: column sources.digest does not exist
LINE 1: SELECT "sources".* FROM "sources" WHERE "sources"."digest" =...
^
(ActiveRecord::StatementInvalid)
/opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.1/lib/active_record/connection_adapters/postgresql_adapter.rb:744:in `async_prepare'
/opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.1/lib/active_record/connection_adapters/postgresql_adapter.rb:744:in `block in prepare_statement'
/opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:26:in `block (2 levels) in synchronize'
/opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `handle_interrupt'
/opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb
for i in range(retry_int['attempts']):
# in case no otp is given by the state, get it from pillar
# this should happen within the loop, in case otp changes
if not otp:
try:
log.debug('Trying to get otp from pillar %s...' % pillar_key)
otp = __salt__['pillar.get'](pillar_key)[-1]
# if getting the otp from pillar fails, ask the master to generate a new one
except IndexError:
log.debug('Unable to get otp from pillar, otp is %s' % otp)
@bochi
bochi / gist:b39dc8a4248f41a56125617bdd6988aa
Created May 28, 2020 09:00
unicode error in salt lookup jid
# salt-run jobs.lookup_jid 20200527114512123786
Traceback (most recent call last):
File "/bin/salt-run", line 11, in <module>
load_entry_point('salt==3000.3', 'console_scripts', 'salt-run')()
File "/usr/lib/python2.7/site-packages/salt/scripts.py", line 457, in salt_run
client.run()
File "/usr/lib/python2.7/site-packages/salt/cli/run.py", line 40, in run
ret = runner.run()
File "/usr/lib/python2.7/site-packages/salt/runner.py", line 273, in run
daemonize=False)