Page 1 of 1

[SOLVED] vicibox-install - argument isn't numeric

PostPosted: Tue Jul 18, 2017 11:40 am
by airflux
Hi guys,
I've just downloaded ViciBox_v.7.x86_64-7.0.4.iso and installed on a new server (Dell R610, we got a lot of them!), configured LAN, internet access is ok. No OS update or changes to repository due to openSUSE 42.1 eol.

When i run vicibox-install i got

--- ViciBox v.7.0 Install Summary ---

Expert : Yes
Legacy : No
Database : Yes
Web : Yes
Redirect : Yes
PMA : Yes
Telephony: No
Archive : No
Firewall : Disabled

Beginning installation, expect lots of output...

Disabling firewall...
SuSEfirewall2: Firewall rules unloaded.
Argument "Revisione: 2794" isn't numeric in numeric ne (!=) at /usr/local/bin/vicibox-install line 220, <STDIN> line 22.
Argument "Revisione: 2656" isn't numeric in numeric ne (!=) at /usr/local/bin/vicibox-install line 220, <STDIN> line 22.
Local SVN revision matches DB revision: Revisione: 2794

There are no output related to the SVN checkout, and there are different things missing (in example, db system_settings.svn_revision is 0), due to error at line 220.
The condition ($localsvn != $DBsvnrev) throws an error because revision number is string "Revisione: xxxx", and the really interesting part is the italian translation of word "revision". I've configured Italian keyboard and timezone, I'm in Italy then this is normal, but.. lol?

Is the first time I see something like that, and I can't find nothing similar online, what can be the cause of this problem?


Edit. #1
I've just noticed the line
@svninfo = `/usr/bin/svn info /usr/src/astguiclient/trunk | grep Revision | sed -e 's/Revision: //'`;
that strips the string Revision:, then I think the problem is just related to the locale language that svn client is using.. I'm working on that.


Edit #2-3 Yes, the problem is the localization. Maybe this is the first time that i configure another language during os-install.

Bad version:
vicitdb:/usr/src/astguiclient/trunk # svn info
Percorso: .
..
Revisione: 2656

vicitdb:/usr/src/astguiclient/trunk # export LANG=en_US
vicitdb:/usr/src/astguiclient/trunk # svn info
Path: .
Revision: 2656


Now everything works fine. I hope this can help someone else. Never change the system language from English to something else :)

Re: [SOLVED] vicibox-install - argument isn't numeric

PostPosted: Tue Jul 18, 2017 12:19 pm
by mflorell
Thanks for posting your solution!

Re: [SOLVED] vicibox-install - argument isn't numeric

PostPosted: Wed Jul 19, 2017 5:42 am
by airflux
It's a duty!

Anyway, export LANG=en_US solved until i was logged in, the problem comes back again every time i log in. I've found the real cause: my local ssh configuration send my local Env to remote server!

The solution is to edit the following file (on Fedora)
/etc/ssh/ssh_config.d/05-redhat.conf
commenting the following lines with a "#"
SendEnv LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES
SendEnv LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT
SendEnv LC_IDENTIFICATION LC_ALL LANGUAGE