Hello,
I just updated my machine from Debian 10 to 11, so Davical has been updated
from version 1.1.8 do 1.1.10.
Now, after the upgrade, I see this error when synchronizing the calendar
using the Android DAVx5 app:
caldav.php: Query: QF: SQL error "23503" - ERRORE: la INSERT o l'UPDATE sulla tabella "sync_tokens" viola il vincolo di chiave esterna "sync_tokens_collection_id_fkey"
DETTAGLI: La chiave (collection_id)=(-1) non è presente nella tabella "collection".
CONTESTO:
caldav.php: Query: QF: istruzione SQL "INSERT INTO sync_tokens(collection_id, sync_token) VALUES( in_collection_id, new_token )" funzione PL/pgSQL new_sync_token(bigint,bigint) riga 31 a istruzione SQL"
caldav.php: Query: QF: SELECT new_sync_token( 0, :collection_id) AS sync_token
caldav.php: Query: QF: ":collection_id" => "-1"
caldav.php: Query: QF: SQL error "23503" - ERRORE: la INSERT o l'UPDATE sulla tabella "sync_tokens" viola il vincolo di chiave esterna "sync_tokens_collection_id_fkey"
DETTAGLI: La chiave (collection_id)=(-1) non è presente nella tabella "collection".
CONTESTO:
caldav.php: Query: QF: istruzione SQL "INSERT INTO sync_tokens(collection_id, sync_token) VALUES( in_collection_id, new_token )" funzione PL/pgSQL new_sync_token(bigint,bigint) riga 31 a istruzione SQL"
caldav.php: Query: QF: SELECT new_sync_token( 0, :collection_id) AS sync_token
caldav.php: Query: QF: ":collection_id" => "-1"
PHP message: davical: BUG: :DAViCal Fatal Error: [0] Problem with database query at /usr/share/davical/inc/DAVResource.php:1359
In fact, PostgreSQL 11 shows the same error:
2023-06-13 11:25:51 CEST [89117-5] davical_app@davical ERRORE: la INSERT o l'UPDATE sulla tabella "sync_tokens" viola il vincolo di chiave esterna "sync_tokens_collection_id_fkey"
2023-06-13 11:25:51 CEST [89117-6] davical_app@davical DETTAGLI: La chiave (collection_id)=(-1) non è presente nella tabella "collection".
2023-06-13 11:25:51 CEST [89117-7] davical_app@davical CONTESTO: istruzione SQL "INSERT INTO sync_tokens(collection_id, sync_token) VALUES( in_collection_id, new_token )"
funzione PL/pgSQL new_sync_token(bigint,bigint) riga 31 a istruzione SQL
2023-06-13 11:25:51 CEST [89117-8] davical_app@davical ISTRUZIONE: SELECT new_sync_token( 0, -1) AS sync_token
Is this a know error? How may I fix it?
Thank you,
Giuseppe
_______________________________________________
Davical-general mailing list
Davical-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/davical-general
I just updated my machine from Debian 10 to 11, so Davical has been updated
from version 1.1.8 do 1.1.10.
Now, after the upgrade, I see this error when synchronizing the calendar
using the Android DAVx5 app:
caldav.php: Query: QF: SQL error "23503" - ERRORE: la INSERT o l'UPDATE sulla tabella "sync_tokens" viola il vincolo di chiave esterna "sync_tokens_collection_id_fkey"
DETTAGLI: La chiave (collection_id)=(-1) non è presente nella tabella "collection".
CONTESTO:
caldav.php: Query: QF: istruzione SQL "INSERT INTO sync_tokens(collection_id, sync_token) VALUES( in_collection_id, new_token )" funzione PL/pgSQL new_sync_token(bigint,bigint) riga 31 a istruzione SQL"
caldav.php: Query: QF: SELECT new_sync_token( 0, :collection_id) AS sync_token
caldav.php: Query: QF: ":collection_id" => "-1"
caldav.php: Query: QF: SQL error "23503" - ERRORE: la INSERT o l'UPDATE sulla tabella "sync_tokens" viola il vincolo di chiave esterna "sync_tokens_collection_id_fkey"
DETTAGLI: La chiave (collection_id)=(-1) non è presente nella tabella "collection".
CONTESTO:
caldav.php: Query: QF: istruzione SQL "INSERT INTO sync_tokens(collection_id, sync_token) VALUES( in_collection_id, new_token )" funzione PL/pgSQL new_sync_token(bigint,bigint) riga 31 a istruzione SQL"
caldav.php: Query: QF: SELECT new_sync_token( 0, :collection_id) AS sync_token
caldav.php: Query: QF: ":collection_id" => "-1"
PHP message: davical: BUG: :DAViCal Fatal Error: [0] Problem with database query at /usr/share/davical/inc/DAVResource.php:1359
In fact, PostgreSQL 11 shows the same error:
2023-06-13 11:25:51 CEST [89117-5] davical_app@davical ERRORE: la INSERT o l'UPDATE sulla tabella "sync_tokens" viola il vincolo di chiave esterna "sync_tokens_collection_id_fkey"
2023-06-13 11:25:51 CEST [89117-6] davical_app@davical DETTAGLI: La chiave (collection_id)=(-1) non è presente nella tabella "collection".
2023-06-13 11:25:51 CEST [89117-7] davical_app@davical CONTESTO: istruzione SQL "INSERT INTO sync_tokens(collection_id, sync_token) VALUES( in_collection_id, new_token )"
funzione PL/pgSQL new_sync_token(bigint,bigint) riga 31 a istruzione SQL
2023-06-13 11:25:51 CEST [89117-8] davical_app@davical ISTRUZIONE: SELECT new_sync_token( 0, -1) AS sync_token
Is this a know error? How may I fix it?
Thank you,
Giuseppe
_______________________________________________
Davical-general mailing list
Davical-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/davical-general