#Cannot GET / error

113 messages · Page 1 of 1 (latest)

maiden jay
#

So im running medusa on my rpi, and after running it it returns Cannot GET /(Atachment)

silver tangle
#

This is just the api, you need to host the storefront or admin (usually port 8000 and 7000)

maiden jay
#

so i should go to 8000

#

to test it

silver tangle
#

try

maiden jay
#

ok lemme start the program agin

silver tangle
#

okay

maiden jay
#

8000/7000 both not used

#

nothing on them

silver tangle
#

did you create the medusa project with the storefront and admin?

maiden jay
#

no

#

i just got to get started

silver tangle
#

you can use

npx create-medusa-app
to create all of these

maiden jay
#

and tried that

#

ok ill try

#

sorry i dont know javascript so good

silver tangle
#

its okay

maiden jay
silver tangle
#

i'd select the default

maiden jay
#

wat now?

silver tangle
#

I personally use the Next.js Starter, but it's up to you

maiden jay
#

ok ill try that one

silver tangle
#

okay

maiden jay
#

Its installing da packages

silver tangle
#

nice

maiden jay
#
    at gt (/home/pi/.npm/_npx/cc876d312f16923e/node_modules/create-medusa-app/dist/index.js:1:113620)
    at /home/pi/.npm/_npx/cc876d312f16923e/node_modules/create-medusa-app/dist/index.js:1:123343
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    at async js (/home/pi/.npm/_npx/cc876d312f16923e/node_modules/create-medusa-app/dist/index.js:1:183921)
    at async /home/pi/.npm/_npx/cc876d312f16923e/node_modules/create-medusa-app/dist/index.js:1:185433
    at async Is (/home/pi/.npm/_npx/cc876d312f16923e/node_modules/create-medusa-app/dist/index.js:1:184931)
    at async exports.run (/home/pi/.npm/_npx/cc876d312f16923e/node_modules/create-medusa-app/dist/index.js:1:497721) {
  shortMessage: 'Command failed with exit code 1: npm install',
  command: 'npm install',
  escapedCommand: 'npm install',
  exitCode: 1,
  signal: undefined,
  signalDescription: undefined,
  stdout: undefined,
  stderr: undefined,
  failed: true,
  timedOut: false,
  isCanceled: false,
  killed: false
}

silver tangle
#

that happened while installing the packages?

maiden jay
#

after that it seems like

silver tangle
#

what version of node do you have

node -v

maiden jay
#

12.22.12

silver tangle
#

Medusa requires version 14 or 16, try upgrading

#

remove the created folder and run it again

maiden jay
#

its apt upgrade right?

#

sorry im using just arch

silver tangle
#

(sudo) apt-get install --only-upgrade nodejs
should do the thing

maiden jay
#

alr lemme do it

#

nodejs is already the newest version (12.22.12~dfsg-1~deb11u3).

#

wats wrong with it?

silver tangle
#

try

apt update

maiden jay
#
Hit:1 http://security.debian.org/debian-security bullseye-security InRelease
Hit:2 http://deb.debian.org/debian bullseye InRelease
Hit:3 http://deb.debian.org/debian bullseye-updates InRelease
Hit:4 http://archive.raspberrypi.org/debian bullseye InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
maiden jay
#

root@raspberrypi:/home/pi# apt-get install --only-upgrade nodejs
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
nodejs is already the newest version (12.22.12~dfsg-1~deb11u3).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@raspberrypi:/home/pi#

#

agin

#

its broken

#

lemme try reboot

silver tangle
#

try removing it

#

and installing it again

maiden jay
#

i literally

silver tangle
#

or idk

maiden jay
#

installed os

#

10minutes ago

maiden jay
#

ok im doing it

silver tangle
#

okay

maiden jay
#

pog i have 16

silver tangle
#

nice

#

remove that folder that was created

#

and re-run the create-medusa-app command

maiden jay
#

wait im trying npx thingy

silver tangle
#

hopefully it'll work

maiden jay
#

i think it will overheat soon

#

i put it in da box so it wont be too fast but the box will start melting soon

silver tangle
#

:D

#

if you're going to deploy on a rpi, get some active cooling

maiden jay
#

dw

#

i just wanna be dropshiping

#

idc if it falls every 2 days

silver tangle
#

okay :D

silver tangle
maiden jay
#

they will buy overpriced products anyway instead of going to amazon

#

Lol

#

im developer

#

im ok with being on some website falling every 2 mins

silver tangle
#

:D

maiden jay
#

so i dont really understand it sorry

silver tangle
#

its done?

maiden jay
#

not really

silver tangle
#

are you planning to use sqlite or postresql?

maiden jay
#

uh

#

no i think

#

maybe sql lite

#

idk yet

#

I think the pi's pcb will start melting soon

#

its taking really long time

silver tangle
#

i'd that's normal on rpi

maiden jay
#

noice

bold surge
#

sqlite is unusable in production

maiden jay
#

ok i think its done

#

baking

silver tangle
#

go to all of the folders and use yarn start to run it

maiden jay
#

cant i do npm?

silver tangle
#

you can use npm run dev on admin and storefront

#

and npm run start on backend

maiden jay
#

like

#

for eatch

#

alr

#

so just npm run dev&

#

?

silver tangle
#

yes

maiden jay
#

ok

#

Alr

#

it worked

#

thanks

silver tangle
#

If you need more help dm me.

maiden jay
#

ok thanks

silver tangle
#

Ahoj

maiden jay
#

Zdar