Update issues...

Forum about Domotiga Open Source Home Automation for Linux.

Moderator: RDNZL

Post Reply
mschut
Starting Member
Starting Member
Posts: 32
Joined: Thu Mar 01, 2012 10:38 am
Location: the Netrherlands

Update issues...

Post by mschut »

Hi All,

Hope someone can help. I will try to explain shortly my "situation":

-) Raspberry pi with domotiga (running server mode)
-) Linux to run client

I just upgraded to gambas3 to be able to upgrad to the latest version of domotiga

Now I just might have upgraded in a incorrect manner, which leaves me with a non working situation, and my linux knowledge is not well enough to "just reinstalla back up (luckiliy, I did make them...)

What IS my situation now?
-) Raspberry pi: Domotiga server version 1.0.006
-) Linux: version 1.0.009. However, I did the upgrade of the database from the Linux machine, so the database is version 1.0.009 also.

Starting ./DomotiGaServer3.gambas results in the error "Query failed: Table 'domotiga.settings_glatitude' doesn't exist for glatitude". And the question "Is your database version correct?". I am afraid my server version (006) is expecting another (older) database structure than currently available. Is there a way to upgrade the server version without getting this error?
Synology DS213+ / Domoticz / RFX Transceiver-e
wwolkers
Member
Member
Posts: 273
Joined: Tue Sep 23, 2008 10:10 am
Location: Netherlands
Contact:

Re: Update issues...

Post by wwolkers »

You should indeed upgrade your server to the latest version, or at least the same version you are running on the client.

Upgrading the server can be done the same way you upgraded the client, I'm guessing you are aware of the svn command already.
mschut
Starting Member
Starting Member
Posts: 32
Joined: Thu Mar 01, 2012 10:38 am
Location: the Netrherlands

Re: Update issues...

Post by mschut »

I am aware of the "svn up" command. However, I am up to date according to this command

Code: Select all

Updating '.':
At revision 1349.
But.... Starting

Code: Select all

$ ./DomotiGaServer3.gambas
2013/09/17 16:35:45 Found broadcast address '192.168.178.255'
2013/09/17 16:35:45   ---- Program Restart ----
2013/09/17 16:35:45 Starting DomotiGaServer3 V1.0.006 last updated on 2013-09-16 23:16:04
2013/09/17 16:35:45 Running on host 'domotiga' (pid 4428) as user 'pi' (id 1000) with language en_US.UTF-8
2013/09/17 16:35:45 Program base directory is '/home/pi/domotiga'.
2013/09/17 16:35:45 Database settings are loaded from 'server-domotiga.conf'.
2013/09/17 16:35:45 Active logfiles are 'server-main-2013-09.log', 'server-speak-2013-09.log' and 'server-debug-2013-09.log'.
2013/09/17 16:35:45 Running on Gambas version 3.4.2
2013/09/17 16:35:45 Server uptime is  16:35:45 up 17:49, 1 user, load average: 0.08, 0.05, 0.05
2013/09/17 16:35:45 Checking directory structure ...
2013/09/17 16:35:45 Connecting to database ...
2013/09/17 16:35:45 Loading modules ...
2013/09/17 16:35:45 Starting setup ...
2013/09/17 16:35:45 GetSettings : Query failed: Table 'domotiga.settings_glatitude' doesn't exist for glatitude
2013/09/17 16:35:45 Error: Null object 13 while loading settings at Main.GetSettings.1612!
Is your database version correct?
2013/09/17 16:35:45 Stopping running timers.
Anyone an idea how to solve this?
Synology DS213+ / Domoticz / RFX Transceiver-e
wwolkers
Member
Member
Posts: 273
Joined: Tue Sep 23, 2008 10:10 am
Location: Netherlands
Contact:

Re: Update issues...

Post by wwolkers »

remove your DomotiGaServer3.gambas and do the svn up again. looks like the file is not being updated for some reason.

If I do 'svn up' I do get the DomotiGaServer3.gambas v1.0.009:

Code: Select all

domotiga@server:~/domotiga$ ./DomotiGaServer3.gambas
2013/09/18 11:03:10 Found broadcast address '192.168.178.255
192.168.122.255'
2013/09/18 11:03:10   ---- Program Restart ----
2013/09/18 11:03:10 Starting DomotiGaServer3 V1.0.009 last updated on 2013-09-18 11:02:41
2013/09/18 11:03:10 Running on host 'server' (pid 21261) as user 'domotiga' (id 1001) with language en_US.UTF-8
mschut
Starting Member
Starting Member
Posts: 32
Joined: Thu Mar 01, 2012 10:38 am
Location: the Netrherlands

Re: Update issues...

Post by mschut »

wwolkers wrote:remove your DomotiGaServer3.gambas
You mean like "delete" just the file DomotiGaServer3.gambas? Of course I will keep a copy just in case....
Synology DS213+ / Domoticz / RFX Transceiver-e
mschut
Starting Member
Starting Member
Posts: 32
Joined: Thu Mar 01, 2012 10:38 am
Location: the Netrherlands

Re: Update issues...

Post by mschut »

Hmm, try 1 didn't succeed....

First I rename DomotiGaServer3.gambas to DomotiGaServer3.gambas.old

Then I get this:

Code: Select all

pi@domotiga ~/domotiga $ svn up
Updating '.':
Skipped 'DomotiGaServer3.gambas' -- Node remains in conflict
Skipped 'DomotiGaServer3' -- Node remains in conflict
Skipped 'DomotiGa3.gambas' -- Node remains in conflict
Skipped 'DomotiGa3' -- Node remains in conflict
Skipped 'upgrade' -- Node remains in conflict
At revision 1352.
Summary of conflicts:
  Skipped paths: 5
I also renamed all the commented files/directories, but still the same results. What's the trick?
Synology DS213+ / Domoticz / RFX Transceiver-e
uAlex73
Member
Member
Posts: 218
Joined: Sun Jan 01, 2012 3:42 pm
Contact:

Re: Update issues...

Post by uAlex73 »

Something is wrong with your directory, i would recommend to move it away and download it again. Are you running Z-Wave?

If not then the following steps are sufficient:

Code: Select all

cd ~
mv domotiga domotiga.bak
svn checkout http://svn.domotiga.nl/domotiga/trunk/ domotiga
If running z-wave, just add the following steps:

Code: Select all

cd ~/domotiga/wrappers/domozwave
mv ~/domotiga.bak/wrappers/domozwave/open-zwave ./
make
sudo make install
BTW: don't run the step "rm -rf `find . -type d -name .svn`" ... Yes, this cleans up the svn information, but also prevents you to do a "svn up" command. So i like to leave the information in - it doesn't hurt anybody :D
DomotiGa / Z-Wave / RFXCom / Visonic PowerMaster / Home Assistant / Zigbee2MQTT / DSMR Reader / Toon1 (rooted)
mschut
Starting Member
Starting Member
Posts: 32
Joined: Thu Mar 01, 2012 10:38 am
Location: the Netrherlands

Re: Update issues...

Post by mschut »

Thanks for the reply. Will try tonight. No z-wave yet...

Verstuurd vanaf mijn GT-I9100 met Tapatalk 4
Synology DS213+ / Domoticz / RFX Transceiver-e
wwolkers
Member
Member
Posts: 273
Joined: Tue Sep 23, 2008 10:10 am
Location: Netherlands
Contact:

Re: Update issues...

Post by wwolkers »

This usually means you have local changes (compiled yourself for example in this case)

try

Code: Select all

svn revert --depth=infinity .
This will remove ALL local changes you made btw, so if you did make some manual changes, those will be gone.
mschut
Starting Member
Starting Member
Posts: 32
Joined: Thu Mar 01, 2012 10:38 am
Location: the Netrherlands

Re: Update issues...

Post by mschut »

wwolkers wrote:try

Code: Select all

svn revert --depth=infinity .
Brilliant tip, 1 minute work, all fixed :)
Synology DS213+ / Domoticz / RFX Transceiver-e
Post Reply

Return to “DomotiGa Forum”