Sync uses default host regardless of configured host, and can not remove configured sync account #636

Open
opened 2 years ago by TheTerrasque · 0 comments
TheTerrasque commented 2 years ago (Migrated from github.com)

Brief summary

Backstory

I set up a local instance of https://github.com/KotatsuApp/kotatsu-syncserver for use for syncing.

When pointing it to my domain I got an error, because tables weren't set up. I set up the tables, and registering account worked. I could see both in sync server logs and mysql table. When I started sync, I noticed there was no requests to the sync server, nothing in tables. Yet client still reported sync a success.

In synchronization settings it shows the default server address, any attempt to change that gets reset back to default setting. I also have no way to remove current sync account setup and try to set it up again.

Since kotatsu reports syncing successful, and the sync settings shows default host, I assume it created an account and synced to default server instead of the one I gave.

Only entries in syncserver logs:

2024-01-10 10:51:34.417 [eventLoopGroupProxy-4-1] ERROR Application - 200 OK: GET - / in 0ms
2024-01-10 10:51:34.764 [eventLoopGroupProxy-4-1] ERROR Application - 200 OK: POST - /auth in 337ms
2024-01-10 10:52:07.656 [eventLoopGroupProxy-4-1] ERROR Application - 200 OK: GET - / in 1ms

Database tables:

mysql> use kotatsu;
Database changed
mysql> select * from users;
+----+-------------------+-----------------+----------+---------------------------+------------------------+
| id | email             | password        | nickname | favourites_sync_timestamp | history_sync_timestamp |
+----+-------------------+-----------------+----------+---------------------------+------------------------+
|  1 | user@domain.net   | ??????????S???? | NULL     |                      NULL |                   NULL |
+----+-------------------+-----------------+----------+---------------------------+------------------------+
1 row in set (0.00 sec)

mysql> select * from categories;
Empty set (0.00 sec)

mysql> select * from manga;
Empty set (0.00 sec)

mysql> select * from favourites;
Empty set (0.00 sec)

mysql> 

Steps to reproduce

No response

Kotatsu version

6.5.4

Android version

14

Device

No response

Acknowledgements

  • I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open issue.
  • If this is an issue with a parser, I should be opening an issue in the parsers repository.
### Brief summary Backstory I set up a local instance of https://github.com/KotatsuApp/kotatsu-syncserver for use for syncing. When pointing it to my domain I got an error, because tables weren't set up. I set up the tables, and registering account worked. I could see both in sync server logs and mysql table. When I started sync, I noticed there was no requests to the sync server, nothing in tables. Yet client still reported sync a success. In synchronization settings it shows the default server address, any attempt to change that gets reset back to default setting. I also have no way to remove current sync account setup and try to set it up again. Since kotatsu reports syncing successful, and the sync settings shows default host, I assume it created an account and synced to default server instead of the one I gave. Only entries in syncserver logs: ``` 2024-01-10 10:51:34.417 [eventLoopGroupProxy-4-1] ERROR Application - 200 OK: GET - / in 0ms 2024-01-10 10:51:34.764 [eventLoopGroupProxy-4-1] ERROR Application - 200 OK: POST - /auth in 337ms 2024-01-10 10:52:07.656 [eventLoopGroupProxy-4-1] ERROR Application - 200 OK: GET - / in 1ms ``` Database tables: ``` mysql> use kotatsu; Database changed mysql> select * from users; +----+-------------------+-----------------+----------+---------------------------+------------------------+ | id | email | password | nickname | favourites_sync_timestamp | history_sync_timestamp | +----+-------------------+-----------------+----------+---------------------------+------------------------+ | 1 | user@domain.net | ??????????S???? | NULL | NULL | NULL | +----+-------------------+-----------------+----------+---------------------------+------------------------+ 1 row in set (0.00 sec) mysql> select * from categories; Empty set (0.00 sec) mysql> select * from manga; Empty set (0.00 sec) mysql> select * from favourites; Empty set (0.00 sec) mysql> ``` ### Steps to reproduce _No response_ ### Kotatsu version 6.5.4 ### Android version 14 ### Device _No response_ ### Acknowledgements - [X] I have searched the existing issues and this is a new ticket, **NOT** a duplicate or related to another open issue. - [X] If this is an issue with a parser, I should be opening an issue in the [parsers repository](https://github.com/KotatsuApp/kotatsu-parsers/issues/new/choose).
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: KotatsuApp/Kotatsu#636
Loading…
There is no content yet.