Skip to content

undefined method `dump' for nil [NoMethodError] #3700

@colethegamer123

Description

@colethegamer123

Describe the problem
Im trying to use oxidized first time and I want to use it with my Cisco switches. I have about 50 Cisco switch and nearly all is SG300 or SG350. As far as I know its using ciscosmb model so I was choosing that one in router.db. I was checking the documentation and earlies issues but none of the solutions was working for me.

Expected behavior
It should use the prompt properly and download the config to the right output.

Configuration

username: ciscoadmin
password: secretpass
model: cisco
resolve_dns: true
interval: 3600
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: {}
extensions:
  oxidized-web:
    load: true
pid: "/home/oxidized/.config/oxidized/pid"
crash:
  directory: "/home/oxidized/.config/oxidized/crashes"
  hostnames: false
stats:
  history_size: 10
input:
  default: ssh, telnet
  debug: true
  ssh:
    secure: false
  ftp:
    passive: true
  utf8_encoded: true
output:
  default: file
  file:
    directory: "/home/oxidized/.config/oxidized/configs"
source:
  default: csv
  csv:
    file: "/home/oxidized/.config/oxidized/router.db"
    delimiter: !ruby/regexp /:/
    map:
      name: 0
      model: 1
    gpg: false
model_map:
  juniper: junos

Router.db

10.235.0.29:ciscosmb

Logs

2025-12-11 09:59:08.207721 E [11:Job '10.235.0.23' node.rb:90] Oxidized::Node -- 10.235.0.23 raised NoMethodError with msg undefined method `dump' for nil, creating crashfile
2025-12-11 09:59:08.208361 E [11:Job '10.235.0.23' node.rb:106] Oxidized::Node -- 10.235.0.23 raised NoMethodError with msg "undefined method `dump' for nil", 10.235.0.23 saved
2025-12-11 09:59:08.217821 W [11:Job '10.235.0.23'] Oxidized::Node -- 10.235.0.23 raised Errno::ECONNRESET with msg "Connection reset by peer"
2025-12-11 09:59:08.312449 W [11:1140] Oxidized::Worker -- /10.235.0.23 status no_connection, retries exhausted, giving up

Crash report

