Restoring backup of 1.5.24 in 1.6 resulted in Authentication error

Hello,

I am new to Nocobase. Making due diligence before putting to production use.
I have version 1.5.24 running, I stopped the server and back up the database using pg_dump.
Then I have another instance of 1.6 with restored database from the backup.

Then when I tried to login, I got the following error.

relation "issuedTokens" does not exist

When I check the log, I found the following.

{"level":"error","message":"response /api/auth:signIn","method":"POST","path":"/api/auth:signIn","res":[{"message":"relation \"issuedTokens\" does not exist"}],"action":{"actionName":"signIn","resourceName":"auth","params":{"resourceName":"auth","actionName":"signIn","values":{"account":"user01"}}},"status":500,"cost":52,"app":"main","reqId":"fd0fdbce-55b5-49ee-88e4-2f0e73c5ca6e","bodySize":67,"timestamp":"2025-03-20 13:49:08"}

I would like to know if I missed anything in the backup?

Or is something changed in 1.6 not compatible with 1.5?

Seeking advise.

Thanks in advance.

Please try installing version 1.5.24 and restore. Then, upgrade it to version 1.6.

1 Like

Hi.

The same thing is happening to me.

I tried updating to the latest stable version. I don’t know why, but my main application is version 1.2 and the subapplications are version 1.5.12. During the update, I get a migration error. I created a new nocobase application, restored the backup in PostgreSQL, and restored the storage, but nothing works. Then, I used

yarn nocobase upgrade

and now I can’t log in to the main application. The error is

Cannot read properties of null (reading 'sessionExpirationTime')

But I can log in to the subapplications, which are version 1.6.9.

Regards.

After updating the code, please run yarn nocobase upgrade to complete the upgrade.

1 Like

Hello.

Thanks for your reply.

Please close this post.

After @2013xile’s update

All is well.

Regards