Hello,

we are running sql anywhere 10.0.1.4239 (Just upgraded to the latest ebf) Everything is working fine, with the exception of the dbsvc tool.

When we start it from the command line we receive no output at all....?

root@srv45:/opt/sqlanywhere10/bin32# ./dbsvc -V

root@srv45:/opt/sqlanywhere10/bin32#

What might this be ? Ubuntu is the 32bit version of 10.04LTS

Linux pos-045 2.6.32-33-generic #70-Ubuntu SMP Thu Jul 7 21:09:46 UTC 2011 i686 GNU/Linux

asked 27 Jul '11, 10:30

ASchild's gravatar image

ASchild
777222740
accept rate: 14%

1

Was it working before the upgrade? Is this a new OS installation? I wonder if there is a required OS package that is missing. I'm not sure why you wouldn't even see an error message.

You could run bash -x dbsvc to see if you can discover the reason for the failure. The -x flag tells the shell to print out debugging information.

(27 Jul '11, 12:19) Phil Mitchell

If there's too much output from bash -x you can use the script command to put all terminal output into a file called typescript:

# script
# bash -x dbsvc
# exit
# vi typescript
(27 Jul '11, 13:21) Phil Mitchell

No, it was not working before installing the ebf (it's why I did install the ebf, was on 4122 before)

bash -x dbsvc
+ '[' '' '!=' RUNSERVICECMD ']'
+ utility
+ RUNLEVEL=35
+ QUIET=0
+ PRIORITY=09
+ STARTUP=Manual
+ PROMPT=1
+ ODINI=
+ TYPE=Standalone
+ PREFIX=/etc/init.d/SA_
+ SVC=/etc/init.d
+ LISTCMD=FALSE
+ VERSION=10
++ echo /opt/sqlanywhere10/bin32:/opt/sqlanywhere10/jre150/bin:/opt/sqlanywhere1                   0/sybcentral500:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/us                   r/games
++ awk -F /opt/sqlanywhere10/bin32 '{ print $1 }'
++ grep bin64
+ BIN=
+ '[' '' = '' ']'
+ BIN=bin32
+ OBIN=bin64
+ setmsgs
+ '[' de_CH.UTF-8 '!=' '' ']'
++ echo de_CH.UTF-8
++ awk -F_ '{print $1}'
+ LG=de
+ '[' de = en ']'
+ '[' /opt/sqlanywhere10 = '' ']'
++ echo 'o o'
++ sed 's/ /x00/'
+ SEDTEST=oo
+ '[' oo = ox00o ']'
+ '[' '!' -e /etc/init.d/functions ']'
+ '[' '!' -e /etc/rc.status ']'
+ echo ''

  • exit 1
(27 Jul '11, 13:32) ASchild

dbsvc in version 10.0.1 on Linux requires either a) the initscripts package (which provides /etc/init.d/functions), or b) the SuSE /etc/rc.status.

Unfortunately, the initscripts package in Ubuntu 10.04 does not actually have an /etc/init.d/functions within it. To work around that, you can do a Google search or otherwise obtain a copy of the /etc/init.d/functions file. For example, I found one here. (NOTE: I have not tried this one...I don't know if it works with our software).

In version 11 and higher, LSB packages replace the aforementioned packages. You would need to install the lsb package on Ubuntu or redhat-lsb on RedHat-based distributions.

The error message is not being displayed due to what appears to be a bug with displaying German messages from dbsvc. I will look into getting this bug fixed.

Version 11 would also have fixed the error message issue.

permanent link

answered 27 Jul '11, 16:30

Phil%20Mitchell's gravatar image

Phil Mitchell
1.9k1831
accept rate: 27%

edited 27 Jul '11, 16:35

Setting

export lang=en

before running dbsvc at least now gives some messages. I did try with various functions scripts, but apparently none is compatible enough, or even more probable there are other incompatibilities.

For example a dbsvc -l returns:

shift: 887: can't shift that many

I think i will have to stay with out own startup scripts for asa 10 and ubuntu 10.04

Thanks anyway.

ANdré

(28 Jul '11, 12:04) ASchild
1

Yes, if you have your own service scripts that work well enough, I see no reason to change them. dbsvc is supposed to be a convenience so that you don't have to write your own...but it's not so convenient in your situation, I think.

An alternative solution would be to use dbsvc from an SA 11.0.1 or higher installation. It should work with an SA 10.0.1 server.

(28 Jul '11, 12:24) Phil Mitchell

Interesting, will keep this in mind if it commes to rolling out new clients, but of course we hope to then be able to use a new asa version too ;)

Thanks.

(29 Jul '11, 02:34) ASchild
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×113
×61

question asked: 27 Jul '11, 10:30

question was seen: 971 times

last updated: 29 Jul '11, 02:34