theforeman/foreman · error
Unable to create medium: #{SeedHelper.format_errors m}
Error message
Unable to create medium: #{SeedHelper.format_errors m} What it means
Error "Unable to create medium: #{SeedHelper.format_errors m}" thrown in theforeman/foreman.
Source
Thrown at db/seeds.d/100-installation_media.rb:89
:path => "http://$release.release.flatcar-linux.net",
},
{
:name => "Fedora CoreOS mirror",
:os_family => "Fcos",
:path => "https://builds.coreos.fedoraproject.org",
},
{
:name => "Red Hat CoreOS mirror",
:os_family => "Rhcos",
:path => "http://mirror.openshift.com",
},
].each do |input|
next if Medium.unscoped.where(['name = ? OR path = ?', input[:name], input[:path]]).any?
next if SeedHelper.audit_modified? Medium, input[:name]
m = Medium.create input
m.organizations = organizations
m.locations = locations
raise "Unable to create medium: #{SeedHelper.format_errors m}" if m.nil? || m.errors.any?
end
end
View on GitHub (pinned to 6b05625475)
When it happens
Trigger: Thrown at db/seeds.d/100-installation_media.rb:89 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of theforeman/foreman@6b05625475 (2026-08-23).
Data as JSON: /api/errors/0c320d71e7ccea16.
Report an issue: GitHub.