[Solved] Pre-built SD card / first login / not possible to register

Hi,

first I want to say I like that open source project. Thanks for your afford! I want to suggest something for the pre-built sd card.

I ordered amongst others the pre-built sd card for my raspberry pi and tried to login to emoncms (http://ipadress/emoncms/) but there was no register button. It was only possible to login but i havent had created an account.

I connected to my pi via ssh and checked the settings.php on my raspberry (/var/www/emoncms/) and recognized that there is a line which prohibits to register multiple users:

 // Enable multi user emoncms.
    // If set to false, emoncms will automatically remove the register form and
    // ability to create further users after the first user has been created
    $enable_multi_user = false;

Had to switch to write mode (normally its in read only mode) and change it to "true". After restarting i could register an account. Is that normal? Did I oversee something? Took me almost 90 minutes to find it out. I mean using pre-built sd card should be as easy as possible for beginners.

Markus

 

 

glyn.hudson's picture

Re: [Solved] Pre-built SD card / first login / not possible to register

Oh dear, it sounds like you might have accidently been sent a pre-built image that we might have used for testing. Try and login with username 'test' and password 'test'.

You can factory reset by logging in via ssh username 'pi', password 'raspberry' and running 

sudo su

emonpi/./factoryreset

​Or you can download a fresh image and flash yourself. The image you have is our stable June15 build. However you may want to try our latest Feb16 RC build

Savior's picture

Re: [Solved] Pre-built SD card / first login / not possible to register

Hi,

 

test test worked.. I made a factory reset but user test still registered. Same problem as before. When i log in with that user i only get error messages. So I will flash the card tomorrow. So showing off with my energy consumption at work will take a bit longer. :)

glyn.hudson's picture

Re: [Solved] Pre-built SD card / first login / not possible to register

Factory reset should definitely erase the 'test' user. What output did you see in the terminal window when running factoryreset? 

Savior's picture

Re: [Solved] Pre-built SD card / first login / not possible to register

Hi,

 

yes something went wrong. Both users (test and the one i registered) where still alive. But somehow i couldnt connect to my pi after that. Password was wrong. So I flashed new Feb16 image. Nice design. But I got same problem like yesterday. First connection established between base and emontx and emonth, I add some rows to log but values wont update..

I gonna do some research but you might have an idea what to check first.

Comment viewing options

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