Installation Fail Under User Account

Need some help getting Zimbra Desktop set up and working?
rolo
Posts: 11
Joined: Wed Oct 26, 2016 4:40 pm

Re: Installation Fail Under User Account

Postby rolo » Wed Jun 21, 2017 4:24 pm

Error when trying to run Zimbra after changing file permissions in /opt/zimbra/ is:

Code: Select all

cp: preserving times for '/opt/zimbra/zdesktop/linux/node-webkit/package.json': Operation not permitted


And then the terminal just hangs.

Thanks


PriteshGajjar
Zimbra Employee
Zimbra Employee
Posts: 310
Joined: Tue Mar 31, 2015 4:59 am

Re: Installation Fail Under User Account

Postby PriteshGajjar » Tue Jun 27, 2017 6:11 am

Which JRE you have on your m/c? Is it openJDK/oracle? What is the version?
rolo
Posts: 11
Joined: Wed Oct 26, 2016 4:40 pm

Re: Installation Fail Under User Account

Postby rolo » Tue Jul 04, 2017 3:01 pm

I have tried in the install with both installs. Same issues arise when attempting to install to the user profile.

I don't believe it is a Java issue, but I only say that as an assumption.
sb0373
Posts: 18
Joined: Tue Sep 15, 2015 9:59 am

Re: Installation Fail Under User Account

Postby sb0373 » Wed Jul 19, 2017 11:58 am

Hi rolo,

I am experiencing the same issue on the latest Centos 7 packages. Did you manage to get anywhere and find a solution? The way I see it, you are following the instructions the same way as I am:
- Installing Zimbra Desktop as root
- Installing the user directories as root.

I will keep trying and let you know if I find something.

Best wishes,

Stefan
sb0373
Posts: 18
Joined: Tue Sep 15, 2015 9:59 am

Re: Installation Fail Under User Account

Postby sb0373 » Wed Jul 19, 2017 12:52 pm

ok, got the installation to work. Steps:
1. Add user to group zimbra.
2. Install/reinstall Zimbra Desktop as root
3. Run data setup script as user

Now when starting I get the error message:
"localconfig.xml zimbra_admin_service_port not updated by jetty !"

Let's see how to solve that one
sb0373
Posts: 18
Joined: Tue Sep 15, 2015 9:59 am

Re: Installation Fail Under User Account

Postby sb0373 » Wed Jul 19, 2017 1:30 pm

ok, I cheated. I commented out both exit commands in /opt/zimbra/zdesktop/linux/zdrun.sh and I am now able to start Zimbra Desktop
dberry
Posts: 2
Joined: Mon Jul 24, 2017 8:52 pm

Re: Installation Fail Under User Account

Postby dberry » Mon Jul 24, 2017 9:42 pm

Did you get this going?

I had the same error:
Installing user data files...done
Initializing user data...Error: cannot open file /opt/zimbra/zdesktop/linux/zdrun.pl.tmp

[dberry@dberry ~]$ ls -ld /opt/zimbra/zdesktop/linux
drwxrwxr-x. 3 1000 gcc 4096 Apr 10 05:43 /opt/zimbra/zdesktop/linux

The installer is using UID/GID 1000 for that folder (there is a group (gcc) on my system with GID 1000). My user (dberry) did not have write permission to that folder. I tried to get around it by changing permissions, and got further:

[root@dberry ~]# chmod -R o+w /opt/zimbra/zdesktop/linux

Installing user data files...done
Initializing user data...done
Creating desktop icon...done
Zimbra Desktop has been installed successfully for user dberry.

You can start Zimbra Desktop by double-clicking the desktop icon or by running the following command:
"/opt/zimbra/zdesktop/linux/zdrun.pl"

Press "Enter" to launch Zimbra Desktop; Press "Ctrl-c" to exit:
[dberry@dberry ~]$ JRE version 8 is found on your system.
JETTY_HOME = /opt/zimbra/zdesktop/jetty
JETTY_RUN = /home/dberry/zdesktop/log
JETTY_PID = /home/dberry/zdesktop/log/zdesktop.pid
JETTY_CONSOLE = /home/dberry/zdesktop/log/zdesktop.out
JETTY_ARGS =
CONFIGS = /home/dberry/zdesktop/jetty/etc/jetty.xml
JAVA_OPTIONS = -client -Djava.awt.headless=true -Xms128m -Xmx1024m -XX:MinHeapFreeRatio=20 -XX:MaxHeapFreeRatio=40 -XX:NewRatio=4 -XX:TargetSurvivorRatio=70 -XX:+UseConcMarkSweepGC -DSTART='/opt/zimbra/zdesktop/jetty/etc/start.config' -Dzimbra.home='/home/dberry/zdesktop' -Dzimbra.config='/home/dberry/zdesktop/conf/localconfig.xml' -Djava.library.path='/opt/zimbra/zdesktop/jetty/../lib' -Djava.awt.headless=true -Djava.io.tmpdir='/home/dberry/zdesktop/data/tmp/java' -Djava.net.useSystemProxies=true -Dsun.net.inetaddr.ttl=10 -XX:HeapDumpPath='/home/dberry/zdesktop/heapdump/' -XX:+HeapDumpOnOutOfMemoryError -Djetty.home='/opt/zimbra/zdesktop/jetty'
JAVA = /usr/bin/java
Starting Jetty:
Stale pid file removed: /home/dberry/zdesktop/log/zdesktop.pid
nohup: redirecting stderr to stdout
Jetty running pid=15130
cp: preserving times for '/opt/zimbra/zdesktop/linux/node-webkit/package.json': Operation not permitted

