siodb icon indicating copy to clipboard operation
siodb copied to clipboard

Ubuntu 18.04 | add token mytoken with expiration_timestamp | Protocol error: can't read message type

Open niolap opened this issue 4 years ago • 0 comments

Issue

Only observe on Ubuntu 18.04. When creating a token with an expiration date, IOMgr generates an error when the session finishes:

siocli> create user test ;
Connected to SIODB instance siodb at /run/siodb/siodb.socket in the admin mode.
Command execution time: 9 ms.
siocli> alter user test add token mytoken with expiration_timestamp='2023-01-01 01:01:01';

Server: token: b685ca961644c1ce768dc8c5571096742c80cf912b4a38e0c4d5fae79c978af30094b8159b6b923ca597545136368767a0dad2fd72fbf35dbe5d2e77f64930ff

Command execution time: 13 ms.
siocli> exit
Bye

Error from IOMgr log file:

2020-12-05 16:07:25.250127 debug 155206 155938 IOManagerConnectionHandler-63[339]: Scheduling statement #0 for execution
2020-12-05 16:07:25.250151 debug 155206 155938 IOManagerConnectionHandler-63[339]: Waiting for statement #0 to complete...
2020-12-05 16:07:25.250173 debug 155206 155434 IOManagerRequestDispatcher: Dispatching IO Manager request #955
2020-12-05 16:07:25.250217 debug 155206 155434 IOManagerRequestDispatcher: Dispatching IO Manager request #955 to the executor #0
2020-12-05 16:07:25.250250 debug 155206 155435 IOManagerRequestExecutor-0: Executing IO Manager request #955
2020-12-05 16:07:25.250275 debug 155206 155435 IOManagerConnectionHandler-63[339]: Executing statement #0
2020-12-05 16:07:25.250332 debug 155206 155435 Database SYS: Recording user token #53 'MYTOKEN' for the user #4160 TEST
2020-12-05 16:07:25.262815 debug 155206 155435 IOManagerConnectionHandler-63[339]: Executed statement #0
2020-12-05 16:07:25.262878 debug 155206 155435 IOManagerRequestExecutor-0: Executed IO Manager request #955
2020-12-05 16:07:25.262906 debug 155206 155938 IOManagerConnectionHandler-63[339]: Waiting for request...
2020-12-05 16:07:29.045547 debug 155206 155938 IOManagerConnectionHandler-63[339]: Closing connection
2020-12-05 16:07:29.045626 error 155206 155938 IOManagerConnectionHandler-63[339]: Protocol error: can't read message type.
2020-12-05 16:07:29.045647 info 155206 155938 Session c987bba2-1f21-4041-a36f-42bde2ad08ac finished
2020-12-05 16:07:29.045657 debug 155206 155938 IOManagerConnectionHandler-63[339]: Closing connection

niolap avatar Dec 05 '20 16:12 niolap