I have update Pydio Cells Home Edition to 1.6.0 from webUI and now pydio.grpc.user-meta won’t start.
In the logs I see this when cells is started.
{“level”:“info”,“ts”:“2019-07-06T19:26:28+02:00”,“logger”:“pydio.grpc.user-meta”,“msg”:“started”}
{“level”:“info”,“ts”:“2019-07-06T19:26:28+02:00”,“logger”:“pydio.grpc.user-meta”,“msg”:“Inserting default namespace for metadata”}
{“level”:“error”,“ts”:“2019-07-06T19:26:28+02:00”,“logger”:“pydio.grpc.user-meta”,“msg”:“could not initialise service at version 1.6.0”,“error”:“Error 1062: Duplicate entry ‘usermeta-tags’ for key ‘namespace’”}
{“level”:“error”,“ts”:“2019-07-06T19:26:28+02:00”,“logger”:“pydio.grpc.user-meta”,“msg”:"Could not run ",“error”:“Error 1062: Duplicate entry ‘usermeta-tags’ for key ‘namespace’”}
{“level”:“info”,“ts”:“2019-07-06T19:26:28+02:00”,“logger”:“pydio.grpc.user-meta”,“msg”:“stopping”}
Ok. I knnow nothing about the project but I decided to try the solution that seemed logical reading the error messages and the database data.
So I did a backup of those tables and deleted from table idm_usr_meta_ns the row which namespace value is usermeta-tags. Then restarted pydio cells and all is working again.
The problem was the row with namespace usermeta-tags in idm_usr_meta_ns table.
For some reason on start cells was trying to insert that row and failed. Because the column namespace must have a unique index and the row already existed.
Once I removed that row cells started the user-meta service correctly but It added the rows in the table idm_usr_meta_policies too. That’s why those were duplicated.
I don’t know anything about the code of this project but I suppose it was just a database migration being triggered on start.
Before this problem appeared, I did an update from 1.5.1 to 1.5.2, then from 1.5.2 to 1.5.3, then from 1.5.3 to 1.6.0, one after the other. Maybe I did something wrong during the updates.
The duplicates on the policies table were not a problem, I just remove them because seems the correct thing to do.