That error was coming from the perl script:
[dberry@dberry ~]$ less /opt/zimbra/zdesktop/linux/zdrun.pl
...
exit 1 if system("cp -f -p \"/opt/zimbra/zdesktop/linux/node-webkit/package.json_orig\" \"/opt/zimbra/zdesktop/linux/node-webkit/package.json\"");

[root@dberry ~]# ls -l /opt/zimbra/zdesktop/linux/node-webkit/package.json*
-rw-rw-rw-. 1 1000 gcc 910 Jul 20 13:57 package.json
-rw-rw-rw-. 1 1000 gcc 910 Apr 10 05:43 package.json_orig

Copying that file as my user then allowed zdesktop to start:

[dberry@dberry log]$ cp /opt/zimbra/zdesktop/linux/node-webkit/package.json_orig /opt/zimbra/zdesktop/linux/node-webkit/package.json
[dberry@dberry log]$ ll /opt/zimbra/zdesktop/linux/node-webkit/package.json*
-rw-rw-rw-. 1 dberry dberry 910 Apr 10 05:43 /opt/zimbra/zdesktop/linux/node-webkit/package.json
-rw-rw-rw-. 1 1000 gcc 910 Apr 10 05:43 /opt/zimbra/zdesktop/linux/node-webkit/package.json_orig

[dberry@dberry ~]$ /opt/zimbra/zdesktop/linux/zdrun.pl
JRE version 8 is found on your system.
JETTY_HOME = /opt/zimbra/zdesktop/jetty
JETTY_RUN = /home/dberry/zdesktop/log
JETTY_PID = /home/dberry/zdesktop/log/zdesktop.pid
JETTY_CONSOLE = /home/dberry/zdesktop/log/zdesktop.out
JETTY_ARGS =
CONFIGS = /home/dberry/zdesktop/jetty/etc/jetty.xml
JAVA_OPTIONS = -client -Djava.awt.headless=true -Xms128m -Xmx1024m -XX:MinHeapFreeRatio=20 -XX:MaxHeapFreeRatio=40 -XX:NewRatio=4 -XX:TargetSurvivorRatio=70 -XX:+UseConcMarkSweepGC -DSTART='/opt/zimbra/zdesktop/jetty/etc/start.config' -Dzimbra.home='/home/dberry/zdesktop' -Dzimbra.config='/home/dberry/zdesktop/conf/localconfig.xml' -Djava.library.path='/opt/zimbra/zdesktop/jetty/../lib' -Djava.awt.headless=true -Djava.io.tmpdir='/home/dberry/zdesktop/data/tmp/java' -Djava.net.useSystemProxies=true -Dsun.net.inetaddr.ttl=10 -XX:HeapDumpPath='/home/dberry/zdesktop/heapdump/' -XX:+HeapDumpOnOutOfMemoryError -Djetty.home='/opt/zimbra/zdesktop/jetty'
JAVA = /usr/bin/java
Starting Jetty:
Stale pid file removed: /home/dberry/zdesktop/log/zdesktop.pid
nohup: redirecting stderr to stdout
Jetty running pid=17896
nippomanu2
Posts: 1
Joined: Thu Jul 27, 2017 8:39 am

Re: Installation Fail Under User Account

Postby nippomanu2 » Thu Jul 27, 2017 8:56 am

Hi,

I am new to Zimbra.
Have installed Zimbra Desktop on Version Linux Mint 18.2 Sonya 64-bit.
I have no firewall on and no no antivirus on.

I have a similar error, as the log below shows.

Any idea ?
Thank you.

Emmanuel.

-------------------------------------------------

