Bootcamp: error while running locally

Created on 27 Jan 2019  ·  10Comments  ·  Source: vitorfs/bootcamp

I try to follow this to test project locally, other than step 5 I perform all the steps but I'm getting these error when I try to post News with the help of modal, can anyone help me to figure out the problem, I really appreciate it.

selection_003
selection_004

Thanks

Support question

Most helpful comment

@Shekharnunia
about Redis. It depends on whether you use Windows or Linux as operating system

Some more details.
The First steps are only for Windows 10.

1.
Enable Windows Subsystem for Linux.Open PowerShell as Administrator

2.
Run this command
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
This takes some Minutes, Windows will ask you to reboot your computer when is finish. Yes reboot.


  1. Open Microsoft Store on Windows and search for Ubuntu 18.04 LTS and install it.

4.
start Ubuntu
Autosetup for some minutes for the first start. When is finished create your superuser. Then configuration will ask you to create

5.
In Ubuntu Command line, enter the following commands to update the system to the latest version
sudo apt-get update
and
sudo apt-get upgrade
This command takes some minutes, you have time for a coffee ;-)


From here it is identical with linux operating system

6.
Intsall redis server in Ubuntu
sudo apt-get install redis-server

7.
activate redis command line
redis-cli -v

8.
restart redis server
sudo service redis-server restart


  1. testing redis
    redis-cli

10.
Open your configuration env file from bootcamp. You can user as base env.example. At the bottom of the file you have to adjust redis now.

change this line REDIS_URL=redis://127.0.0.1:6379 to your IP and Port from the console from Ubuntu - redis


  1. Start your bootcamp server

Finish, have fun

All 10 comments

I get the same error, I think it's because of the websockets

The error you're having is because you're omitting the fifth step. As the README and the Wiki sais, Bootcamp requires Redis to work. The error you're seeing here is because the software is unable to find the Redis service.

@sebastian-code please can you help me to understand how do I setup the step 5, I tried but I'm not able to figure out how to solve this issue.
Thanks

I also want to know that if their is any minor bug in code then should I tell that here or just ignore it?

About the bug, I don't see any on your error logs. About the step five, if you're talking about how to setup Redis, for that I suggest you refer to the manufacturer's instructions, once installed on your system, please change the environment variables as indicated in the wiki.

Keep in mind than that's the reason why I provided the Docker and docker-compose files.

screenshot from 2019-01-28 16-58-16

as you can see, when I do upvote it will change colour, and if I do downvote it will stay in previous state and didn't change it.

Ah, ok, now I understand, this should be a different issue because is not related with the title nor the original content. Please open than in a new issue to discuss it in it's own context.

@Shekharnunia
about Redis. It depends on whether you use Windows or Linux as operating system

Some more details.
The First steps are only for Windows 10.

1.
Enable Windows Subsystem for Linux.Open PowerShell as Administrator

2.
Run this command
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
This takes some Minutes, Windows will ask you to reboot your computer when is finish. Yes reboot.


  1. Open Microsoft Store on Windows and search for Ubuntu 18.04 LTS and install it.

4.
start Ubuntu
Autosetup for some minutes for the first start. When is finished create your superuser. Then configuration will ask you to create

5.
In Ubuntu Command line, enter the following commands to update the system to the latest version
sudo apt-get update
and
sudo apt-get upgrade
This command takes some minutes, you have time for a coffee ;-)


From here it is identical with linux operating system

6.
Intsall redis server in Ubuntu
sudo apt-get install redis-server

7.
activate redis command line
redis-cli -v

8.
restart redis server
sudo service redis-server restart


  1. testing redis
    redis-cli

10.
Open your configuration env file from bootcamp. You can user as base env.example. At the bottom of the file you have to adjust redis now.

change this line REDIS_URL=redis://127.0.0.1:6379 to your IP and Port from the console from Ubuntu - redis


  1. Start your bootcamp server

Finish, have fun

thank you so much for such a great explanation. Now I'm easily able to run it locally

Many thanks to you @samazaphikel for your help to solve @Shekharnunia issue.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Shekharnunia picture Shekharnunia  ·  6Comments

yashLadha picture yashLadha  ·  21Comments

phamminhtris picture phamminhtris  ·  12Comments

mwanjajoel picture mwanjajoel  ·  5Comments

sebastian-code picture sebastian-code  ·  11Comments