2025-12-11 09:59:08 UTC
undefined method `dump' for nil [NoMethodError]
--------------------------------------------------
/var/lib/gems/3.3.0/gems/oxidized-0.35.0/lib/oxidized/input/ssh.rb:49:in `cmd'
/var/lib/gems/3.3.0/gems/oxidized-0.35.0/lib/oxidized/input/cli.rb:66:in `login'
/var/lib/gems/3.3.0/gems/oxidized-0.35.0/lib/oxidized/input/ssh.rb:36:in `connect'
/var/lib/gems/3.3.0/gems/oxidized-0.35.0/lib/oxidized/node.rb:76:in `run_input'
/var/lib/gems/3.3.0/gems/oxidized-0.35.0/lib/oxidized/node.rb:51:in `block in run'
/var/lib/gems/3.3.0/gems/oxidized-0.35.0/lib/oxidized/node.rb:45:in `each'
/var/lib/gems/3.3.0/gems/oxidized-0.35.0/lib/oxidized/node.rb:45:in `run'
/var/lib/gems/3.3.0/gems/oxidized-0.35.0/lib/oxidized/job.rb:15:in `block (2 levels) in initialize'
/usr/lib/ruby/3.3.0/timeout.rb:186:in `block in timeout'
/usr/lib/ruby/3.3.0/timeout.rb:41:in `handle_timeout'
/usr/lib/ruby/3.3.0/timeout.rb:195:in `timeout'
/var/lib/gems/3.3.0/gems/oxidized-0.35.0/lib/oxidized/job.rb:14:in `block in initialize'

Debug

2025-12-11 10:34:26.302192 I [11:1140] Oxidized::CLI -- Oxidized starting, running as pid 11
2025-12-11 10:34:26.303118 I [11:1140] Oxidized::Nodes -- Loading nodes
2025-12-11 10:34:26.464345 I [11:1140] Oxidized::Nodes -- Loaded 1 nodes
2025-12-11 10:34:26.880368 D [11:Job '10.235.0.23'] Net::SSH -- net.ssh.transport.session[80c] -- establishing connection to 10.235.0.23:22
2025-12-11 10:34:26.884988 D [11:Job '10.235.0.23'] Net::SSH -- net.ssh.transport.session[80c] -- connection established
2025-12-11 10:34:26.885055 I [11:Job '10.235.0.23'] Net::SSH -- net.ssh.transport.server_version[898] -- negotiating protocol version
2025-12-11 10:34:26.885066 D [11:Job '10.235.0.23'] Net::SSH -- net.ssh.transport.server_version[898] -- local is `SSH-2.0-Ruby/Net::SSH_7.3.0 x86_64-linux-gnu'
2025-12-11 10:34:26.890404 D [11:Job '10.235.0.23'] Net::SSH -- net.ssh.transport.server_version[898] -- remote is `SSH-2.0-OpenSSH_5.9p1.RL'
2025-12-11 10:34:26.899196 I [11:Job '10.235.0.23'] Net::SSH -- net.ssh.transport.algorithms[8ac] -- sending KEXINIT
2025-12-11 10:34:26.899402 D [11:Job '10.235.0.23'] Net::SSH -- socket[8c0] -- queueing packet nr 0 type 20 len 1572
2025-12-11 10:34:26.899765 D [11:Job '10.235.0.23'] Net::SSH -- socket[8c0] -- sent 1576 bytes
2025-12-11 10:34:26.900395 D [11:Job '10.235.0.23'] Net::SSH -- socket[8c0] -- read 296 bytes
2025-12-11 10:34:26.900469 D [11:Job '10.235.0.23'] Net::SSH -- socket[8c0] -- received packet nr 0 type 20 len 292
2025-12-11 10:34:26.900518 I [11:Job '10.235.0.23'] Net::SSH -- net.ssh.transport.algorithms[8ac] -- got KEXINIT from server
2025-12-11 10:34:26.900571 I [11:Job '10.235.0.23'] Net::SSH -- net.ssh.transport.algorithms[8ac] -- negotiating algorithms
2025-12-11 10:34:26.900703 D [11:Job '10.235.0.23'] Net::SSH -- net.ssh.transport.algorithms[8ac] -- negotiated:
* kex: diffie-hellman-group-exchange-sha1
* host_key: ssh-rsa
* encryption_server: aes256-cbc
* encryption_client: aes256-cbc
* hmac_client: hmac-sha1
* hmac_server: hmac-sha1
* compression_client: none
* compression_server: none
* language_client:
* language_server:
2025-12-11 10:34:26.900729 D [11:Job '10.235.0.23'] Net::SSH -- net.ssh.transport.algorithms[8ac] -- exchanging keys
2025-12-11 10:34:26.901690 D [11:Job '10.235.0.23'] Net::SSH -- socket[8c0] -- queueing packet nr 1 type 34 len 20
2025-12-11 10:34:26.901964 D [11:Job '10.235.0.23'] Net::SSH -- socket[8c0] -- sent 24 bytes
2025-12-11 10:34:26.913372 I [11:2260] Oxidized::API::Web -- Oxidized-web server listening on 127.0.0.1:8888
2025-12-11 10:34:27.237549 D [11:Job '10.235.0.23'] Net::SSH -- socket[8c0] -- read 152 bytes
2025-12-11 10:34:27.237714 D [11:Job '10.235.0.23'] Net::SSH -- socket[8c0] -- received packet nr 1 type 31 len 148
2025-12-11 10:34:27.239043 D [11:Job '10.235.0.23'] Net::SSH -- socket[8c0] -- queueing packet nr 2 type 32 len 140
2025-12-11 10:34:27.239214 D [11:Job '10.235.0.23'] Net::SSH -- socket[8c0] -- sent 144 bytes
2025-12-11 10:34:27.709628 D [11:Job '10.235.0.23'] Net::SSH -- socket[8c0] -- read 448 bytes
2025-12-11 10:34:27.709784 D [11:Job '10.235.0.23'] Net::SSH -- socket[8c0] -- received packet nr 2 type 33 len 444
2025-12-11 10:34:27.711144 D [11:Job '10.235.0.23'] Net::SSH -- socket[8c0] -- queueing packet nr 3 type 21 len 20
2025-12-11 10:34:27.711467 D [11:Job '10.235.0.23'] Net::SSH -- socket[8c0] -- sent 24 bytes
2025-12-11 10:34:27.725423 D [11:Job '10.235.0.23'] Net::SSH -- socket[8c0] -- read 16 bytes
2025-12-11 10:34:27.725511 D [11:Job '10.235.0.23'] Net::SSH -- socket[8c0] -- received packet nr 3 type 21 len 12
2025-12-11 10:34:27.726011 D [11:Job '10.235.0.23'] Net::SSH -- net.ssh.authentication.session[8e8] -- beginning authentication of `admin'
2025-12-11 10:34:27.726545 D [11:Job '10.235.0.23'] Net::SSH -- socket[8c0] -- queueing packet nr 4 type 5 len 28
2025-12-11 10:34:27.726722 D [11:Job '10.235.0.23'] Net::SSH -- socket[8c0] -- sent 52 bytes
2025-12-11 10:34:27.736152 D [11:Job '10.235.0.23'] Net::SSH -- socket[8c0] -- read 52 bytes
2025-12-11 10:34:27.736305 D [11:Job '10.235.0.23'] Net::SSH -- socket[8c0] -- received packet nr 4 type 6 len 28
2025-12-11 10:34:27.736424 D [11:Job '10.235.0.23'] Net::SSH -- net.ssh.authentication.session[8e8] -- trying none
2025-12-11 10:34:27.736569 D [11:Job '10.235.0.23'] Net::SSH -- socket[8c0] -- queueing packet nr 5 type 50 len 44
2025-12-11 10:34:27.736803 D [11:Job '10.235.0.23'] Net::SSH -- socket[8c0] -- sent 68 bytes
2025-12-11 10:34:27.742645 D [11:Job '10.235.0.23'] Net::SSH -- socket[8c0] -- read 36 bytes
2025-12-11 10:34:27.742753 D [11:Job '10.235.0.23'] Net::SSH -- socket[8c0] -- received packet nr 5 type 52 len 12
2025-12-11 10:34:27.742811 D [11:Job '10.235.0.23'] Net::SSH -- net.ssh.authentication.methods.none[8fc] -- none succeeded
2025-12-11 10:34:27.743077 D [11:Job '10.235.0.23'] Net::SSH -- socket[8c0] -- queueing packet nr 6 type 90 len 44
2025-12-11 10:34:27.943963 D [11:Job '10.235.0.23'] Net::SSH -- socket[8c0] -- sent 68 bytes
2025-12-11 10:34:28.044528 D [11:Job '10.235.0.23'] Net::SSH -- socket[8c0] -- read 52 bytes
2025-12-11 10:34:28.044856 D [11:Job '10.235.0.23'] Net::SSH -- socket[8c0] -- received packet nr 6 type 91 len 28
2025-12-11 10:34:28.044970 I [11:Job '10.235.0.23'] Net::SSH -- net.ssh.connection.session[910] -- channel_open_confirmation: 0 0 256 128
2025-12-11 10:34:28.045142 I [11:Job '10.235.0.23'] Net::SSH -- net.ssh.connection.channel[924] -- sending channel request "pty-req"
2025-12-11 10:34:28.045289 D [11:Job '10.235.0.23'] Net::SSH -- socket[8c0] -- queueing packet nr 7 type 98 len 60
2025-12-11 10:34:28.145905 D [11:Job '10.235.0.23'] Net::SSH -- socket[8c0] -- sent 84 bytes
2025-12-11 10:34:28.246501 D [11:Job '10.235.0.23'] Net::SSH -- socket[8c0] -- read 36 bytes
2025-12-11 10:34:28.246839 D [11:Job '10.235.0.23'] Net::SSH -- socket[8c0] -- received packet nr 7 type 99 len 12
2025-12-11 10:34:28.246913 I [11:Job '10.235.0.23'] Net::SSH -- net.ssh.connection.session[910] -- channel_success: 0
2025-12-11 10:34:28.246941 I [11:Job '10.235.0.23'] Net::SSH -- net.ssh.connection.channel[924] -- sending channel request "shell"
2025-12-11 10:34:28.247085 D [11:Job '10.235.0.23'] Net::SSH -- socket[8c0] -- queueing packet nr 8 type 98 len 28
2025-12-11 10:34:28.348572 D [11:Job '10.235.0.23'] Net::SSH -- socket[8c0] -- sent 52 bytes
2025-12-11 10:34:28.449096 D [11:Job '10.235.0.23'] Net::SSH -- socket[8c0] -- read 104 bytes
2025-12-11 10:34:28.449344 D [11:Job '10.235.0.23'] Net::SSH -- socket[8c0] -- received packet nr 8 type 99 len 12
2025-12-11 10:34:28.449393 I [11:Job '10.235.0.23'] Net::SSH -- net.ssh.connection.session[910] -- channel_success: 0
2025-12-11 10:34:28.449492 D [11:Job '10.235.0.23'] Net::SSH -- socket[8c0] -- received packet nr 9 type 94 len 44
2025-12-11 10:34:28.449529 I [11:Job '10.235.0.23'] Net::SSH -- net.ssh.connection.session[910] -- channel_data: 0 19b
2025-12-11 10:34:28.551230 D [11:Job '10.235.0.23'] Net::SSH -- socket[8c0] -- queueing packet nr 9 type 94 len 28
2025-12-11 10:34:28.753345 D [11:Job '10.235.0.23'] Net::SSH -- socket[8c0] -- sent 52 bytes
2025-12-11 10:34:28.853997 D [11:Job '10.235.0.23'] Net::SSH -- socket[8c0] -- read 520 bytes
2025-12-11 10:34:28.854321 D [11:Job '10.235.0.23'] Net::SSH -- socket[8c0] -- received packet nr 10 type 94 len 28
2025-12-11 10:34:28.854382 I [11:Job '10.235.0.23'] Net::SSH -- net.ssh.connection.session[910] -- channel_data: 0 1b
2025-12-11 10:34:28.854768 D [11:Job '10.235.0.23'] Net::SSH -- socket[8c0] -- received packet nr 11 type 94 len 28
2025-12-11 10:34:28.854801 I [11:Job '10.235.0.23'] Net::SSH -- net.ssh.connection.session[910] -- channel_data: 0 1b
2025-12-11 10:34:28.855021 D [11:Job '10.235.0.23'] Net::SSH -- socket[8c0] -- received packet nr 12 type 94 len 28
2025-12-11 10:34:28.855058 I [11:Job '10.235.0.23'] Net::SSH -- net.ssh.connection.session[910] -- channel_data: 0 1b
2025-12-11 10:34:28.855294 D [11:Job '10.235.0.23'] Net::SSH -- socket[8c0] -- received packet nr 13 type 94 len 28
2025-12-11 10:34:28.855325 I [11:Job '10.235.0.23'] Net::SSH -- net.ssh.connection.session[910] -- channel_data: 0 1b
2025-12-11 10:34:28.855533 D [11:Job '10.235.0.23'] Net::SSH -- socket[8c0] -- received packet nr 14 type 94 len 28
2025-12-11 10:34:28.855563 I [11:Job '10.235.0.23'] Net::SSH -- net.ssh.connection.session[910] -- channel_data: 0 1b
2025-12-11 10:34:28.855777 D [11:Job '10.235.0.23'] Net::SSH -- socket[8c0] -- received packet nr 15 type 94 len 28
2025-12-11 10:34:28.855807 I [11:Job '10.235.0.23'] Net::SSH -- net.ssh.connection.session[910] -- channel_data: 0 1b
2025-12-11 10:34:28.856441 D [11:Job '10.235.0.23'] Net::SSH -- socket[8c0] -- received packet nr 16 type 94 len 28
2025-12-11 10:34:28.856474 I [11:Job '10.235.0.23'] Net::SSH -- net.ssh.connection.session[910] -- channel_data: 0 1b
2025-12-11 10:34:28.857072 D [11:Job '10.235.0.23'] Net::SSH -- socket[8c0] -- received packet nr 17 type 94 len 28
2025-12-11 10:34:28.857105 I [11:Job '10.235.0.23'] Net::SSH -- net.ssh.connection.session[910] -- channel_data: 0 2b
2025-12-11 10:34:28.857535 D [11:Job '10.235.0.23'] Net::SSH -- socket[8c0] -- received packet nr 18 type 94 len 28
2025-12-11 10:34:28.857653 I [11:Job '10.235.0.23'] Net::SSH -- net.ssh.connection.session[910] -- channel_data: 0 1b
2025-12-11 10:34:28.858420 D [11:Job '10.235.0.23'] Net::SSH -- socket[8c0] -- received packet nr 19 type 94 len 28
2025-12-11 10:34:28.858452 I [11:Job '10.235.0.23'] Net::SSH -- net.ssh.connection.session[910] -- channel_data: 0 9b
2025-12-11 10:34:28.959214 E [11:Job '10.235.0.23' node.rb:90] Oxidized::Node -- 10.235.0.23 raised NoMethodError with msg undefined method `dump' for nil, creating crashfile
2025-12-11 10:34:28.959848 E [11:Job '10.235.0.23' node.rb:106] Oxidized::Node -- 10.235.0.23 raised NoMethodError with msg "undefined method `dump' for nil", 10.235.0.23 saved
2025-12-11 10:34:29.075781 E [11:Job '10.235.0.23' node.rb:90] Oxidized::Node -- 10.235.0.23 raised NoMethodError with msg undefined method `+' for nil, creating crashfile
2025-12-11 10:34:29.076876 E [11:Job '10.235.0.23' node.rb:106] Oxidized::Node -- 10.235.0.23 raised NoMethodError with msg "undefined method `+' for nil", 10.235.0.23 saved

Running environment (please complete the following information):

  • OS: [Ubuntu 22.04 Host and running inside official docker from dockerhub]
  • oxidized version: latest docker version: 2025.12.11
  • oxidized-web version: latest docker version: 2025.12.11
  • Manufacturer model an software version: Cisco Small Business SG300-10 10-Port Gigabit Managed Switch 1.4.0.88
  • oxidized model name: ciscosmb

Additional context
Thanks for your time!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions