Projet

Général

Profil

Development #40024

migration, gestion des sites où unaccent n'est pas possible ou disponible

Ajouté par Frédéric Péters il y a environ 4 ans. Mis à jour il y a environ 4 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Version cible:
-
Début:
19 février 2020
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:
Non

Description

Pas dispo :

Feb 19 15:20:00 publik-frontal combo-manage[23974]:   File "/usr/lib/python3/dist-packages/django/db/backends/utils.py", line 64, in execute
Feb 19 15:20:00 publik-frontal combo-manage[23974]:     return self.cursor.execute(sql, params)
Feb 19 15:20:00 publik-frontal combo-manage[23974]: django.db.utils.OperationalError: ERREUR:  n'a pas pu ouvrir le fichier de contrôle d'extension « /usr/share/postgresql/9.4/extension/unaccent.control » : Aucun fichier ou dossier de ce type

Pas possible :

<fév 19 15:03:27 combo combo-manage[20914]:   File "/usr/lib/python3/dist-packages/django/db/backends/utils.py", line 64, in execute
fév 19 15:03:27 combo combo-manage[20914]:     return self.cursor.execute(sql, params)
fév 19 15:03:27 combo combo-manage[20914]: django.db.utils.ProgrammingError: permission denied to create extension "unaccent" 
fév 19 15:03:27 combo combo-manage[20914]: HINT:  Must be superuser to create this extension.

Fichiers

Révisions associées

Révision 3004989c (diff)
Ajouté par Frédéric Péters il y a environ 4 ans

search: allow failures to enable unaccent extension (#40024)

Historique

#1

Mis à jour par Frédéric Péters il y a environ 4 ans

C'est pas bien joli, surtout l'InternalError, mais c'est testé sur mon installation locale en simulant l'absence d'extension (en remplaçant "unaccent" par "whatever").

#2

Mis à jour par Thomas Noël il y a environ 4 ans

Peut-être ma fatigue, mais que vaut dictionaries en cas de InternalError (pour le « 'WITH %s' % dictionaries ») ?

#3

Mis à jour par Frédéric Péters il y a environ 4 ans

Ce sera french_stem (InternalError est levé parce que OperationalError a été levée).

#4

Mis à jour par Thomas Noël il y a environ 4 ans

  • Statut changé de Solution proposée à Solution validée

Ok, pigé.

#5

Mis à jour par Frédéric Péters il y a environ 4 ans

  • Statut changé de Solution validée à Résolu (à déployer)
commit 3004989cdc71f2198ccf100c09606e38926f0b24
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Wed Feb 19 15:31:57 2020 +0100

    search: allow failures to enable unaccent extension (#40024)
#6

Mis à jour par Frédéric Péters il y a environ 4 ans

  • Statut changé de Résolu (à déployer) à Solution déployée

Formats disponibles : Atom PDF