I’m running an RPi 3 purchased from @metalmaslow with Webcontrol pre-installed. Until trying to set up Makerverse, I haven’t done anything else to it. It appears to have 12gb of storage but was down to 300mb after the Makerverse build run. I’ll do some cleanup of the file system, etc. and try again.
That should be sufficient RAM. Make sure you’re not still running WebControl, too. You can type top
in a command prompt on the Pi to see RAM (“Mem”) usage.
you can also buy a bigger memory card. You’ll want to back up whatever system anyways to avoid the headache of reinstalling it all in the case of corrupted card.
@zaneclaes I have read, reread, and followed the instructions. The first time through I realized that nvm needed to be version 12. CNCjs says to use 10, so once I redid it with 12, most all of the errors went away to be just warnings. After the build, it runs, but and gives a different “not working” web page, so it is on, but something isn’t quite right. It states it is missing a favicon.ico file:
Error: ENOENT: no such file or directory, stat ‘/home/pi/makerverse/dist/makerverse/app/favicon.ico’
just for fun, I made a “lame” icon file and put it in the folder and the error persists.
This is the error page that isn’t the normal “page not found”
Though it does state the server started, it does not function as expected. I’m going to walk through it again. My question for this post: Which version of the compiled set works on the rpi? the Linux ia32-bit?
EDIT:
>npm run build-prod
give the error
>npm run build
does not give the error
>npm run start
then works after the build. I won’t pretend to understand why, but it is the “way.”
If that file was missing, the app did not build successfully. Can you put the command you ran and the full output of that command in gist.github.com ?
This is exactly the experience I have after my first attempt.
I cleaned up some stuff and stopped Webcontrol. However, I thought I could pick up again at the Bash command but the Launch script is no longer there. (?) So, I thought I’d do a git pull to refresh all the files but am getting an error from git that ‘src/package.json’ has been modified locally. Is there a simple option for git pull to have it overwrite anything that has been modified? (I’m not a regular git user)
Bob
I found this helpful:
>git fetch --all
>git reset --hard origin/master
the first one fetches the new changes to the repository and the second resets your branch to the master.
You don’t have to delete and reclone, but that is effectively what is going on. After looking at it, this might be the problem I’m having because I’m not running off of the zane branch any longer. I’ve been trying to get things working off of the main branch, but I was under the impression that the zane branch got merged into the main branch, so it should be the one to use.
It looks like you are both having out of memory errors during the build step. This is not terribly surprising, given that the build step is much more intensive than simply running the application. Still, my RPi3 B+ handled it fine, so maybe you have an older model or something.
I’m working on the pre-built Raspberry Pi image right now which should correct this…
If it helps, here is the gist for my last attempt after reseting and pulling from git again.
As one of your vounteer testers, I dont want to sound ungrateful or like I’m being snarky or demanding but, (and please forgive me for saying): it’s a little tough to figure out, as a beginner, what the instructions actually ARE.
Is this the section that should work for me on Rpi?
Yes, those are the instructions you should follow for Raspbery or probably any other Linux variant.
Clean install of Rasbien. Only thing I did ahead of time was install git so I could clone Makerverse.
According to your log, you ran the command chmod +x ./bin/makerverse
. I don’t see that command, or the subsequent ones, anywhere in the README.
Looks like I had the main page open as well as the read me. Back to square 1.
Hrm? The README is the same thing as the main page of a Github repo. I think you may have simply had the tab open for a long time without refreshing it. The command you referenced may have been present in the README back before the update yesterday.
No need to start over. The names of the last two commands just changed from ./bin/makerverse
to /bin/launch
. Everything else looks right.
Everything seemed to be working but I got a few errors:
Those are expected during the build step. If there had been a fatal error, the script would have exited with a failure code. The output you sent was incomplete (it is still running).
I must have jumped the gun. I tried the command again and it seemed to work but also had errors: