# Regarding Primero user customization GSoC 2020

**URL:** <https://primero.supporthub.dev/forum/t/regarding-primero-user-customization-gsoc-2020/297>\
**Category:** Primero IMS\
**Tags:** v2-0\
**Created:** [March 17, 2020, 4:38am UTC](https://primero.supporthub.dev/forum/t/regarding-primero-user-customization-gsoc-2020/297 "2020-03-17T04:38:25Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![menidhikjha](https://primero.supporthub.dev/forum/user_avatar/primero.supporthub.dev/menidhikjha/32/76_2.png) [@menidhikjha](https://primero.supporthub.dev/forum/u/menidhikjha)\
**Post date:** [March 17, 2020, 4:38am UTC](https://primero.supporthub.dev/forum/t/regarding-primero-user-customization-gsoc-2020/297/1 "2020-03-17T04:38:25Z")

</div>

Hi! I am Nidhi Kumari from New Delhi interested in contributing to Primero user customization package for this year GSOC 2020.

To get started, I have first installed the primero repository at the `version 2 development` branch and built on that [GitHub - primeroIMS/primero at development\_v2](https://github.com/primeroIMS/primero/tree/development_v2) as suggested by @irlawrence in one of the topics. But I am having issues while doing this.

On [http://0.0.0.0:3000/v2/login:](http://0.0.0.0:3000/v2/login:)  
I am having this problem

 ![Screenshot from 2020-03-17 09-53-15](https://primero.supporthub.dev/forum/uploads/primero/original/1X/8285d3979df304f5527a2904ee2125a96e58ddc6.png)

Credentials that I have used: `primero` / `primer0!`

These are my terminal outputs.

 ![Screenshot from 2020-03-17 09-53-55](https://primero.supporthub.dev/forum/uploads/primero/original/1X/734c7797bdb85aff5ebff479bff5d776f31ddb1e.png)

Please help me to fix it @irlawrence @jpanchalingam.

---

<div class="post-metadata">

**Author:** ![irlawrence](https://primero.supporthub.dev/forum/user_avatar/primero.supporthub.dev/irlawrence/32/8_2.png) [@irlawrence](https://primero.supporthub.dev/forum/u/irlawrence)\
**Post date:** [March 18, 2020, 5:51pm UTC](https://primero.supporthub.dev/forum/t/regarding-primero-user-customization-gsoc-2020/297/2 "2020-03-18T17:51:42Z")

</div>

Hi

What version of node are you running? The [documentation](https://github.com/primeroIMS/primero/tree/development_v2) mentions Node greater than 12.x  
Also I am not sure windows is the best platform to develop on currently (at least its much less tested). Could you try Ubuntu in a virtual machine and see if you get the same error?  
If you are interested in User Customization work make sure to read over the [UI/UX Development](https://github.com/primeroIMS/primero/blob/development_v2/doc/ui_ux.md) documents.

---

<div class="post-metadata">

**Author:** ![menidhikjha](https://primero.supporthub.dev/forum/user_avatar/primero.supporthub.dev/menidhikjha/32/76_2.png) [@menidhikjha](https://primero.supporthub.dev/forum/u/menidhikjha)\
**Post date:** [March 18, 2020, 6:07pm UTC](https://primero.supporthub.dev/forum/t/regarding-primero-user-customization-gsoc-2020/297/3 "2020-03-18T18:07:49Z")

</div>

Hi @irlawrence ! I am using Node version 12.16.1 and I am not working on windows. I working with Ubuntu(Linux Mint). Still I am facing this error. Please help

---

<div class="post-metadata">

**Author:** ![irlawrence](https://primero.supporthub.dev/forum/user_avatar/primero.supporthub.dev/irlawrence/32/8_2.png) [@irlawrence](https://primero.supporthub.dev/forum/u/irlawrence)\
**Post date:** [March 18, 2020, 6:49pm UTC](https://primero.supporthub.dev/forum/t/regarding-primero-user-customization-gsoc-2020/297/4 "2020-03-18T18:49:16Z")

</div>

Try to drop the postgres db and re load + seed it.

rails db:drop db:create db:migrate db:seed

---

<div class="post-metadata">

**Author:** ![menidhikjha](https://primero.supporthub.dev/forum/user_avatar/primero.supporthub.dev/menidhikjha/32/76_2.png) [@menidhikjha](https://primero.supporthub.dev/forum/u/menidhikjha)\
**Post date:** [March 18, 2020, 7:20pm UTC](https://primero.supporthub.dev/forum/t/regarding-primero-user-customization-gsoc-2020/297/5 "2020-03-18T19:20:12Z")

</div>

Now I am having this issue

 ![Screenshot from 2020-03-19 00-46-19](https://primero.supporthub.dev/forum/uploads/primero/original/1X/9e7da852115be5fb3da15679058bc021380df46e.png) ![Screenshot from 2020-03-19 00-46-42](https://primero.supporthub.dev/forum/uploads/primero/original/1X/ae941b4e40762152c4fa03b4aa3fa737da3307b4.png)

---

<div class="post-metadata">

**Author:** ![irlawrence](https://primero.supporthub.dev/forum/user_avatar/primero.supporthub.dev/irlawrence/32/8_2.png) [@irlawrence](https://primero.supporthub.dev/forum/u/irlawrence)\
**Post date:** [March 19, 2020, 2:36pm UTC](https://primero.supporthub.dev/forum/t/regarding-primero-user-customization-gsoc-2020/297/6 "2020-03-19T14:36:36Z")

</div>

Hi

Have all the services started?

```auto
$sudo ./compose.local.sh up -d postgres
$sudo ./compose.local.sh run solr make-primero-core.sh primero-test
$sudo ./compose.local.sh up -d solr

```

I will make a more step by step guide to get set up with v2 and post it here shortly

---

<div class="post-metadata">

**Author:** ![menidhikjha](https://primero.supporthub.dev/forum/user_avatar/primero.supporthub.dev/menidhikjha/32/76_2.png) [@menidhikjha](https://primero.supporthub.dev/forum/u/menidhikjha)\
**Post date:** [March 19, 2020, 5:55pm UTC](https://primero.supporthub.dev/forum/t/regarding-primero-user-customization-gsoc-2020/297/7 "2020-03-19T17:55:08Z")

</div>

Hey Ian!

Yes, I know about these services. I had gone through the documentation and Readme as well.

So after cloning this repo. I installed docker, and then`cd docker` and after that I have added these services.

I have also found some issues in the readme like `$ sudo apt-get install -y libpq imagemagick libsodium-dev p7zip` has to be replaced with` sudo apt-get install -y libpq-dev imagemagick libsodium-dev p7zip` but after all the installation steps I am facing the issue with login credentials. `primero` / `primer0!`. Can I open a pull request regarding that on the repository as my first contribution?

Is this possible that I have to use different credentials for login??

Also, can you please help me where can I submit my proposal so that you along with other mentors can review it and help me to make necessary changes before my final submission as I am in time crunch and application deadline is on 31 March.

Please help!

---

<div class="post-metadata">

**Author:** ![irlawrence](https://primero.supporthub.dev/forum/user_avatar/primero.supporthub.dev/irlawrence/32/8_2.png) [@irlawrence](https://primero.supporthub.dev/forum/u/irlawrence)\
**Post date:** [March 20, 2020, 8:47pm UTC](https://primero.supporthub.dev/forum/t/regarding-primero-user-customization-gsoc-2020/297/8 "2020-03-20T20:47:34Z")

</div>

Hi

[Check out the guide I just posted](https://primero.supporthub.dev/forum/t/installing-primero-v2-for-development-on-ubuntu-18-04/300) and particularly the section on your node version as well as environment variables. I am actually not sure where you submit a proposal but I can try to find out

---

<div class="post-metadata">

**Author:** ![menidhikjha](https://primero.supporthub.dev/forum/user_avatar/primero.supporthub.dev/menidhikjha/32/76_2.png) [@menidhikjha](https://primero.supporthub.dev/forum/u/menidhikjha)\
**Post date:** [March 21, 2020, 7:43am UTC](https://primero.supporthub.dev/forum/t/regarding-primero-user-customization-gsoc-2020/297/9 "2020-03-21T07:43:56Z")

</div>

Hey @irlawrence

Thanks for posting the guide. I followed the instructions. But I am still getting this error

 ![Screenshot from 2020-03-21 13-09-48](https://primero.supporthub.dev/forum/uploads/primero/original/1X/f7287a3bbdb8e727a8221ee16e34d830686d5131.png)

Also there was this warning

` warning: 2.6.2-compliant syntax, but you are running 2.6.5.`

But after running ruby -v it gives an output

```
ruby -v

```

`ruby 2.6.5p114 (2019-10-01 revision 67812) [x86_64-linux]`

Please let me know what is going wrong with my installation steps.

Thanks!

---

<div class="post-metadata">

**Author:** ![irlawrence](https://primero.supporthub.dev/forum/user_avatar/primero.supporthub.dev/irlawrence/32/8_2.png) [@irlawrence](https://primero.supporthub.dev/forum/u/irlawrence)\
**Post date:** [March 21, 2020, 6:37pm UTC](https://primero.supporthub.dev/forum/t/regarding-primero-user-customization-gsoc-2020/297/10 "2020-03-21T18:37:58Z")

</div>

What do you have in your ~/.bashrc ?

cat ~/.bashrc

at the bottom you should see

```
export PRIMERO_SECRET_KEY_BASE=PRIMERO_SECRET_KEY_BASE
export DEVISE_SECRET_KEY=DEVISE_SECRET_KEY
export DEVISE_JWT_SECRET_KEY=DEVISE_JWT_SECRET_KEY

```

also what is your node version?

---

<div class="post-metadata">

**Author:** ![menidhikjha](https://primero.supporthub.dev/forum/user_avatar/primero.supporthub.dev/menidhikjha/32/76_2.png) [@menidhikjha](https://primero.supporthub.dev/forum/u/menidhikjha)\
**Post date:** [March 21, 2020, 7:09pm UTC](https://primero.supporthub.dev/forum/t/regarding-primero-user-customization-gsoc-2020/297/11 "2020-03-21T19:09:33Z")

</div>

In the bottom I am seeing this and my node version is 12.16.1

 ![Screenshot from 2020-03-22 00-39-02](https://primero.supporthub.dev/forum/uploads/primero/original/1X/58291149423f1a80f55d9d12c646452bea3f113b.png)

---

<div class="post-metadata">

**Author:** ![irlawrence](https://primero.supporthub.dev/forum/user_avatar/primero.supporthub.dev/irlawrence/32/8_2.png) [@irlawrence](https://primero.supporthub.dev/forum/u/irlawrence)\
**Post date:** [March 21, 2020, 7:17pm UTC](https://primero.supporthub.dev/forum/t/regarding-primero-user-customization-gsoc-2020/297/12 "2020-03-21T19:17:39Z")

</div>

You are exporting the variables multiple times with different values which is maybe confusing things. Remove all the lines with

export PRIMERO\_SECRET\_KEY\_BASE  
export DEVISE\_SECRET\_KEY  
export DEVISE\_JWT\_SECRET\_KEY

to just export it once as above. Make sure to reload into your shell by either restarting the shell or doing `source ~/.bashrc`

---

<div class="post-metadata">

**Author:** ![menidhikjha](https://primero.supporthub.dev/forum/user_avatar/primero.supporthub.dev/menidhikjha/32/76_2.png) [@menidhikjha](https://primero.supporthub.dev/forum/u/menidhikjha)\
**Post date:** [March 21, 2020, 8:28pm UTC](https://primero.supporthub.dev/forum/t/regarding-primero-user-customization-gsoc-2020/297/13 "2020-03-21T20:28:16Z")

</div>

Done! Thanks . But now this is what I am getting after I run

```
foreman start -f Procfile.dev

```

 ![Screenshot from 2020-03-22 01-56-48](https://primero.supporthub.dev/forum/uploads/primero/original/1X/4ab083b0003e7eeb5880a478ad7289b7f3c35d9b.png)

---

<div class="post-metadata">

**Author:** ![irlawrence](https://primero.supporthub.dev/forum/user_avatar/primero.supporthub.dev/irlawrence/32/8_2.png) [@irlawrence](https://primero.supporthub.dev/forum/u/irlawrence)\
**Post date:** [March 21, 2020, 8:46pm UTC](https://primero.supporthub.dev/forum/t/regarding-primero-user-customization-gsoc-2020/297/14 "2020-03-21T20:46:32Z")

</div>

You have something using port 9000. Find what it is and kill it

`sudo ss -tulpn`

which outputs something like

```
tcp LISTEN 0 128 127.0.0.1:2015 0.0.0.0:* users:(("expressvpnd",pid=2861,fd=11))                                   
tcp LISTEN 0 128 127.0.0.1:40133 0.0.0.0:* users:(("expressvpn-brow",pid=11394,fd=7))                               
tcp LISTEN 0 128 0.0.0.0:5000 0.0.0.0:* users:(("gunicorn",pid=27374,fd=5),("gunicorn",pid=27373,fd=5),("gunicorn",pid=27372,fd=5),("gunicorn",pid=27368,fd=5))

```

look through the output for the port 9000 and find the PID and then do `sudo kill -9 <PID>`

So in the example above if I wanted to kill gunicorn running on port 5000 I would do

`sudo kill -9 27374 27373 27372 27368 `

---

<div class="post-metadata">

**Author:** ![menidhikjha](https://primero.supporthub.dev/forum/user_avatar/primero.supporthub.dev/menidhikjha/32/76_2.png) [@menidhikjha](https://primero.supporthub.dev/forum/u/menidhikjha)\
**Post date:** [March 21, 2020, 9:09pm UTC](https://primero.supporthub.dev/forum/t/regarding-primero-user-customization-gsoc-2020/297/15 "2020-03-21T21:09:24Z")

</div>

Thank you Ian

But I got stuck in a error again ☹

 ![Screenshot from 2020-03-22 02-35-08](https://primero.supporthub.dev/forum/uploads/primero/original/1X/40aad05040e690f60d6e746b5c1f0572459ea708.png)

---

<div class="post-metadata">

**Author:** ![irlawrence](https://primero.supporthub.dev/forum/user_avatar/primero.supporthub.dev/irlawrence/32/8_2.png) [@irlawrence](https://primero.supporthub.dev/forum/u/irlawrence)\
**Post date:** [March 21, 2020, 10:05pm UTC](https://primero.supporthub.dev/forum/t/regarding-primero-user-customization-gsoc-2020/297/16 "2020-03-21T22:05:12Z")

</div>

Restart your machine then kill any servers you do not need …apache, nginx etc.Then start the services and then try to using 2 shells. Start the development Rails server on port 3000 in one:

```auto
$ rails s

```

And in a separate terminal window, the development Rails Webpacker server:

```auto
$ npm run dev

```

Paste the full error log as well as the output of the `sudo ss -tulpn` above

---

<div class="post-metadata">

**Author:** ![menidhikjha](https://primero.supporthub.dev/forum/user_avatar/primero.supporthub.dev/menidhikjha/32/76_2.png) [@menidhikjha](https://primero.supporthub.dev/forum/u/menidhikjha)\
**Post date:** [March 22, 2020, 11:26am UTC](https://primero.supporthub.dev/forum/t/regarding-primero-user-customization-gsoc-2020/297/17 "2020-03-22T11:26:18Z")

</div>

Hi Ian,  
output of `sudo ss -tulpn` is :

 ![Screenshot from 2020-03-22 16-52-10](https://primero.supporthub.dev/forum/uploads/primero/original/1X/60f226cea578db89c5a36646e03d9ab2116dbcaa.png)

Also there is one more problem. Even if I do not run any command in my terminal still on my browser if I go to `http://localhost:3000` it automatically starts primero `http://localhost:3000/v2/login`. Help me how to kill this.

 ![Screenshot from 2020-03-22 16-51-06](https://primero.supporthub.dev/forum/uploads/primero/original/1X/45a7afc138d12fac63fd852bde7277208d7c80ce.png)

---

<div class="post-metadata">

**Author:** ![irlawrence](https://primero.supporthub.dev/forum/user_avatar/primero.supporthub.dev/irlawrence/32/8_2.png) [@irlawrence](https://primero.supporthub.dev/forum/u/irlawrence)\
**Post date:** [March 22, 2020, 11:30am UTC](https://primero.supporthub.dev/forum/t/regarding-primero-user-customization-gsoc-2020/297/18 "2020-03-22T11:30:06Z")

</div>

This is because your browser has cached the frontend of the application - you can clear that cache if you want to. Can you start solr and postgres and then the 2 terminals and post the error log

---

<div class="post-metadata">

**Author:** ![menidhikjha](https://primero.supporthub.dev/forum/user_avatar/primero.supporthub.dev/menidhikjha/32/76_2.png) [@menidhikjha](https://primero.supporthub.dev/forum/u/menidhikjha)\
**Post date:** [March 22, 2020, 12:10pm UTC](https://primero.supporthub.dev/forum/t/regarding-primero-user-customization-gsoc-2020/297/19 "2020-03-22T12:10:34Z")

</div>

I have cleared the cache and after running the services these are my errors.

[rails -s error](https://pastebin.com/mDKZfAME)

[npm run dev error](https://pastebin.com/E2WTLwT9)

---

<div class="post-metadata">

**Author:** ![irlawrence](https://primero.supporthub.dev/forum/user_avatar/primero.supporthub.dev/irlawrence/32/8_2.png) [@irlawrence](https://primero.supporthub.dev/forum/u/irlawrence)\
**Post date:** [March 22, 2020, 1:01pm UTC](https://primero.supporthub.dev/forum/t/regarding-primero-user-customization-gsoc-2020/297/20 "2020-03-22T13:01:20Z")

</div>

So your frontend is fine. The problem is rails and getting the jwt token.  
In the same shell as you ran rails and at the root of the checkout do the following:

rails db:drop  
rails db:create  
rails db:migrate  
rails db:seed

These are separate commands. Paste any errors as before

[Next page](https://primero.supporthub.dev/forum/t/regarding-primero-user-customization-gsoc-2020/297.md?page=2)
