Redis Error

30 views
Skip to first unread message

Jay Wallace

unread,
Dec 23, 2020, 4:37:04 PM12/23/20
to NetBox
Can anyone point me in the right direction to sort this out?

<class 'redis.exceptions.ConnectionError'>
Error 111 connecting to localhost:1234. Connection refused. Python version: 3.8.5 NetBox version: 2.10.2 

I have just built a new ubuntu server and migrated the database from another server.  

Thanks for any direction to look.


Jeremy Stretch

unread,
Dec 23, 2020, 4:58:02 PM12/23/20
to Jay Wallace, NetBox
It looks like Redis isn't running locally. It should start automatically upon installation.

--
You received this message because you are subscribed to the Google Groups "NetBox" group.
To unsubscribe from this group and stop receiving emails from it, send an email to netbox-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/netbox-discuss/1695efd4-1d63-47de-b8eb-511e8ccab231n%40googlegroups.com.


--
Jeremy Stretch
Sr. Network Automation Engineer
Network to Code, LLC

Jay Wallace

unread,
Dec 23, 2020, 5:21:31 PM12/23/20
to NetBox
Looks to be running but there might be an error?  Thoughts?

● redis-server.service - Advanced key-value store
     Loaded: loaded (/lib/systemd/system/redis-server.service; enabled; vendor preset: enabled)
     Active: active (running) since Wed 2020-12-23 22:19:41 UTC; 4s ago
             man:redis-server(1)
    Process: 82772 ExecStart=/usr/bin/redis-server /etc/redis/redis.conf (code=exited, status=0/SUCCESS)
   Main PID: 82786 (redis-server)
      Tasks: 4 (limit: 4488)
     Memory: 2.5M
     CGroup: /system.slice/redis-server.service
             └─82786 /usr/bin/redis-server 127.0.0.1:6379

Dec 23 22:19:41 netbox2 systemd[1]: Starting Advanced key-value store...
Dec 23 22:19:41 netbox2 systemd[1]: redis-server.service: Can't open PID file /run/redis/redis-server.pid (yet?) after start: Operation not permitted
Dec 23 22:19:41 netbox2 systemd[1]: Started Advanced key-value store.

Jeremy Stretch

unread,
Dec 23, 2020, 5:32:13 PM12/23/20
to Jay Wallace, NetBox
> Error 111 connecting to localhost:1234

Ah, I missed that. You have NetBox configured to connect to port 1234 in configuration.py; should be 6379.

Reply all
Reply to author
Forward
Message has been deleted
0 new messages