Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

INFO: error on creating script link #2563

Closed
mm108 opened this issue Nov 19, 2016 · 21 comments
Closed

INFO: error on creating script link #2563

mm108 opened this issue Nov 19, 2016 · 21 comments

Comments

@mm108
Copy link

mm108 commented Nov 19, 2016

hi,

Would you be able to guess what could be causing the following error when I try to install traccar 3.8 on an Ubuntu 64 bit machine. Btw I don't see the 32/64 bit naming like you used to do for earlier versions. I guess 32 bit is now out? Btw thanks for 3.8 - the new features are cool 👍

root@testingpc-a1:/home# sudo ./traccar.run
Verifying archive integrity... All good.
Uncompressing traccar  100%
/usr/bin/java
++++++++++ YAJSW SET ENV ++++++++++
java version "1.8.0_111"
Java(TM) SE Runtime Environment (build 1.8.0_111-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.111-b14, mixed mode)
wrapper home : /opt/traccar
configuration: /opt/traccar/conf/wrapper.conf
java version "1.8.0_111"
Java(TM) SE Runtime Environment (build 1.8.0_111-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.111-b14, mixed mode)
---------- YAJSW SET ENV ----------
++++++++++ YAJSW SET ENV ++++++++++
java version "1.8.0_111"
Java(TM) SE Runtime Environment (build 1.8.0_111-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.111-b14, mixed mode)
wrapper home : /opt/traccar
configuration: /opt/traccar/conf/wrapper.conf
java version "1.8.0_111"
Java(TM) SE Runtime Environment (build 1.8.0_111-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.111-b14, mixed mode)
---------- YAJSW SET ENV ----------
YAJSW: yajsw-beta-12.07
OS   : Linux/4.8.3-x86_64-linode76/amd64
JVM  : Oracle Corporation/1.8.0_111//usr/lib/jvm/java-8-oracle/jre/64
Nov 19, 2016 5:53:21 PM org.apache.commons.vfs2.VfsLog info
INFO: Using "/tmp/vfs_cache" as temporary files store.
************* INSTALLING traccar ***********************

Nov 19, 2016 5:53:21 PM org.rzo.yajsw.os.posix.PosixService getPid
INFO: wrapper pid file: /run/wrapper.traccar.pid
Nov 19, 2016 5:53:21 PM org.rzo.yajsw.os.posix.PosixService install
WARNING: created daemon script: /etc/init.d/traccar
Nov 19, 2016 5:53:21 PM org.rzo.yajsw.os.posix.PosixService install
INFO: error on creating script link /etc/init.d/rc5.d/S20traccar
Nov 19, 2016 5:53:21 PM org.rzo.yajsw.os.posix.PosixService install
INFO: error on creating script link /etc/init.d/rc5.d/K20traccar
Service traccar installed

Regards

@Abyss777
Copy link
Collaborator

What is your ubuntu version?

It is universal package for both 32/64

@mm108
Copy link
Author

mm108 commented Nov 19, 2016

It's Ubuntu 14.04 LTS - 64 bit

@tananaev
Copy link
Member

Looks like Traccar is not added to autostart. Otherwise everything should work fine.

I have created a thread on YAJSW forum to check if there is any solution for the problem:

https://sourceforge.net/p/yajsw/discussion/810311/thread/6a04ab3c/

@tananaev
Copy link
Member

The solution is to add following line to the wrapper.conf file:

wrapper.daemon.run_level_dir=/etc/rcX.d

@Abyss777
Copy link
Collaborator

Note from YASW documentation

NOTE: uninstall the daemon using /opt/traccar/bin/uninstallDaemon.sh before changing the property wrapper.daemon.run_level_dir property or wrapper.daemon.update_rc. If you change any of these properties while the daemon is installed or running, you will not be able to start, stop, install or uninstall the daemon.

Also want to add that I did not have such warnings on my Ubuntu 14.04

@tananaev
Copy link
Member

By default it uses /etc/rc.d/rcX.d folder. Do you have it on Ubuntu 14.04? Do you have /etc/rcX.d on Ubuntu 14.04?

@mm108
Copy link
Author

mm108 commented Nov 20, 2016

