Skip to content

undefined method `[]' for nil [NoMethodError] #3607

@FK1985

Description

@FK1985

Describe the problem

Oxidized does not start. Error message is "undefined method `[]' for nil [NoMethodError]"

Configuration

---
username: username
password: password
model: cisco
#resolve_dns: true
interval: 86400
debug: false
run_once: false
threads: 30
use_max_threads: false
timeout: 20
timelimit: 300
retries: 3
prompt: !ruby/regexp /^([\w.@-]+[#>]\s?)$/
next_adds_job: false
vars: {}
groups: {}
group_map: {}
models: {}
pid: "/home/oxidized/.config/oxidized/pid"
extensions:
crash:
  directory: "/home/oxidized/.config/oxidized/crashes"
  hostnames: false
stats:
  history_size: 10
input:
  default: ssh, telnet
  debug: false
  ssh:
    secure: false
  ftp:
    passive: true
  utf8_encoded: true
output:
  default: git
  git:
    user: oxidized
    email: mail@mail.com
    repo: "/opt/librenms/oxidized/config.git"
source:
  default: csv
  csv:
    file: /opt/librenms/oxidized/router.db
    delimiter: !ruby/regexp /:/
    map:
      name: 0
      ip: 1
      model: 2
      username: 3
      password: 4
model_map:
  cisco: ios

Logs

[oxidized@basbnms ~]$ oxidized
2025-08-08 11:23:55.922112 I [1128956:1140] Oxidized::CLI -- Oxidized starting, running as pid 1128956
2025-08-08 11:23:55.923797 I [1128956:1140] Oxidized::Nodes -- Loading nodes
2025-08-08 11:23:56.073133 I [1128956:1140] Oxidized::Nodes -- Loaded 26 nodes
2025-08-08 11:23:56.073401 F [1128956:1140 cli.rb:36] Oxidized::CLI -- Oxidized crashed, crashfile written in /home/oxidized/.config/oxidized/crash


[oxidized@basbnms ~]$ cat /home/oxidized/.config/oxidized/crash
--------------------------------------------------
2025-08-08 09:23:56 UTC
undefined method `[]' for nil [NoMethodError]
--------------------------------------------------
/usr/local/share/gems/gems/oxidized-0.34.3/lib/oxidized/core.rb:43:in `initialize'
/usr/local/share/gems/gems/oxidized-0.34.3/lib/oxidized/core.rb:4:in `new'
/usr/local/share/gems/gems/oxidized-0.34.3/lib/oxidized/core.rb:4:in `new'
/usr/local/share/gems/gems/oxidized-0.34.3/lib/oxidized/cli.rb:17:in `run'
/usr/local/share/gems/gems/oxidized-0.34.3/bin/oxidized:5:in `<top (required)>'
/usr/local/bin/oxidized:25:in `load'
/usr/local/bin/oxidized:25:in `<main>'
--------------------------------------------------

Running environment (please complete the following information):

  • OS: Rocky Linux 10
  • oxidized version: 0.34.3
  • oxidized-web version:
  • Manufacturer model an software version:
  • oxidized model name:

Additional context
I did copy the router.db, git repository and oxidized config from another host which works just fine. Its an older OS and oxidized tho.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions