[Mapbender-users] [mapbender/mapbender] SearchRouter - Database Connection will not be found (Issue #1671)

Astrid Emde (WhereGroup) astrid.emde at wheregroup.com
Thu Jan 16 23:02:10 PST 2025


Hello,

in your searchrouter configuration you refer to the ALIAS: geodata_db

please check the name in doctrine.yaml. It has to be geodata_db

Please check the connection in env.local

Also clear the cache.

And you can check the connection via

bin/console mapbender:config:check

Does the database show up here (it will be shown with the real dbname)

See you Astrid



Am 2025-01-17 07:39, schrieb beli2go:
> I follow the instruction of adding a new (Postgres) Database
> connection.
> I do my editing to doctrine.yaml and env.local.
> The definition for the search ist also similar to the instruction.
> The frontend shows the expected style.
> But by typing something there ist always the error:
> 
> No search results.
> {"statusCode":500,"headers":{"Vary":"Accept"},"class":"InvalidArgumentException","file":"C:\app\mapbender403\vendor\doctrine\persistence\src\Persistence\AbstractManagerRegistry.php","line":102,"statusText":"Internal
> Server Error","message":"Doctrine ORM Connection named "geodata_db"
> does not exist."............
> 
> This happens even if there are entries in doctrine.yaml and/or
> env.local or not.
> 
> It seem's that there is something wrong with the search engine or the
> instruction.
> 
> --
> Reply to this email directly, view it on GitHub [1], or unsubscribe
> [2].
> You are receiving this because you are subscribed to this
> thread.Message ID: <mapbender/mapbender/issues/1671 at github.com>
> 
> Links:
> ------
> [1] https://github.com/mapbender/mapbender/issues/1671
> [2] 
> https://github.com/notifications/unsubscribe-auth/AAHTHSVWR2GVZR2S26KKZPL2LCQRTAVCNFSM6AAAAABVLHKBQKVHI2DSMVQWIX3LMV43ASLTON2WKOZSG44TINRZHE4TCNA

-- 
Mit freundlichen Grüßen

Astrid Emde
GIS-Consultant

---------------------------------------------
Schon gewusst?

In unserem Blog geben wir Tipps & Tricks zu Open-Source-GIS-Software
und berichten aus unseren Projekten

https://wheregroup.com/blog/
---------------------------------------------

   Astrid Emde
   WhereGroup GmbH
   Eifelstraße 7
   53119 Bonn
   Germany

   Tel: +49(0)228 90 90 38 - 22
   Fax: +49(0)228 90 90 38 - 11

   astrid.emde at wheregroup.com
   www.wheregroup.com

   Meinen PGP Public-Key können Sie unter pgp.mit.edu herunterladen:
   
https://keys.openpgp.org/vks/v1/by-fingerprint/01F8152D36FC07C25EADDE86C5084ACC1C287CCB
   Signierte und/oder verschlüsselte Nachrichten sind sehr willkommen

   Geschäftsführer:
   Olaf Knopp, Peter Stamm
   Amtsgericht Bonn, HRB 9885
-------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0x1C287CCB.asc
Type: application/pgp-keys
Size: 1574 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapbender_users/attachments/20250117/066d057e/attachment.key>


More information about the Mapbender_users mailing list