Error account is disabled v3.8

Hi Anton
how can i reactivate the admin account in h2 database.

my mistake is the following: account is disabled - SecurityException (Permission Manager:162<*:259<Sesion Resource:94<)
the version I use is: v3.8.
I would really appreciate your help, please.

Anton Tananaev5 years ago

You need to manually change the flag in the database and then restart the service.

can you explain how please.

because I did the following way.

java -cp /opt/traccar/lib/h2-1.4.193.jar org.h2.tools.Shell -url jdbc:h2:/opt/traccar/data/database -user sa

update users set admin='TRUE' where id=1 ;
update users set disabled='TRUE' where id=1 ;
Anton Tananaev5 years ago

Looks correct.

I did not succeed :'v

jaimzj5 years ago

You need to update the disabled value to FALSE

It worked friend.
thanks.
;v