Cannot create API tokes

I have a fresh installation of Librenms, and I’m not able to create a Token API. The system display the error: “An error occurred creating the token.”. Below my validate results:

Component Version
LibreNMS 1.65-1-gad6348af4
DB Schema 2020_06_23_00522_alter_availability_perc_column (170)
PHP 7.3.14-1~deb10u1
Python 3.7.3
MySQL 10.3.22-MariaDB-0+deb10u1
RRDTool 1.7.1
SNMP NET-SNMP 5.7.3

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

[OK] Composer Version: 1.10.8
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct
sh: 1: pip3: not found
[WARN] Your install is over 24 hours out of date, last update: Fri, 03 Jul 2020 09:54:12 +0000
[FIX]:
Make sure your daily.sh cron is running and run ./daily.sh by hand to see if there are any errors.

check you web browser console. Likely has an error with an incorrect url. If that is the case, set server_name in your webserver config or base_url in the LibreNMS config, or both.

In my case, this happened because librenms lives in a ‘/librenms’ subdirectory, and the software still tries to access ‘/axax_form.php’ without prepending ‘/librenms’ to the path (see your browser inspection button/

I’ve set both '$config[‘base_url’] = ‘/librenms’; in config.php and APP_URL=/librenms in .env without luck.
In the end, I replaced the url ‘/librenms’ by ‘/librenms/’ and now everything works as expected.

Hope this helps.