thanks a lot for the fix. About to try re-installing it. And I just upgraded to Ubuntu 16.04 xenial. As for the folders let me check if those exist in 16.04 cos 14.04 is now history for me :-)

Just checked ... I have a bunch of these folders on 16.04 64 bit

\etc\
rc0.d
rc1.d
rc2.d
rc3.d
rc4.d
rc5.d
rc6.d
rcS.d

Thanks

@Abyss777
Copy link
Collaborator

I have only /etc/rcX.d folders on my Ubuntu 14.04

@Abyss777
Copy link
Collaborator

Here is quote from wrapper.conf.default

# Directory in which to create K... and S... links.
# Default: <wrapper.daemon.dir>/rcX.d
# For Ubuntu set to /etc/rcX.d
# The following grooy script should set it correctly for most distros
wrapper.daemon.run_level_dir=${if (new File('/etc/rc0.d').exists()) return '/etc/rcX.d' else return '/etc/init.d/rcX.d'}

@tananaev
Copy link
Member

tananaev commented Nov 20, 2016

I have several versions of Ubuntu and some older CentOS. All of them have /etc/rcX.d. CentOS has symbolic links from /etc/rcX.d to /etc/rc.d/rcX.d.

@mm108
Copy link
Author

mm108 commented Nov 20, 2016

I could quickly spin up a stock Ubuntu 14.04 and test this withing minutes ... on the job now

Done - here's Ubuntu 14.04 LTS right out of the oven

image

@tananaev
Copy link
Member

@m-menon, can you please this version and see if it has the same problem as the original installer:

https://www.dropbox.com/s/mo7thza1d52s36p/traccar-linux-3.9.zip?dl=0

@mm108
Copy link
Author

mm108 commented Nov 20, 2016

Sure thanks 👍 Doing it rightaway

@feder-ico
Copy link

On Ubuntu 16.04.1, After reading your posts, I did as follows:

  • I have stopped the daemon. (/opt/traccar/bin/stopDaemon.sh)
  • I have uninstalled the daemon (/opt/traccar/bin/uninstallDaemon.sh)
  • I added the line provided by Anton (wrapper.daemon.run_level_dir=/etc/rcX.d) in /opt/traccar/conf/wrapper.conf
  • I installed again the daemon (/opt/traccar/bin/installDaemon.sh)
  • I started the daemon (/opt/traccar/bin/startDaemon.sh)

Then, I did "shutdown -r now" and after the reboot everything is up and running.

Thanks all of you for the info!

@tananaev: The new features of 3.8 are awesome!

Federico.-

@mm108
Copy link
Author

mm108 commented Nov 20, 2016

hi @tananaev I just tried the 3.9 zip. Has the same error

sudo ./traccar.run
Verifying archive integrity... All good.
Uncompressing traccar  100%
/usr/bin/java
++++++++++ YAJSW SET ENV ++++++++++
java version "1.8.0_111"
Java(TM) SE Runtime Environment (build 1.8.0_111-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.111-b14, mixed mode)
wrapper home : /opt/traccar
configuration: /opt/traccar/conf/wrapper.conf
java version "1.8.0_111"
Java(TM) SE Runtime Environment (build 1.8.0_111-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.111-b14, mixed mode)
---------- YAJSW SET ENV ----------
++++++++++ YAJSW SET ENV ++++++++++
java version "1.8.0_111"
Java(TM) SE Runtime Environment (build 1.8.0_111-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.111-b14, mixed mode)
wrapper home : /opt/traccar
configuration: /opt/traccar/conf/wrapper.conf
java version "1.8.0_111"
Java(TM) SE Runtime Environment (build 1.8.0_111-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.111-b14, mixed mode)
---------- YAJSW SET ENV ----------
YAJSW: yajsw-beta-12.07
OS   : Linux/4.8.3-x86_64-linode76/amd64
JVM  : Oracle Corporation/1.8.0_111//usr/lib/jvm/java-8-oracle/jre/64
Nov 20, 2016 3:43:11 AM org.apache.commons.vfs2.VfsLog info
INFO: Using "/tmp/vfs_cache" as temporary files store.
************* INSTALLING traccar ***********************

