-
-
Notifications
You must be signed in to change notification settings - Fork 709
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
vagrant-spk dev not working apps in Sandstorm apps #3102
Comments
When you run vagrant-spk dev, are you seeing "App is now available from Sandstorm server. Ctrl+C to disconnect." in the CLI? If so, the most likely issue is that somehow you are not accessing the same Sandstorm server as vagrant-spk is creating. This could happen if you are running Sandstorm locally on the server and then also using vagrant-spk, which spins up it's own Sandstorm server inside the VM, or if you have multiple vagrant-spk vms running for some reason. |
I will see if I can find some time to clone your repo and bring it up on my Sandstorm dev box. |
Yes. I got this message.
Yes. I am running in local server but single VM is there.
Thank you very much. Once its worked i will create spk and submit to display in Sandstorm for our users. |
If you're running Sandstorm locally on port 6080, you'd need to stop your Sandstorm server ( |
|
It should be at local.sandstorm.io:6080 (or localhost:6080) when you have the Sandstorm service stopped. Basically your Sandstorm service and vagrant-spk are both trying to run Sandstorm on port 6080, and so if you have the Sandstorm service running, vagrant-spk can't use it, and you see the non-dev Sandstorm instance. |
Thank you very much for the information. Now i can able to access http://local.sandstorm.io:6080/ and saw the apps but when i create grain its showing error, ERROR: The server threw an exception. Details: sandstorm/gateway.c++:299: failed: expected parsed.query[1].name == "path" |
Well, we definitely made progress, because you are now able to troubleshoot your Sandstorm package! @JamborJan Any chance you can help troubleshoot the package at all? I am probably leaving my depth around there. |
Yes. I am using ubuntu machine and is there anything i have to add for subdomain |
No, that's just a random subdomain Sandstorm is using for that grain. If you make another one it'll be different. Something in your grain isn't starting up correctly. |
Ok. Is there any command to debug that grain? Also while create grain which shell script will execute setup.sh, build.sh, launcher.sh? |
Hey guys, Debugging a running app is possible with
(Source is this issue comment: sandstorm-io/vagrant-spk#213 (comment)) If you need more detailed help and instructions to debug the issue, please let me know. Good luck! |
Redirecting to http://ui-aff367f14059bf4373e663d9cf1e4345.local.sandstorm.io:6080/ But its displaying error message. |
Do you have a public repository which I could clone and run the single steps on my own? It’s often easier to find the issue this way. |
@JamborJan Yes. You can find it here https://github.com/RestyaPlatform/board/tree/dev/.sandstorm. |
@JamborJan Did you get a chance to check the issue we faced? We've completed 95% but stuck here due to grain not worked. Can you please help us to proceed further? |
hey @ssivachidambaram I'm sorry, I'm packed with work right now and was not able to look into this yet. I'll do my best to give you feedback until the end of the week, okay? |
@JamborJan Okay. Thank you. |
Hey @ssivachidambaram, partially good news: I am able to reproduce the issue which means I can debug it. So I'm working on that tomorrow and hopefully get an answer for you. I'll keep you posted. |
@JamborJan Thank you very much. |
@JamborJan Did you get a chance today to look it into the issue? |
I‘m on it right now. There are some things missing in the spin up process plus you cannot use cron in sandstorm. But let me first try to fix it completely and then I’ll send you a pull request and detailed explanations. Okay? |
@JamborJan Okay. Thanks for your help. |
I did make progress today but am not yet finished. The Nginx configuration needed adjustment and I streamlined some parts. I’ll contiune later this evening and if necessary tomorrow and let you know the results. |
Okay. |
hey @ssivachidambaram, please take a look here where I forked your repository and changed some stuff. I still have a problem that the php-fpm sock ist not properly working. Unfortunately I've no clue yet why this happens. Maybe you have an idea? I'll continue to investigate during the upcoming days. maybe you have also an idea. |
In |
Unfortunately this is only a check I included to trace down the issue. Thanks for the hint but it’s not the cause. The whole block from |
@JamborJan Are you noting that that check is for php-fpm5, but the repo uses php-fpm7.2? |
Hey @ocdtrekkie, after @ssivachidambaram pointed me at this: yes. But as it is only a check and optional, i don’t know yet why fpm is not starting. |
I removed the check again (it didn't help or destroy anything). When starting the app in dev mode I see in the app console:
When I ssh into the vm and try to start the fpm process with this command:
I get this error message:
|
I have also received this error when starting from SSH. When searching it, after removing semi colon
I can able to start php-fpm. |
I did find that too now, this was a mandatory change which is applied to the configs in Sandstorms use case. See: https://github.com/sandstorm-io/vagrant-spk/blob/master/stacks/lemp/setup.sh#L23-L28 The crazy thing is, that all other configurations and apps I have are working with this change. The change is not working either:
|
@ssivachidambaram I can investigate into this further but before that I want you to consider & think about two things:
What do you think? |
Sorry for the delayed response.
Yes. Not a problem.
Within a network it will work or only for single user? Also our functionality is like Wekan which is already available in Sandstorm. So we need to publish our app in Sandstorm. |
It isn't an issue for multiple users to use a Sandstorm app. It's just that Sandstorm apps can't easily talk to outside servers. Even accessing other Sandstorm apps requires a bit of work. If your functionality is similar to Wekan you should be fine. If there's third party integrations like allowing Twitter login or something, that probably would not work. There are some features Wekan has that don't work in Sandstorm and are disabled in the Sandstorm version, though I think a lot of those are because the Sandstorm app version of Wekan uses a single-board design. |
@ocdtrekkie Thanks for the explanation. We don't have any third party integrations. So it's fine for us to publish in Sandstorm app. |
Hey guys, thanks for the additional input and thoughts. I’ll continue to work on the problems we encountered. If anybody else sees something please add a comment. |
@JamborJan Sorry to bother you. Did you got any idea about the fpm start issue? |
Hey @ssivachidambaram I'm working on it, just had a meeting with a colleague discussing some options. One question: is your docker image of the RestyaPlatform board working well? I'm testing a process where we could use this as base instead of doing a lot of separate stuff in vagrant. Thanks! |
@JamborJan Yes. It will work. Please use https://hub.docker.com/r/restyaplatform/restyaboard/tags/ v0.6.6. |
Short update: I’ll not be able to work on this issue this week. I have some ideas and fixes but unfortunately no time this week. Sorry. |
@JamborJan Ok. Thank you for the update. |
@JamborJan Sorry for not following up on this. Did you have any chance to look up on this? |
Unfortunately I was not able to find a solution yet. A lot of projects kept me busy and I was not able to work on these topics. Sorry. Right now I cannot promise when I can start working on this again. I made some progress on the overall process on packaging apps based on docker images but thetas not final yet. |
@JamborJan Thanks for your reply and help. Can i have that file to continue the process? |
There is nothing yet for restyabord as I was experimenting with a repo where I'm more familiar with. Basically I'm using docker images, this tool: |
@JamborJan Ok. I will try it and let you know. |
Hey @ssivachidambaram sorry when I don't get what file you are asking for. There is no file yet. All I have done so far is a base image (here: Then I have started working on the wordpress port to build the described process (see pictures here: It is not working yet. But should be a more or less good start. |
@JamborJan Thanks you very much for the reference file. Will try it. |
vagrant-spk vm up
is working properly and can able to access site using IP.Now we're following this tutorial to package our app https://docs.sandstorm.io/en/latest/vagrant-spk/packaging-tutorial/. But while running
vagrant-spk dev
, its not creating anything in Sandstorm apps page.We've committed our files here https://github.com/RestyaPlatform/board/tree/dev/.sandstorm.
The text was updated successfully, but these errors were encountered: