Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.5.1] Firefly fails with ldap auth (ldap not defined) #4557

Closed
tryffel opened this issue Mar 29, 2021 · 4 comments
Closed

[5.5.1] Firefly fails with ldap auth (ldap not defined) #4557

tryffel opened this issue Mar 29, 2021 · 4 comments
Labels
bug Verified and replicated bugs and issues.

Comments

@tryffel
Copy link

tryffel commented Mar 29, 2021

Bug description
I upgraded to Firefly 5.5.1 (from 5.4.5) and now I'm completely unable to view any pages in Firefly. Also unable to login, every request returns http 500.

Env: docker
Auth backend: Ldap (Freeipa)
As for upgrading, I only added the 'firefly_iii_layout=v2' and kept env file otherwise identical.

Steps to reproduce

  1. Configure working ldap authentication (FreeIPA)
  2. Upgrade to 5.5.1
  3. Try to access web page

Extra info
No debug info available (http 500)

Docker log:
(Note: logs are not complete, because I had to run image a couple of times and migrations were already successfully executed)

Now in entrypoint.sh for Firefly III
Entrypoint script version is 1.0.13 (2021-02-11)
Running as 'root' in group 'root'.
Current working dir is '/var/www/html'
Now parsing _FILE variables.
done!
Touch DB file (if SQLite)...
Dump auto load...
Discover packages...
Current working dir is '/var/www/html'
Wait for the database.
wait-for-it.sh: waiting 60 seconds for <host>:5432
wait-for-it.sh: <host>:5432 is available after 0 seconds
DB is up. Time to execute artisan commands.
Wait another 15 seconds in case the DB needs to boot.
Done waiting for the DB to boot.
Current working dir is '/var/www/html'
Run various artisan commands...
Running migration commands...
CreateDB does not apply to "pgsql", skipped.
Nothing to migrate.
Seeding: Database\Seeders\AccountTypeSeeder
Seeded:  Database\Seeders\AccountTypeSeeder (42.88ms)
Seeding: Database\Seeders\TransactionCurrencySeeder
Seeded:  Database\Seeders\TransactionCurrencySeeder (63.13ms)
Seeding: Database\Seeders\TransactionTypeSeeder
Seeded:  Database\Seeders\TransactionTypeSeeder (14.76ms)
Seeding: Database\Seeders\PermissionSeeder
Seeded:  Database\Seeders\PermissionSeeder (5.79ms)
Seeding: Database\Seeders\LinkTypeSeeder
Seeded:  Database\Seeders\LinkTypeSeeder (10.96ms)
Seeding: Database\Seeders\ConfigSeeder
Seeded:  Database\Seeders\ConfigSeeder (15.57ms)
Database seeding completed successfully.
Going to decrypt the database.
No decryption required for table "accounts".
No decryption required for table "attachments".
No decryption required for table "bills".
No decryption required for table "budgets".
No decryption required for table "categories".
No decryption required for table "piggy_banks".
No decryption required for table "preferences".
No decryption required for table "tags".
No decryption required for table "transaction_journals".
No decryption required for table "transactions".
No decryption required for table "journal_links".
Done!
Current working dir is '/var/www/html'
Running upgrade commands...

In CreatesUserProviders.php line 42:
                                                       
  Authentication user provider [ldap] is not defined.  
                                                       


In CreatesUserProviders.php line 42:
                                                       
  Authentication user provider [ldap] is not defined.  
                                                       


In CreatesUserProviders.php line 42:
                                                       
  Authentication user provider [ldap] is not defined.  
                                                       


In CreatesUserProviders.php line 42:
                                                       
  Authentication user provider [ldap] is not defined.  
                                                       


In CreatesUserProviders.php line 42:
                                                       
  Authentication user provider [ldap] is not defined.  
                                                       

This command has already been executed.
This command has already been executed.

In CreatesUserProviders.php line 42:
                                                       
  Authentication user provider [ldap] is not defined.  
                                                       

This command has already been executed.
No incorrectly stored credit card liabilities.
This command has already been executed.
This command has already been executed.
This command has already been executed.
Running verification commands...
@JC5
Copy link
Member

JC5 commented Mar 29, 2021

Sorry, this is an undocumented change I completely forgot about. The package needed for LDAP is optional and no longer provided by default. I'll see what I can do for the Docker image.

@JC5 JC5 added the bug Verified and replicated bugs and issues. label Mar 29, 2021
@JC5
Copy link
Member

JC5 commented Mar 29, 2021

The latest develop tag should work, let me know.

@tryffel
Copy link
Author

tryffel commented Mar 29, 2021

Yes it fixed it, thanks! As a side note, the new v2 layout looks fantastic!

@tryffel tryffel closed this as completed Mar 29, 2021
@gramakri
Copy link

gramakri commented Mar 30, 2021

Came here to report this issue for the Cloudron package which uses LDAP as well. Had to go looking a bit to see what the fix was since I couldn't find it in this repo.

The fix is in azure since the Dockerfiles are maintained there - https://dev.azure.com/Firefly-III/MainImage/_git/MainImage/commit/c82e8a278b2ed56a518d869ace56027041cd5a29?refName=refs%2Fheads%2Fmain&path=%2Fentrypoint.sh . Cloudron fix was https://git.cloudron.io/cloudron/firefly-iii-app/-/commit/f16f274124ad67cc85585c5cad09b731be3ccbdb

Thanks for the quick fix!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Verified and replicated bugs and issues.
Projects
None yet
Development

No branches or pull requests

3 participants