Repository: librenms/librenms (language: php)

Issue:
Installer broken
### The problem

Installing on latest Debian 12 following the directions at https://docs.librenms.org/Installation/Install-LibreNMS/

getting stuck on the "Build Database" step:

```
.......................
 37ms
 FAIL
SQLSTATE[HY000] [1045] Access denied for user 'librenms'@'localhost' (using password: NO) (Connection: mysql, SQL: delete from cache where key = laravel_cache_spatie.permission.cache)

Error!
```

If you use a blank password for LibreNMS then the installer will progress past this screen but on the User config screen we get the following error:

![Image](https://github.com/user-attachments/assets/e581c0e2-4b53-4789-b7db-3658286449cb)

Resetting back to commit https://discord.com/channels/327529583601647617/327529583601647617/1354671130958368960 allows the installation to go smoothly following the directions as written.


### Output of ./validate.php

```txt
librenms@status:~$ ./validate.php
===========================================
Component | Version
--------- | -------
LibreNMS  | 25.3.0-57-gda6ed13a3 (2025-03-26T14:53:24-07:00)
DB Schema | 2025_03_22_134124_fix_ipv6_addresses_id_type (327)
PHP       | 8.2.28
Python    | 3.11.2
Database  | MariaDB 10.11.11-MariaDB-0+deb12u1
RRDTool   | 1.7.2
SNMP      | 5.9.3
===========================================

[OK]    Composer Version: 2.8.6
[OK]    Dependencies up-to-date.
[OK]    Database connection successful
[WARN]  You have no devices.
        [FIX]:
        Consider adding a device such as localhost: /addhost
[OK]    Database connection successful
[OK]    Database Schema is current
[OK]    SQL Server meets minimum requirements
[OK]    lower_case_table_names is enabled
[OK]    MySQL engine is optimal
[OK]    Database and column collations are correct
[FAIL]  We have detected that your database schema may be wrong
Database: incorrect column (notifications/datetime)
Database: missing index (ports_stack/ports_stack_device_id_port_id_high_port_id_low_unique)
Database: extra index (ports_stack/ports_stack_device_id_high_ifindex_low_ifindex_unique)
Database: incorrect column (users/created_at)
        [FIX]:
        Run the following SQL statements to fix it
        SQL Statements:
         SET TIME_ZONE='+00:00';
         ALTER TABLE `notifications` CHANGE `datetime` `datetime` timestamp NOT NULL DEFAULT '1970-01-02 00:00:00' ;
         ALTER TABLE `ports_stack` DROP INDEX `ports_stack_device_id_high_ifindex_low_ifindex_unique`;
         ALTER TABLE `ports_stack` ADD UNIQUE `ports_stack_device_id_port_id_high_port_id_low_unique` (`device_id`,`high_ifIndex`,`low_ifIndex`);
         ALTER TABLE `users` CHANGE `created_at` `created_at` timestamp NOT NULL DEFAULT '1970-01-02 00:00:01' ;
```

### What was the last working version of LibreNMS?

_No response_

### Anything in the logs that might be useful for us?

```txt

```


Discussion / hints:

Fix patch:
diff --git a/database/migrations/2025_03_17_222652_create_permission_tables.php b/database/migrations/2025_03_17_222652_create_permission_tables.php
index 7051ca27d997..15777b2134bd 100644
--- a/database/migrations/2025_03_17_222652_create_permission_tables.php
+++ b/database/migrations/2025_03_17_222652_create_permission_tables.php
@@ -113,10 +113,6 @@ public function up(): void
 
             $table->primary([$pivotPermission, $pivotRole], 'role_has_permissions_permission_id_role_id_primary');
         });
-
-        app('cache')
-            ->store(config('permission.cache.store') != 'default' ? config('permission.cache.store') : null)
-            ->forget(config('permission.cache.key'));
     }
 
     /**


Test patch: