Page 1 of 3

pictory admin password not working

Posted: 11 Apr 2018, 18:50
by johnjsb
Yesterday everything was working, came in today and admin password that is on side of unit no longer works. I did not change it. Tried changing, it said wrong password, tried rest to default still doesn't work. I'm locked out of pictory, is there a way to set it via command line?

Re: pictory admin password not working

Posted: 12 Apr 2018, 01:27
by volker
If you are talking about the GUI password and not the comandline / ssh then you can enter piSerial and you get the default pw. You then would need to reset to default.
As this is sw it is always running the same way. there is no possibility for the sw to behave different. So the most likely reason for your problem is (sorry to say this) a user fault: could be misstypo, caps lock on, num lock on, wrong keyboard layout (y and z get easily mixed up between German and English versions) and so on. Very often users mix up a 1 with an l ...
So please reset to default, check the default on command line and try again. And please use the correct user name!!! It is NOT pi on the GUI login but admin!!!

Re: pictory admin password not working

Posted: 24 Apr 2018, 20:00
by johnjsb
yes the gui to access pictory as far as i know is only accessible from a browser. I have tried internet explorer and google chrome. I typed password in the user field to confirm there is no keyboard mapping problem. I can login to ssh using pi and the default pass on the side of unit. I have typed and copied and pasted user and pass in both user field and password field about 50 times. I can assure you the caps arnt on and i am not typing it wrong. I also copied and pasted it from my own email well over 100 times and it worked with no issue before the last reboot. Maybe the web page button to reset password to default isn't working, or there is permission problem. I push it and it pops up with "password will be resetted - please confirm!" i click ok, dialog box says "Password has been reset ...". I've done this many times in explorer and chrome, still doesn't work. I ssh into revpi and i can enter default user:pi and the pass:****** and it works. Can i add a user to the webpage for pictory, if so were ? when i'm in ssh, piSerial shows the correct password, copy from there paste in browser with admin as user still no login.

Re: pictory admin password not working

Posted: 25 Apr 2018, 00:16
by volker
You will most likely have changed (may be not on purpose but without realizing it) files of the webserver's content which are responsible for the login. So please use your image backup and upload it to the system to restore the file system of the webserver.

Re: pictory admin password not working

Posted: 25 Apr 2018, 15:44
by johnjsb
I was updating everything first before i made an image, because it was crashing seemingly do to having teamviewer enabled. Let that be a lesson to all, first thing i did when i got the other one was make a backup should have done it this time. So were do i get the image with all the realtime patches etc? Is this the image with all the piseria,l pictory, revpi related software https://github.com/RevolutionPi/kernelbakery ? If i use the backup from the other unit will it have the old password or is it embedded in the hardware somehow? It used the older version of pictory, will it upgrade?

Re: pictory admin password not working

Posted: 25 Apr 2018, 21:53
by johnjsb
ok started over this is what i did

win32diskimage write to revpi using 2017-09-22-revpi-jessie.img
config pass and mac etc..
reboot
config tab works
services tab works
pictory works!!

sudo apt-get update
sudo apt-get install mc
sudo apt-get install htop
sudo apt-get install python3-revpimodio2
sudo apt-get dist-upgrade
reboot
config tab everything greyed out
services tab everything greyed out
pictory loads
select device and rename
tried save save-as-start-config reset driver all that, nothing actually saves
exit come back into pictory nothing saved
at top of page Project: config last saved:d.m.Y H:i:s
exit
logout
change password and for some reason new password actually works
this all has to be some permissions problem
I believe sudo apt-get dist-upgrade broke everything so i'm gonna try it all again and report back.

Re: pictory admin password not working

Posted: 25 Apr 2018, 23:12
by johnjsb
third try
win32diskimage write to revpi using 2017-09-22-revpi-jessie.img

on first boot can't ssh into revpi, instead using local display

keyboard.
need to set keyboard map but first the default pass: raspberry is

actually raspberrz in the us.

pi
raspberrz
Serial: ****
MAC Address: C83EA700****
enter and replies with password hostname etc...
reboot

now i can use ssh and password written on side which doesn't contain a y (german keyboard mapping is z).

sudo raspi-config
Localisation Options
Change Locale
en_US.UTF-8 UTF-8
ok
enUS.UTF-8
ok
Finish
Localisation Options
time zone
new york
for some reason keyboard map isnt in raspi-config
exit and reboot

restart ssh session
sudo apt-get update
go to web page of revpi 192.168.1.***
everything works pictory renames and saves logout and back in still all there.

sudo raspi-config
update this tool
still no keyboard layout
switching to local display and keyboard
sudo raspi-config
Localisation Options
yep sure enough keyboard is there, very strange not in ssh terminal.
change to generic 101-key pc
other
english (us)
english (us)
the default layout
no compose
no to ctrl+alt+backspace
finish
sudo reboot
keyboard, pictory all working
now should i save image, naw i like the pain and i deserve it. LOVE IITTT LOVE IITTT.
sudo apt-get install mc
sudo apt-get install htop
sudo apt-get install python3-revpimodio2
sudo reboot
thats just pictoryious, all still working.
sudo adduser *****
sudo usermod -aG *****
lets try revpimodio2
yep it works try it

Code: Select all

import revpimodio2
import time

# Instantiate RevPiModIO. This will read the piCtory configuration
# automatically.
myrevpi = revpimodio2.RevPiModIO()

# Read data from process image
myrevpi.readprocimg()

# Switch LED A1 green and A2 green
myrevpi.core.A1 = revpimodio2.GREEN
myrevpi.core.A2 = revpimodio2.GREEN
# Write data to process image
myrevpi.writeprocimg()
time.sleep(.25)
# Switch LED A1 off and A2 off
myrevpi.core.A1 = revpimodio2.OFF
myrevpi.core.A2 = revpimodio2.OFF
# Write data to process image
myrevpi.writeprocimg()
time.sleep(.25)
# Switch LED A1 green and A2 green
myrevpi.core.A1 = revpimodio2.GREEN
myrevpi.core.A2 = revpimodio2.GREEN
# Write data to process image
myrevpi.writeprocimg()
time.sleep(.25)
# Switch LED A1 off and A2 off
myrevpi.core.A1 = revpimodio2.OFF
myrevpi.core.A2 = revpimodio2.OFF
# Write data to process image
myrevpi.writeprocimg()
time.sleep(1)
# Switch LED A1 green and A2 green
myrevpi.core.A1 = revpimodio2.GREEN
myrevpi.core.A2 = revpimodio2.GREEN
# Write data to process image
myrevpi.writeprocimg()
time.sleep(.25)
# Switch LED A1 off and A2 off
myrevpi.core.A1 = revpimodio2.OFF
myrevpi.core.A2 = revpimodio2.OFF
# Write data to process image
myrevpi.writeprocimg()
time.sleep(.25)
# Switch LED A1 green and A2 green
myrevpi.core.A1 = revpimodio2.GREEN
myrevpi.core.A2 = revpimodio2.GREEN
# Write data to process image
myrevpi.writeprocimg()
time.sleep(.25)
# Switch LED A1 off and A2 off
myrevpi.core.A1 = revpimodio2.OFF
myrevpi.core.A2 = revpimodio2.OFF
# Write data to process image
myrevpi.writeprocimg()
time.sleep(1)
# Get inputs and set outputs
inputpin = myrevpi.io.I_1.value
myrevpi.io.O_1.value = inputpin
# The names have to be equal to your piCtory configuration
# Switch LED A1 red and A2 red numbers work too
myrevpi.core.A1 = 2 
myrevpi.core.A2 = 2 
myrevpi.writeprocimg()



Re: pictory admin password not working

Posted: 03 Jun 2018, 22:15
by PIify_Amanda
Hi,
I have the exact same behavior. Password for admin in GUI suddenly stopped working. I never changed the password on the sticker. Reset Password to Default does not help. The same password for user pi over ssh still works. Is there really no other fix than rolling back the to the backed up image?
Best regards,
Carl-Johan

Re: pictory admin password not working

Posted: 04 Jun 2018, 00:49
by volker
Hi Carl-Johan,
it is very unlikely that you have killed files which are essential to the login. But if you have done so using your image copy is the easiest way to get things running again. If you missed frequently making an image copy before experimenting with the system we could find a way to restore your login files. Please wait for our experts to give instructions for this...

Re: pictory admin password not working

Posted: 04 Jun 2018, 08:56
by PIify_Amanda
Thank you Volker for the quick reply. Just like johnjsb I also did a a sudo apt-get dist-upgrade before the problems started. Hence I guess dist-upgrade is a bad idea. Can anyone confirm?