API returns file not found

When i curl http://127.0.0.1/api/v0 I get an expected output

{
“ack_alert”: “http://127.0.0.1/api/v0/alerts/{id}”,
“add_components”: “http://127.0.0.1/api/v0/devices/{hostname}/components/{type}”,
“add_device”: “http://127.0.0.1/api/v0/devices”,
“add_device_group”: “http://127.0.0.1/api/v0/devicegroups”,
ect.ect.ect

when i curl anything else like http://127.0.0.1/api/v0/bgp or /ports or /oxidized i get
file not found
validate looks good and daily has been running

Thanks in advance

the same problem “file not found”
[email protected]:~$ curl -H ‘X-Auth-Token: mytoken’ http://ip/api/v0/bgp
File not found.
[email protected]:~$ curl -H ‘X-Auth-Token: mytoken’ http://ip/api/v0/oxidized
File not found.

validation is ok

Component Version
LibreNMS 21.6.0-1-g24b8bebde
DB Schema 2021_25_01_0127_create_isis_adjacencies_table (210)
PHP 7.4.14
Python 3.5.3
MySQL 10.5.10-MariaDB-1:10.5.10+maria~stretch
RRDTool 1.6.0
SNMP NET-SNMP 5.7.3

====================================

[OK] Composer Version: 2.1.3
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct

I’m seeing this same issue with our instance.

$curl -H ‘X-Auth-Token: TOKEN’ http://librenms/api/v0/devices
File not found.

====================================

Component Version
LibreNMS 21.7.0
DB Schema 2021_06_07_123600_create_sessions_table (213)
PHP 7.4.14
Python 3.5.3
MySQL 10.5.11-MariaDB-1:10.5.11+maria~stretch
RRDTool 1.6.0
SNMP NET-SNMP 5.7.3

====================================

[OK] Composer Version: 2.1.5
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct
[INFO] Detected Python Wrapper
[OK] Connection to memcached is ok

I installed a fresh instance on a newly created VM and it’s not doing the same thing there, so I think at some point ours broke and we just didn’t notice. Where are these files located? I’ve poked around both instances and don’t see anything right off.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.