Nov 20, 2016 3:43:11 AM org.rzo.yajsw.os.posix.PosixService getPid
INFO: wrapper pid file: /run/wrapper.traccar.pid
Nov 20, 2016 3:43:11 AM org.rzo.yajsw.os.posix.PosixService install
WARNING: created daemon script: /etc/init.d/traccar
Nov 20, 2016 3:43:11 AM org.rzo.yajsw.os.posix.PosixService install
INFO: error on creating script link /etc/init.d/rc5.d/S20traccar
Nov 20, 2016 3:43:11 AM org.rzo.yajsw.os.posix.PosixService install
INFO: error on creating script link /etc/init.d/rc5.d/K20traccar
Service traccar installed

Btw it's a VM on Linode. Guess doesn't make much of a difference though

@mm108
Copy link
Author

mm108 commented Nov 20, 2016

I followed what @fbitonte mentioned and it did seem to install properly. I had a quick glance at the logs and I noticed something

INFO|4318/0|Service traccar|16-11-20 04:53:28|INFO 11/20/16 4:53 AM: liquibase: ./schema/changelog-master.xml: changelog-3.8::changelog-3.8-dropuniquetoken::author: Change set changelog-3.8::changelog-3.8-dropuniquetoken::author failed, but failOnError was false.  Error: Constraint "UK_USER_TOKEN" not found; SQL statement:
INFO|4318/0|Service traccar|16-11-20 04:53:28|ALTER TABLE PUBLIC.users DROP CONSTRAINT uk_user_token [90057-193] [Failed SQL: ALTER TABLE PUBLIC.users DROP CONSTRAINT uk_user_token]
INFO|4318/0|Service traccar|16-11-20 04:53:28|INFO 11/20/16 4:53 AM: liquibase: Successfully released change log lock

Thanks

tananaev added a commit that referenced this issue Nov 20, 2016
@tananaev
Copy link
Member

@m-menon, that error is expected. You can safely ignore it.

Please try this installer:

https://www.dropbox.com/s/mo7thza1d52s36p/traccar-linux-3.9.zip?dl=0

It should work this time.

@mm108
Copy link
Author

mm108 commented Nov 20, 2016

Bet it did work 💯 %

Here's the bottom few lines for the record :)

Nov 20, 2016 10:35:07 AM org.rzo.yajsw.os.posix.PosixService getPid
INFO: wrapper pid file: /run/wrapper.traccar.pid
Nov 20, 2016 10:35:08 AM org.rzo.yajsw.os.posix.PosixService install
WARNING: created daemon script: /etc/init.d/traccar
Nov 20, 2016 10:35:08 AM org.rzo.yajsw.os.posix.PosixService install
INFO: created link : /etc/rc2.d/S20traccar
Nov 20, 2016 10:35:08 AM org.rzo.yajsw.os.posix.PosixService install
INFO: created link : /etc/rc3.d/S20traccar
Nov 20, 2016 10:35:08 AM org.rzo.yajsw.os.posix.PosixService install
INFO: created link : /etc/rc5.d/S20traccar
Nov 20, 2016 10:35:08 AM org.rzo.yajsw.os.posix.PosixService install
INFO: created link : /etc/rc4.d/S20traccar
Nov 20, 2016 10:35:08 AM org.rzo.yajsw.os.posix.PosixService install
INFO: created link : /etc/rc6.d/K20traccar
Nov 20, 2016 10:35:08 AM org.rzo.yajsw.os.posix.PosixService install
INFO: created link : /etc/rc0.d/K20traccar
Nov 20, 2016 10:35:08 AM org.rzo.yajsw.os.posix.PosixService install
INFO: created link : /etc/rc1.d/K20traccar
Service traccar installed

Thanks once again 👍

@tananaev
Copy link
Member

Perfect, thanks.

@mm108
Copy link
Author

mm108 commented Nov 20, 2016

Thanks @tananaev and @Abyss777, @fbitonte too 👍

@ghost
Copy link

ghost commented Nov 21, 2016

Thanks also from me to all involved in solving this problem. Now it also runs on me Rasperry Pi 2 perfect

vitalidze pushed a commit to vitalidze/traccar that referenced this issue Feb 4, 2017
vitalidze pushed a commit to vitalidze/traccar that referenced this issue Feb 4, 2017
vitalidze pushed a commit to vitalidze/traccar that referenced this issue Feb 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants