Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No IP Shown // Can't Log In #1

Open
Smoz opened this issue Nov 7, 2017 · 27 comments
Open

No IP Shown // Can't Log In #1

Smoz opened this issue Nov 7, 2017 · 27 comments

Comments

@Smoz
Copy link

Smoz commented Nov 7, 2017

I ran the setup and after the reboot there was no IP shown so I opened a terminal, ran "hostname -I", went to the IP, saw the Apache success page only. I tried appending "/login.php" onto the IP and it showed the PHP file content (understandable :/). I then appended "/index.php" to the IP and it took me to the login page. I typed in "password" for the password but it's just going to the login.php and printing the PHP file contents as if I typed it in the first time.

Ideas?

Edit: Just tried browsing directly to "/sender.php" and it allowed me to get there. It even acted like it was going to work but no matter what I type in for the text or animations it doesn't updated the LED panels, nor does it hold the settings on the page.

Additionally, I should mention that I set this up by manually running "setup.sh" as the automated setup is throwing an error.

bash: line 31: syntax error near unexpected token `then'
bash: line 31: `then'
@xadacka
Copy link
Owner

xadacka commented Nov 7, 2017

Login.php is disabled on the default install! If you go to sender.php that's how you can control the screen

@xadacka
Copy link
Owner

xadacka commented Nov 7, 2017

Sorry, just noticed your edit. The setup script is designed to be piped into bash so just running it may have caused issues. What error was being thrown up when you piped it?

@Smoz
Copy link
Author

Smoz commented Nov 7, 2017

I've tried a new install, removed all the files associated with this from the home/pi/ dir. From there I'm running the command you suggested from the readme:

curl -sSL https://raw.githubusercontent.com/xer0design/led-matrix-controller/master/setup.sh | bash

I'm getting this:

image

After this, if I do "ls" I can see the led-matrix-controller directory, it looks like the files are in there, if I run the setup.sh like this, sudo ./setup.sh, then it seems to install and deploy fine. If I run the setup.sh like this, sudo ./setup.sh | bash, then I get this:

image

I could be doing everything wrong, this is my first project with a pi. :/

@xadacka
Copy link
Owner

xadacka commented Nov 7, 2017

I see the issue now actually, there's a syntax error in the installer, I'll fix it shortly and update here when ready to go. The installer does a lot of things and is only intended to be run once so just to be safe I'd recommend going with a fresh sd card before trying it again when fixed; code is fully tested and functional with jessie, haven't tried it on stretch yet but I'd imagine it'll work.

@xadacka
Copy link
Owner

xadacka commented Nov 7, 2017

That should be fixed and working now, the error with the webpage now loading should be fixed too! Just run the command again and leave her run. The IP showing initially I need to fix too, but that'll come soon.

curl -sSL https://raw.githubusercontent.com/xer0design/led-matrix-controller/master/setup.sh | bash

Running it as root might be a good idea, too, so type "sudo su" and return before piping.

@Smoz
Copy link
Author

Smoz commented Nov 7, 2017

Ah ok :) I didn't see Raspbian Jessie Lite. I'll give this a try now and let you know what happens!

@Smoz
Copy link
Author

Smoz commented Nov 7, 2017

Hmm, getting this issue now. I admittedly didn't start from scratch but I'll give that a try. It's getting to the [Y/n] choice but just aborting before I can choose anything.

image

@xadacka
Copy link
Owner

xadacka commented Nov 7, 2017

Okay you're still seeing a cached version of that script so, as I've removed the y/n option. I'd say give it another few minutes for the cache in your location to update. You'll know you have the correct version when it doesn't ask to update. Check the actual file in a browser and the code should jump straight from cd led-matrix-controller to #install apache2

https://raw.githubusercontent.com/xer0design/led-matrix-controller/master/setup.sh

@Smoz
Copy link
Author

Smoz commented Nov 7, 2017

Hmm, it's strange. It's updated when I look at it in the browser but it's still doing the same thing on the pi. I'll give it a bit longer and report back.

Thanks for the quick help!

@xadacka
Copy link
Owner

xadacka commented Nov 7, 2017

I'd suggest flashing a fresh image while you wait for that

@Smoz
Copy link
Author

