Hello,
I have some strange problem, when deploying and adding zimlets to COS.
When I run:
- zmzimletctl undeploy com_zimbra_social
- zmzimletctl deploy zimlets/com_zimbra_social.zip (i have added 1 *.propeties file for slovenian language)
- zmzimletctl acl com_zimbra_social abak grant
commands in terminal it works just fine
but i have a shell script which should make things easier or automated but it throws me an error
when trying to execute the last command (zmzimletctl acl com_zimbra_social abak grant).
I'm deploying 3 zimlets (i have named them in an array) and with the script i read the COS list and i ask for every
COS if you want to include that zimlet to that COS
Zimlets:
- com_zimbra_social
- com_zimbra_gtranslator
- org_abak_portal (my own zimlet)
Part of the script:
The strange thing is that it only fails on com_zimbra_social and com_zimbra_gtranslatorCode:coslist="" for i in $(su - zimbra -c "zmprov gac"); do echo " - $i" coslist="$coslist $i" done ask "Do you wnat to install additional zimlets?" "Yes" if [ "$answer" = "Yes" ]; then zim=(com_zimbra_social com_zimbra_gtranslator org_abak_portal) for z in "${zim[@]}" ; do echo "" ask "Install $z ?" "Yes" if [ "$answer" = "Yes" ]; then cd $ZIMDIR/zimlets rm -f $z.zip cp $MYDIR/$z.zip . chown zimbra:zimbra $z.zip su - zimbra -c "zmzimletctl undeploy $z" su - zimbra -c "zmzimletctl deploy zimlets/$z.zip" for c in $coslist; do if [ "$c" != "default" ]; then ask "Enable $z in profile $c?" "Yes" if [ "$answer" = "Yes" ]; then su - zimbra -c "zmzimletctl acl $z $c grant" fi fi done fi done fi
Error given from script when executing su - zimbra -c "zmzimletctl acl $z $c grant" command:
The same error appears for com_zimbra_gtranslator...Code:[] INFO: Adding Zimlet com_zimbra_social to COS abak com.zimbra.cs.account.AccountServiceException: no such zimlet: com_zimbra_social ExceptionId:main:1315173313290:6a9cc64258a36abf Code:account.NO_SUCH_ZIMLET at com.zimbra.cs.account.AccountServiceException.NO_SUCH_ZIMLET(AccountServiceException.java:231) at com.zimbra.cs.zimlet.ZimletUtil.getZimletConfig(ZimletUtil.java:271) at com.zimbra.cs.zimlet.ZimletUtil.activateZimlet(ZimletUtil.java:778) at com.zimbra.cs.zimlet.ZimletUtil.aclZimlet(ZimletUtil.java:893) at com.zimbra.cs.zimlet.ZimletUtil.dispatch(ZimletUtil.java:1820) at com.zimbra.cs.zimlet.ZimletUtil.main(ZimletUtil.java:1895) [] ERROR: Error com.zimbra.cs.account.AccountServiceException: no such zimlet: com_zimbra_social ExceptionId:main:1315173313290:6a9cc64258a36abf Code:account.NO_SUCH_ZIMLET at com.zimbra.cs.account.AccountServiceException.NO_SUCH_ZIMLET(AccountServiceException.java:231) at com.zimbra.cs.zimlet.ZimletUtil.getZimletConfig(ZimletUtil.java:271) at com.zimbra.cs.zimlet.ZimletUtil.activateZimlet(ZimletUtil.java:778) at com.zimbra.cs.zimlet.ZimletUtil.aclZimlet(ZimletUtil.java:893) at com.zimbra.cs.zimlet.ZimletUtil.dispatch(ZimletUtil.java:1820) at com.zimbra.cs.zimlet.ZimletUtil.main(ZimletUtil.java:1895)
So any ideas what could throw this error and why it appears only when running the script not when i do it manually?


LinkBack URL
About LinkBacks
?

