W
Waspβ€’2mo ago
bardh

Can anyone help me with setting up wasp for a saas project.

I've been following the docs but for some reason it does't work , when i run wasp db migrate-dev it seems to put me on a loop that never stops.
14 Replies
kapa.ai
kapa.aiβ€’2mo ago
Hi @bardh. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- It seems you're encountering an issue with the wasp db migrate-dev command while setting up a SaaS project with Wasp. Based on the information provided in the knowledge sources, there are a few potential reasons and solutions for this problem: 1. Resource constraints: If you're running this on a machine with limited resources (like an EC2 micro instance), it might cause the process to hang due to insufficient memory. As mentioned in this Discord thread (https://discord.com/channels/686873244791210014/1217483832404611195), the free tier EC2 instance with only 1GB of memory might not be enough for Wasp to run smoothly. 2. Interrupted process: Sometimes, the process might appear to be in a loop if it's taking a long time to complete. As suggested in the same Discord thread, you could try the following steps: - Run wasp start db & in the background - Then run wasp db migrate-dev - If it hangs at the "Building SDK" stage, you can try to interrupt it and run npx tsc directly in the .wasp/out/sdk/wasp directory. 3. Clean and retry: As mentioned in another Discord thread (https://discord.com/channels/686873244791210014/1221144773834964992), you could try running wasp clean and then attempt wasp db migrate-dev again. 4. Check for updates: Ensure you're using the latest version of Wasp and its dependencies. You can check your Wasp version with wasp version. 5. Docker permissions: If you're using Docker, make sure you have the correct permissions set up. As noted in this solved issue (https://discord.com/channels/686873244791210014/1193138068195119104), installing Docker Desktop might help resolve permission-related problems. If none of these solutions work, you might want to provide more details about your setup, such as your operating system, Wasp version, and any error messages you're seeing. This would help in diagnosing the issue more accurately. Remember, if the process seems to be taking too long, it might be worth letting it run for a while (even up to 5-10 minutes) as sometimes the initial setup can take some time, especially on machines with limited resources. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @bardh, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist: Perhaps try again in 15mins?
NEROX
NEROXβ€’2mo ago
Can you share your logs?
bardh
bardhOPβ€’2mo ago
bardh
bardhOPβ€’2mo ago
wasp db migrate-dev 🐝 --- Compiling wasp project... -------------------------------------------------- [ Wasp ] Starting npm install [ Wasp ] Still installing npm dependencies! [ Wasp ] Installation going great - we'll get there soon! [ Wasp ] The installation is taking a while, but we'll get there! [ Wasp ] Yup, still not done installing. [ Wasp ] We're getting closer and closer, everything will be installed soon! [ Wasp ] Still waiting for the installation to finish? You should! We got too far to give up now! [ Wasp ] You've been waiting so patiently, just wait a little longer (for the installation to finish)... [ Wasp ] Still installing npm dependencies! [ Wasp ] Installation going great - we'll get there soon! [ Wasp ] The installation is taking a while, but we'll get there! [ Wasp ] Yup, still not done installing. [ Wasp ] We're getting closer and closer, everything will be installed soon! [ Wasp ] Still waiting for the installation to finish? You should! We got too far to give up now! [ Wasp ] You've been waiting so patiently, just wait a little longer (for the installation to finish)... [ Wasp ] Still installing npm dependencies! [ Wasp ] Installation going great - we'll get there soon! [ Wasp ] The installation is taking a while, but we'll get there! [ Wasp ] Yup, still not done installing. [ Wasp ] We're getting closer and closer, everything will be installed soon! when i run wasp db migrate- dev this just continues and never stops
NEROX
NEROXβ€’2mo ago
never never? I mean, the first time it took a time because it installs all dependencies and stuff
bardh
bardhOPβ€’2mo ago
yeah i mean i let it for like 6 hours
MEE6
MEE6β€’2mo ago
Wohooo @bardh, you just became a Waspeteer level 1!
NEROX
NEROXβ€’2mo ago
6 hours it's not normal. Where you are developing? WSL?
bardh
bardhOPβ€’2mo ago
yeah
NEROX
NEROXβ€’2mo ago
The application files are on the Linux subsystem? Or Windows? Try wasp clean, then run wasp db migrate-dev again
bardh
bardhOPβ€’2mo ago
yeah im using the ubuntu one , and with docker running on windows , i tried doing that i got : 🐝 --- Deleting the .wasp/ directory... ------------------------------------------- βœ… --- Deleted the .wasp/ directory. ---------------------------------------------- 🐝 --- Deleting the node_modules/ directory... ------------------------------------ βœ… --- Nothing to delete: The node_modules/ directory does not exist. ------------- but the same results
miho
mihoβ€’2mo ago
So you are using WSL and installing npm deps takes 6 hours? It might be that your project is located on the Windows file system and not on Ubuntu file system
bardh
bardhOPβ€’2mo ago
i tried it again today and somehow it worked bu thanks for reply
Want results from more Discord servers?
Add your server