Smoz commented Nov 7, 2017

Yeah I did, I'll do another ;)

@Smoz
Copy link
Author

Smoz commented Nov 7, 2017

Any ideas about these errors? Should I just run the apt-get update --fix-missing?

image

@Smoz
Copy link
Author

Smoz commented Nov 7, 2017

I think that may have done it :)

@xadacka
Copy link
Owner

xadacka commented Nov 7, 2017

Yeah running that should fix it, being a brand new install it probably has no apt cache so that'd explain not being able to find anything. A simple 'apt update' should also suffice. I'll add that into the installer now too.

@Smoz
Copy link
Author

Smoz commented Nov 7, 2017

Ugh fail :( Is this really still pulling the cached one somehow? I did get farther than I have previously! It seems like the rpi-rgb-led-matrix/examples-api-use directory isn't being created/pulled.

image

@xadacka
Copy link
Owner

xadacka commented Nov 7, 2017

Yeah, that question was entirely removed so it's still loading a cached copy somehow. The fact it's stating that it's making required programs without the directory there means git probably isn't installed either? I'll add that in too. 2 minutes I'll make a quick easy fix to get you by for now

@xadacka
Copy link
Owner

xadacka commented Nov 7, 2017

curl -sSL http://xer0.design/led/ledsetup.sh | bash

Try that.

@Smoz
Copy link
Author

Smoz commented Nov 7, 2017

Oh gosh I feel stupid :/

So apparently Git wasn't installed...I just installed it and now it's able to clone the repo like it should be. I'm sorry. I'm a failure. I'll just jump off a cliff lol

@xadacka
Copy link
Owner

xadacka commented Nov 7, 2017

We all start somewhere, not to worry.

@Smoz
Copy link
Author

Smoz commented Nov 7, 2017

I just used the latest curl you sent and it gave the same output.

image

@Smoz
Copy link
Author

Smoz commented Nov 7, 2017

Ok, so if I go into the led-matrix-controller directory and run the ./setup.sh command then it works. It doesn't work ./setup.sh | bash though.

It got to the [y/n] choice and waited instead of aborting immediately.

@xadacka
Copy link
Owner

xadacka commented Nov 7, 2017

Err, try one last time there, this one should do it. Use the curl from my server.

@Smoz
Copy link
Author

Smoz commented Nov 7, 2017

Ok it went all the way through this time. Restarting now.

This is something strange that I noticed happening. I see this output stating "php5 has no installation candidate". Have you seen that? I looked it up and it says that's because "ubuntu comes with php7 installed" or something like that.

So, before I was seeing the apache webpage when I would browse to the IP, now I'm seeing that the site can't be reached because the IP refused to connect. lol

Ok just a minute I'm installing some php stuff now.

Alright, I ran sudo apt-get install php and I can see the apache page once again but now instead of connection refused I get the "404 Not Found" message if I try to browse to /login.php /sender.php /index.php

@Smoz
Copy link
Author

Smoz commented Nov 7, 2017

The web interface is now up. I rebooted it and it's up :)

Trying to do anything on the web page like update the text or anything throws an error "sorry there was an error uploading your file".

@xadacka
Copy link
Owner

xadacka commented Nov 7, 2017

Raspbian is based on Debian but it's not related to Ubuntu, it's weird to see an Ubuntu related error. If it's running anyway then no big deal.

@Smoz
Copy link
Author

Smoz commented Nov 8, 2017

Hey! Sorry for the delay, I just got back to my pi. According to the web interface this is the current string:

image

But nothing is updating, just getting the error on the web form that says "sorry there was an error uploading your file". Ideas? I'm going to try a fresh install all the way through again.

@Smoz
Copy link
Author

Smoz commented Nov 8, 2017

So just for good measure I downloaded the hzeller original to run some of the examples and make sure it wasn't my hardware. The examples run normally from the hzeller rpi-rgb-led-matrix/ directory but manually trying to run the demos in the led-matrix-controller/ rpi-rgb-led-matrix/examples-api-use/ directory don't produce any output.

So the command I'm running is:

sudo ./demo --led-rows=16 --led-chain=2 --led-gpio-mapping=adafruit-hat -D 1 runtext16.ppm

So I'm at a loss :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants