Update issues...
Moderator: RDNZL
Update issues...
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?
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
Re: Update issues...
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.
Upgrading the server can be done the same way you upgraded the client, I'm guessing you are aware of the svn command already.
Re: Update issues...
I am aware of the "svn up" command. However, I am up to date according to this command
But.... Starting
Anyone an idea how to solve this?
Code: Select all
Updating '.':
At revision 1349.
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.
Synology DS213+ / Domoticz / RFX Transceiver-e
Re: Update issues...
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:
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
Re: Update issues...
You mean like "delete" just the file DomotiGaServer3.gambas? Of course I will keep a copy just in case....wwolkers wrote:remove your DomotiGaServer3.gambas
Synology DS213+ / Domoticz / RFX Transceiver-e
Re: Update issues...
Hmm, try 1 didn't succeed....
First I rename DomotiGaServer3.gambas to DomotiGaServer3.gambas.old
Then I get this:
I also renamed all the commented files/directories, but still the same results. What's the trick?
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
Synology DS213+ / Domoticz / RFX Transceiver-e
Re: Update issues...
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:
If running z-wave, just add the following steps:
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 
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
Code: Select all
cd ~/domotiga/wrappers/domozwave
mv ~/domotiga.bak/wrappers/domozwave/open-zwave ./
make
sudo make install

DomotiGa / Z-Wave / RFXCom / Visonic PowerMaster / Home Assistant / Zigbee2MQTT / DSMR Reader / Toon1 (rooted)
Re: Update issues...
Thanks for the reply. Will try tonight. No z-wave yet...
Verstuurd vanaf mijn GT-I9100 met Tapatalk 4
Verstuurd vanaf mijn GT-I9100 met Tapatalk 4
Synology DS213+ / Domoticz / RFX Transceiver-e
Re: Update issues...
This usually means you have local changes (compiled yourself for example in this case)
try
This will remove ALL local changes you made btw, so if you did make some manual changes, those will be gone.
try
Code: Select all
svn revert --depth=infinity .
Re: Update issues...
Brilliant tip, 1 minute work, all fixedwwolkers wrote:try
Code: Select all
svn revert --depth=infinity .

Synology DS213+ / Domoticz / RFX Transceiver-e