cancel
Showing results for 
Search instead for 
Did you mean: 

sa10 dbsvc under ubuntu no output

Former Member
2,213

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
Former Member

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.

Former Member
0 Kudos

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
Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member

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.

Former Member
0 Kudos

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é

Former Member

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.

Former Member
0 Kudos

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.

Answers (0)