deleteOrphanBinaries.groovy

Hi, I would like to use deleteOrphanBinaries.groovy script, How use it ? Thanks. Regards, Eric Galant

0 votes

2 answers

1350 views

ANSWER



Thanks for your answer. But I don't know how launch the groovy script in nuxeo-shell.

Regards,

0 votes



Launch shell : java -cp nuxeo-shell.jar org.nuxeo.shell.Main

connect to server : connect http://localhost:8080/nuxeo/site/automation -u Administrator

launsch script : script /path/to/script

https://doc.nuxeo.com/nxdoc/nuxeo-shell/

11/21/2018

Thanks, it works but after 5 minutes the database transaction close and I obtain this error (I already changed this parameter in nuxeo.conf :nuxeo.db.transactiontimeout=3000 no effect …)

2018-11-22 09:10:05,591 ERROR [PoolIdleReleaseTimer] [org.nuxeo.runtime.jtajca.NuxeoConnectionTrackingCoordinator] Killed handle: org.nuxeo.ecm.core.storage.sql.ra.ConnectionImpl@78c1077dManagedConnectionInfo: org.apache.geronimo.connector.outbound.ManagedConnectionInfo@22bee087. mc: org.nuxeo.ecm.core.storage.sql.ra.ManagedConnectionImpl@40fd11ad], was obtained by http-nio-0.0.0.0-8080-exec-6 at Thu Nov 22 09:04:15 CET 2018 and timed out at Thu Nov 22 09:09:15 CET 2018

Regards,

11/22/2018

maybe you could give a look at nuxeo.db.active-timeout-minutes and nuxeo.vcs.active-timeout-minutes
11/22/2018

I updated the nuxeo.vcs.active-timeout-minutes value and it woks now. Thanks,
11/22/2018


You can use nuxeo-shell in order to launch the script

0 votes