I can reach the welcome/ page. I started the test and go to the example/ page.
I created a new Document.
The i got this error :
Error
You are trying to perform an action you do not have rights for. Please contact your Document Server administrator.
Press "OK" to return to document list.
in /var/log/onlyoffice/documentserver/docservice/out.log, i got:
[2024-01-10T15:09:03.035] [WARN] [localhost] [10.0.2.2new.docx1704815924806] [uid-1] nodeJS - sqlQuery error sqlCommand: INSERT INTO task_result (tenant, id, status, statu: error: la relation « task_result » n'existe pas
at /snapshot/server/build/server/DocService/node_modules/pg-pool/index.js:45:11
at processTicksAndRejections (internal/process/task_queues.js:95:5)
[2024-01-10T15:09:03.035] [ERROR] [localhost] [10.0.2.2new.docx1704815924806] [uid-1] nodeJS - auth error: error: la relation « task_result » n'existe pas
at /snapshot/server/build/server/DocService/node_modules/pg-pool/index.js:45:11
at processTicksAndRejections (internal/process/task_queues.js:95:5)
I noticed that in onlyoffice database there is no structure (no table).
A file new.docx has been created but whatever i want to do with (except download) i get the same issue.
Hello @evamed,
Please specify the version of PostgreSQL you have installed: psql -V
Also attach your config file /etc/onlyoffice/documentserver/local.json
#psql -h localhost -U onlyoffice -d onlyoffice -f /var/www/onlyoffice/documentserver/server/schema/postgresql/createdb.sql
Mot de passe pour l'utilisateur onlyoffice :
psql:/var/www/onlyoffice/documentserver/server/schema/postgresql/createdb.sql:21: ERREUR: droit refusé pour le schéma public
LIGNE 1 : CREATE TABLE IF NOT EXISTS "public"."doc_changes" (
^
psql:/var/www/onlyoffice/documentserver/server/schema/postgresql/createdb.sql:41: ERREUR: droit refusé pour le schéma public
LIGNE 1 : CREATE TABLE IF NOT EXISTS "public"."task_result" (
^
psql:/var/www/onlyoffice/documentserver/server/schema/postgresql/createdb.sql:73: ERREUR: droit refusé pour le schéma public
FYI:
onlyoffice=> \l
Liste des bases de données
Nom | Propriétaire | Encodage | Collationnement | Type caract. | Locale ICU | Fournisseur de locale | Droits d'accès
------------+--------------+----------+-----------------+--------------+------------+-----------------------+-------------------------
onlyoffice | postgres | UTF8 | fr_FR.UTF-8 | fr_FR.UTF-8 | | libc | =Tc/postgres +
| | | | | | | postgres=CTc/postgres +
| | | | | | | onlyoffice=CTc/postgres
postgres | postgres | UTF8 | fr_FR.UTF-8 | fr_FR.UTF-8 | | libc |
template0 | postgres | UTF8 | fr_FR.UTF-8 | fr_FR.UTF-8 | | libc | =c/postgres +
| | | | | | | postgres=CTc/postgres
template1 | postgres | UTF8 | fr_FR.UTF-8 | fr_FR.UTF-8 | | libc | =c/postgres +
| | | | | | | postgres=CTc/postgres
(4 lignes)
onlyoffice=> \d
Aucune relation n'a été trouvée.
onlyoffice=> \du
Liste des rôles
Nom du rôle | Attributs | Membre de
-------------+---------------------------------------------------------------------------------+-----------
onlyoffice | | {}
postgres | Superutilisateur, Créer un rôle, Créer une base, Réplication, Contournement RLS | {}
onlyoffice=> \dn+
Liste des schémas
Nom | Propriétaire | Droits d'accès | Description
--------+-------------------+----------------------------------------+------------------------
public | pg_database_owner | pg_database_owner=UC/pg_database_owner+| standard public schema
| | =U/pg_database_owner |
(1 ligne)
onlyoffice=> GRANT USAGE, CREATE ON SCHEMA public TO onlyoffice;
ATTENTION: aucun droit n'a été accordé pour « public »
GRANT
onlyoffice=> \du
Liste des rôles
Nom du rôle | Attributs | Membre de
-------------+---------------------------------------------------------------------------------+-----------
onlyoffice | | {}
postgres | Superutilisateur, Créer un rôle, Créer une base, Réplication, Contournement RLS | {}
Please specify if PostgreSQL 15 was already installed and used on this server before you installed Document Server? I’m asking this because I’ve tested a clean installation of the Document Server and sudo apt-get install postgresql installs PostgreSQL 16.
Hi Carl,
Paostgresql has been installed just before onlyoffice installation like in documentation. So installation of postresql 15 was new. Never tried with v16 as v15 is last version proposed by repository of Debian.
As i can’t give rights to onlyoffice user on onlyoffice database, i changed the owner of the database from postgresql to only office:
with the result i can’t execute the script createdb.sql with no error:
psql -h localhost -U onlyoffice -d onlyoffice -f /var/www/onlyoffice/documentserver/server/schema/postgresql/createdb.sql
Mot de passe pour l'utilisateur onlyoffice :
CREATE TABLE
CREATE TABLE
CREATE FUNCTION
When I create a new document, or try to open a document, i have this new error: