problem starting timestore

I've problems starting timestore, it seemed to install ok, no error when I start/restart it with 

sudo /etc/init.d/timestore restart

even the /var/log/timestore.log is empty so I'm just wondering where to look to find out whats wrong ?

Although it could be connected with the error, I get when installing it ? I'm not sure where to get this adminkey ?

cat: /var/lib/timestore/adminkey.txt: No such file or directory

WindyBoy's picture

Re: problem starting timestore

Making a habit of answering my own questions, but I got the adminkey.txt file now.

Ran /home/pi/timestore/src/timestore which created the adminkey.txt now I can start/stop/status etc via /etc/init.d/timestore

Hope this is right ?

WindyBoy's picture

Re: problem starting timestore

I did ./update_pi_emoncms.sh to update everything hopeing to try out timestore. Now when it restarts frm12piphp I get the following error

Restarting RPIWARNING: are you sure raspberrypi_run.php is running ?

PHP Fatal error:  Call to a member function fetch_array() on a non-object in /var/www/emoncms/Modules/feed/feed_model.php on line 289

the code at 289 is 

 

$qresult = $this->mysqli->query("SELECT engine FROM feeds WHERE `id` = '$feedid'");

    $row = $qresult->fetch_array();

 

I don't have that field engine, so I'm guessing I have to update the db ?

Have I failed to update something correctly ?

 

WindyBoy's picture

Re: problem starting timestore

OK I'm talking to myself :) never mind

the db_scheme_setup wasn't/isn't getting called I have $dbtest=TRUE in settings.

the test in index.php or the db_check isn't finding the field missing, or even the table missing when I drop feeds table.

if (!$mysqli->connect_error && $dbtest==true) {
    require "Lib/dbschemasetup.php";
    if (!db_check($mysqli,$database)) db_schema_setup($mysqli,load_db_schema(),true);
  }

I did try to understand whats going on, but can't work it out, think it must be the db

anyway I hacked it for the time being... to create my feeds table

TrystanLea's picture

Re: problem starting timestore

WindyBoy, good effort hacking it, did you see the admin interface? Admin tab > update check db

WindyBoy's picture

Re: problem starting timestore

no, not sure I've seen the admin interface ? How do I get there, via my registered user or is there an admin id/passwd ? 

OK tried adding $updatelogin = TRUE, still no extra menus... looked in the controller for admin tried url admin/list commented out/removing the security in the controller still nothing.

but everything is working now, but I'm interested still how to get this admin module to work

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.