/home/emmanuel/zdesktop/bin/zdesktop: 212: [: Linux: unexpected operator
JRE version 8 is found on your system.
JETTY_HOME = /opt/zimbra/zdesktop/jetty
JETTY_RUN = /home/emmanuel/zdesktop/log
JETTY_PID = /home/emmanuel/zdesktop/log/zdesktop.pid
JETTY_CONSOLE = /home/emmanuel/zdesktop/log/zdesktop.out
JETTY_ARGS =
CONFIGS = /home/emmanuel/zdesktop/jetty/etc/jetty.xml
JAVA_OPTIONS = -client -Djava.awt.headless=true -Xms128m -Xmx1024m -XX:MinHeapFreeRatio=20 -XX:MaxHeapFreeRatio=40 -XX:NewRatio=4 -XX:TargetSurvivorRatio=70 -XX:+UseConcMarkSweepGC -DSTART='/opt/zimbra/zdesktop/jetty/etc/start.config' -Dzimbra.home='/home/emmanuel/zdesktop' -Dzimbra.config='/home/emmanuel/zdesktop/conf/localconfig.xml' -Djava.library.path='/opt/zimbra/zdesktop/jetty/../lib' -Djava.awt.headless=true -Djava.io.tmpdir='/home/emmanuel/zdesktop/data/tmp/java' -Djava.net.useSystemProxies=true -Dsun.net.inetaddr.ttl=10 -XX:HeapDumpPath='/home/emmanuel/zdesktop/heapdump/' -XX:+HeapDumpOnOutOfMemoryError -Djetty.home='/opt/zimbra/zdesktop/jetty'
JAVA = /usr/bin/java
Starting Jetty:
Stale pid file removed: /home/emmanuel/zdesktop/log/zdesktop.pid
Jetty running pid=7960
nohup: redirection de la sortie d'erreur standard vers la sortie standard
extensions::nw.App:49
if (ret.hasOwnProperty('__nwjs_manifest'))
^

TypeError: Cannot read property 'hasOwnProperty' of undefined
at Object.manifest (extensions::nw.App:49:12)
at Object.NodeWebkitAutoUpdate.sendAutoUpdateCheckRequest (/opt/zimbra/zdesktop/linux/node-webkit/js/NodeWebkitAutoUpdate.js:106:29)
at Object.NodeWebkitAutoUpdate.isUpdateAvailable (/opt/zimbra/zdesktop/linux/node-webkit/js/NodeWebkitAutoUpdate.js:66:34)
at Object.NodeWebkitAutoUpdate.handleAutoUpdate (/opt/zimbra/zdesktop/linux/node-webkit/js/NodeWebkitAutoUpdate.js:44:34)
at Object.NodeWebkitAutoUpdate.checkForUpdate (/opt/zimbra/zdesktop/linux/node-webkit/js/NodeWebkitAutoUpdate.js:15:38)
at Timeout._onTimeout (/opt/zimbra/zdesktop/linux/node-webkit/js/NodeWebkitAutoUpdate.js:151:38)
at tryOnTimeout (timers.js:224:11)
at Timer.listOnTimeout (timers.js:198:5)

-------------------------------------------------
The windows that appears says:

Ce site est inaccessible

127.0.0.1 n'autorise pas la connexion.
Essayez les suggestions ci-dessous :
Recharger la page
Vérifier la connexion
Vérifier le proxy et le pare-feu
ERR_CONNECTION_REFUSED
ActualiserMASQUER LES DÉTAILS
Vérifiez votre connexion Internet
Vérifiez les câbles et redémarrez votre routeur, votre modem ou tout autre périphérique réseau utilisé.
Autoriser NW.js à accéder au réseau depuis les paramètres du pare-feu ou de l'antivirus
S'il est déjà répertorié en tant que programme autorisé à accéder au réseau, essayez de le supprimer de la liste, puis de le rajouter.
Si vous utilisez un serveur proxy…
Vérifiez vos paramètres de proxy ou contactez votre administrateur réseau pour vous assurer que le serveur proxy fonctionne. Si vous ne pensez pas devoir utiliser de serveur proxy, procédez comme suit : Accédez au menu NW.js > Paramètres > Afficher les paramètres avancés… > Modifier les paramètres du proxy... et assurez-vous que vos paramètres sont définis sur "sans proxy" ou "direct".

------------------------------------------------
wrightg
Posts: 27
Joined: Thu Aug 11, 2016 8:50 pm

Re: Installation Fail Under User Account

Postby wrightg » Sun Dec 10, 2017 2:52 pm

Rob, did you ever get this to work?

I have been pulling my hair trying to get Zimbra Desktop installed on 64bit version of both a Ubuntu 16.04LTS and a Mint Mate 18.3 system with absolutely no success. Something is either wrong with the installation instructions or more likely the scripts being used to do the install.

Like you, the install of the software seems to go ok, but when I try to install the user files under a non-privileged account nothing seems to work. It looks like permissions or something, but I cannot figure it out. I have done everything EXACTLY as specified in the installation guide for 64bit Linux systems as specified in the Zimbra Desktop 7.3.1 guide dated August 2017.

Any help from anybody would be appreciated.

Greg ...
mhmd28
Posts: 1
Joined: Wed Feb 14, 2018 5:15 am

Re: Installation Fail Under User Account

Postby mhmd28 » Wed Feb 14, 2018 5:17 am

Try to give your current user the ownership of the /opt/zimbra/ folder, it worked for me beautifully:

chown user:user /opt/zimbra/ -R

Return to “Installation Help”

Who is online

Users browsing this forum: No registered users and 6 guests