Post
Topic
Board Mining (Altcoins)
Re: [Minera] New web management system for Gridseed devices
by
Fizikal
on 15/05/2014, 05:58:11 UTC
if you receive a blank page after entering the password on the web interface, check lighttpd's error log at /var/log/lighttpd/error.log Mine read a little something like this:

Code:
minera@robot:/var/log/lighttpd$ cat error.log
2014-05-14 11:39:41: (log.c.166) server started
2014-05-14 11:40:42: (server.c.1430) [note] graceful shutdown started
2014-05-14 11:40:42: (log.c.166) server started
2014-05-14 11:40:42: (server.c.1546) server stopped by UID = 0 PID = 5544
2014-05-14 11:41:00: (mod_fastcgi.c.2676) FastCGI-stderr: PHP Fatal error:  Call to undefined function json_decode() in /var/www/minera/application/controllers/app.php on line 36
 
2014-05-14 11:41:04: (mod_fastcgi.c.2676) FastCGI-stderr: PHP Fatal error:  Call to undefined function json_decode() in /var/www/minera/application/controllers/app.php on line 36
 
2014-05-14 11:54:18: (mod_fastcgi.c.2676) FastCGI-stderr: PHP Fatal error:  Call to undefined function json_decode() in /var/www/minera/application/controllers/app.php on line 37
 
2014-05-14 11:54:20: (mod_fastcgi.c.2676) FastCGI-stderr: PHP Fatal error:  Call to undefined function json_decode() in /var/www/minera/application/controllers/app.php on line 37
 
2014-05-14 11:54:27: (mod_fastcgi.c.2676) FastCGI-stderr: PHP Fatal error:  Call to undefined function json_decode() in /var/www/minera/application/controllers/app.php on line 37
 
2014-05-14 13:14:25: (mod_fastcgi.c.2676) FastCGI-stderr: PHP Fatal error:  Call to undefined function json_decode() in /var/www/minera/application/controllers/app.php on line 37
 
2014-05-14 13:19:47: (mod_fastcgi.c.2676) FastCGI-stderr: PHP Fatal error:  Class 'CI_Controller' not found in /var/www/minera/application/controllers/unit.php on line 4

A little Google Search turned up the fact that I needed to install php5-json[/u]

Run:
Code:
sudo apt-get install php5-json
sudo service lighttpd force-reload
Reload http://your.ip.address.here/minera/index.php/app/dashboard, and it loaded. Albeit throwing another error about timezone, but I'll deal with that easily.

EDIT: The timezone issue was fixed!
Here is the output from the logs about the timezone issue:
Code:
ERROR - 2014-05-14 19:25:01 --> Severity: Warning  --> date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. /var/www/minera/system/libraries/Log.php 86
ERROR - 2014-05-14 19:25:01 --> Severity: Warning  --> date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. /var/www/minera/system/libraries/Log.php 99
ERROR - 2014-05-14 19:25:01 --> Stats stored as: {"timestamp":1400095501,"hashrate":0,"avg_freq":0,"accepted":0,"errors":0,"rejected":0,"shares":0}
ERROR - 2014-05-14 19:25:01 --> Severity: Warning  --> chmod(): Operation not permitted /var/www/minera/system/libraries/Log.php 106

Fixed it with:
Code:
sudo chmod +rwx' to /[minera_root]/system/libraries/Log.php


Please can you tell me in what Linux distro are you? and please if you could give me the output of:

Code:
sudo dpkg -l|grep php

many thanks

Absolutely. I am running Ubuntu 13.10 (GNU/Linux 3.11.0-20-generic x86_64)

Code:
minera@robot:~$ sudo dpkg -l|grep php
ii  php5-cgi                               5.5.3+dfsg-1ubuntu2.3                  amd64        server-side, HTML-embedded scripting language (CGI binary)
ii  php5-cli                               5.5.3+dfsg-1ubuntu2.3                  amd64        command-line interpreter for the php5 scripting language
ii  php5-common                            5.5.3+dfsg-1ubuntu2.3                  amd64        Common files for packages built from the php5 source
ii  php5-json                              1.3.1+dfsg-2                           amd64        JSON module for php5
ii  php5-mysql                             5.5.3+dfsg-1ubuntu2.3                  amd64        MySQL module for php5
ii  php5-readline                          5.5.3+dfsg-1ubuntu2.3                  amd64        Readline module for php5