# Node solid server setup and login

**URL:** <https://forum.solidproject.org/t/node-solid-server-setup-and-login/778>\
**Category:** General Discussion\
**Created:** [December 3, 2018, 10:49pm UTC](https://forum.solidproject.org/t/node-solid-server-setup-and-login/778 "2018-12-03T22:49:51Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![dconorozzo](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/dconorozzo/32/431_2.png) [@dconorozzo](https://forum.solidproject.org/u/dconorozzo)\
**Post date:** [December 3, 2018, 10:49pm UTC](https://forum.solidproject.org/t/node-solid-server-setup-and-login/778/1 "2018-12-03T22:49:51Z")

</div>

I have setup a node-solid server on Windows and on Mint Linux. It is running in single user mode. I cannot register an account on either server (every account I try to register says account already exists). Is there some default login on these? I followed the setup instructions at:

> **[solid/node-solid-server](https://github.com/solid/node-solid-server)**
>
> Solid server on top of the file-system in NodeJS. Contribute to solid/node-solid-server development by creating an account on GitHub.

The instructions, as far as I can see, just say to create a user and login.

---

<div class="post-metadata">

**Author:** ![rimmartin](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/rimmartin/32/166_2.png) [@rimmartin](https://forum.solidproject.org/u/rimmartin)\
**Post date:** [December 3, 2018, 11:35pm UTC](https://forum.solidproject.org/t/node-solid-server-setup-and-login/778/2 "2018-12-03T23:35:43Z")

</div>

For me, I had to add scripts node.cmd & node-test.cmd on windows to launch node-solid-server

> <https://github.com/rimmartin/node-solid-server/tree/master/bin>
>
> //github.com/rimmartin/node-solid-server/tree/master/bin

> [@Pell-Mell on Setting Up a Solid Server on Windows](http://forum.solidproject.org/t/pell-mell-on-setting-up-a-solid-server-on-windows/651/13):
>
> but bin/solid is a shebang script for node javascript This doesn’t run on my windows box from the cmd prompt. So I made the windows equivalent:

> [@Pell-Mell on Setting Up a Solid Server on Windows](http://forum.solidproject.org/t/pell-mell-on-setting-up-a-solid-server-on-windows/651/2):
>
> I stood node-solid-server up on windows using node-forge [https://github.com/digitalbazaar/forge#x509](https://github.com/digitalbazaar/forge#x509) self signing with x509 and also made some windows cmd’s equivalent to bin/solid and bin/solid-test no openssl or unix emulation needed. I guess I should fork; would be the easiest way to provide this to the forum?

Since I don’t have ssl certificates I use node-forge to self generate on windows.

> [@Pell-Mell on Setting Up a Solid Server on Windows](http://forum.solidproject.org/t/pell-mell-on-setting-up-a-solid-server-on-windows/651/3):
>
> cd node-solid-server call .\bin\solid-test.cmd start --multiuser --port 8443 --ssl-cert C:\NodeProjects\pmc.cert --ssl-key C:\NodeProjects\pmc.key --root .\data where before a little self\_certify.js doing [GitHub - digitalbazaar/forge: A native implementation of TLS in Javascript and tools to write crypto-based and network-heavy webapps](https://github.com/digitalbazaar/forge#x509) (// generate a keypair and create an X.509v3 certificate example) and then writing the cert and key to the parent directory: // convert a Forge certificate to…

> [@Pell-Mell on Setting Up a Solid Server on Windows](http://forum.solidproject.org/t/pell-mell-on-setting-up-a-solid-server-on-windows/651/6):
>
> self\_certify.js var fs = require('fs'); var forge = require('node-forge'); var pki = forge.pki; // generate a keypair and create an X.509v3 certificate var keys = pki.rsa.generateKeyPair(2048); var cert = pki.createCertificate(); cert.publicKey = keys.publicKey; // alternatively set public key from a csr //cert.publicKey = csr.publicKey; // NOTE: serialNumber is the hex encoded value of an ASN.1 INTEGER. // Conforming CAs should ensure serialNumber is: // - no more than 20 octets // - non-neg…

This is all unofficial

---

<div class="post-metadata">

**Author:** ![dconorozzo](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/dconorozzo/32/431_2.png) [@dconorozzo](https://forum.solidproject.org/u/dconorozzo)\
**Post date:** [December 4, 2018, 8:32pm UTC](https://forum.solidproject.org/t/node-solid-server-setup-and-login/778/3 "2018-12-04T20:32:29Z")

</div>

Thanks. I had not noticed this before:  
Solid requires SSL certificates to be valid, so you cannot use self-signed certificates. To switch off this security feature in development environments, you can use the `bin/solid-test` executable, which unsets the `NODE_TLS_REJECT_UNAUTHORIZED` flag and sets the `rejectUnauthorized` option.

I ran solid-test now and I still can’t register an account. Is that all you did? Start solid-test and then register an account?

---

<div class="post-metadata">

**Author:** ![rimmartin](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/rimmartin/32/166_2.png) [@rimmartin](https://forum.solidproject.org/u/rimmartin)\
**Post date:** [December 4, 2018, 10:01pm UTC](https://forum.solidproject.org/t/node-solid-server-setup-and-login/778/4 "2018-12-04T22:01:03Z")

</div>

I ran with solid-test[.cmd on windows) and also my self signed certificate. It still needs the self signed (for developers like me who don’t have an alternative certificate); what that means is  
the bin/solid command line was altered to include “–no-reject-unauthorized” and an env var was set:  
export NODE\_TLS\_REJECT\_UNAUTHORIZED=0  
bin/solid-test calls bin/solid. They are for unix. For windows I made the equivalent

---

<div class="post-metadata">

**Author:** ![rimmartin](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/rimmartin/32/166_2.png) [@rimmartin](https://forum.solidproject.org/u/rimmartin)\
**Post date:** [December 4, 2018, 10:06pm UTC](https://forum.solidproject.org/t/node-solid-server-setup-and-login/778/5 "2018-12-04T22:06:24Z")

</div>

It doesn’t mean it has a mode to work without the certificate; it has a mode to not reject a self signed certificate

---

<div class="post-metadata">

**Author:** ![dconorozzo](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/dconorozzo/32/431_2.png) [@dconorozzo](https://forum.solidproject.org/u/dconorozzo)\
**Post date:** [December 5, 2018, 3:14pm UTC](https://forum.solidproject.org/t/node-solid-server-setup-and-login/778/6 "2018-12-05T15:14:29Z")

</div>

Sorry, I already had the self-signed cert, from the beginning, and then you made me aware of the solid-test thing, but I was saying that it still didn’t let me create an account. I didn’t try this on my Windows instance yet though. I guess I will try that next.

---

<div class="post-metadata">

**Author:** ![rimmartin](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/rimmartin/32/166_2.png) [@rimmartin](https://forum.solidproject.org/u/rimmartin)\
**Post date:** [December 5, 2018, 4:16pm UTC](https://forum.solidproject.org/t/node-solid-server-setup-and-login/778/7 "2018-12-05T16:16:49Z")

</div>

hmm, linux should be easier; you using the master branch from github?

the release/v5.0.0 is really broken and they are working on it. I would keep an eye on [https://github.com/orgs/solid/projects/1#card-14842941](https://github.com/orgs/solid/projects/1#card-14842941) and get ready to test when it is fixed and merged

My experience the current master is unstable with many things being fixed in the release/v5.0.0 branch

---

<div class="post-metadata">

**Author:** ![dconorozzo](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/dconorozzo/32/431_2.png) [@dconorozzo](https://forum.solidproject.org/u/dconorozzo)\
**Post date:** [December 5, 2018, 8:51pm UTC](https://forum.solidproject.org/t/node-solid-server-setup-and-login/778/8 "2018-12-05T20:51:55Z")

</div>

Yes, I used: solid/node-solid-server  
I will keep an eye on it and try again later. Thanks!

---

<div class="post-metadata">

**Author:** ![dconorozzo](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/dconorozzo/32/431_2.png) [@dconorozzo](https://forum.solidproject.org/u/dconorozzo)\
**Post date:** [December 7, 2018, 8:08pm UTC](https://forum.solidproject.org/t/node-solid-server-setup-and-login/778/9 "2018-12-07T20:08:11Z")

</div>

Thanks so much for your help here. Using your fork I was able to get the server to work on Windows. I still never got my Linux instance to work. I also noticed that FireFox browser works much better than Chrome and that Edge or IE don’t work at all…

---

<div class="post-metadata">

**Author:** ![kjetil](https://avatars.discourse-cdn.com/v4/letter/k/bc8723/32.png) [@kjetil](https://forum.solidproject.org/u/kjetil)\
**Post date:** [December 12, 2018, 10:07am UTC](https://forum.solidproject.org/t/node-solid-server-setup-and-login/778/10 "2018-12-12T10:07:11Z")

</div>

Hi!

Could you please try 5.0.0-beta.2? I haven’t seen this specific issue before, but there were some stuff in the first betas.

You might need to delete the db folder too as you try again. If it still persists, please register an issue on github, as we track issues over there. 🙂

---

<div class="post-metadata">

**Author:** ![aveltens](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/aveltens/32/3987_2.png) [@aveltens](https://forum.solidproject.org/u/aveltens)\
**Post date:** [December 12, 2018, 11:37am UTC](https://forum.solidproject.org/t/node-solid-server-setup-and-login/778/11 "2018-12-12T11:37:22Z")

</div>

The “account already exists” is still present in 5.0.0-beta.2

---

<div class="post-metadata">

**Author:** ![kjetil](https://avatars.discourse-cdn.com/v4/letter/k/bc8723/32.png) [@kjetil](https://forum.solidproject.org/u/kjetil)\
**Post date:** [December 12, 2018, 1:35pm UTC](https://forum.solidproject.org/t/node-solid-server-setup-and-login/778/12 "2018-12-12T13:35:38Z")

</div>

OK.

Did you delete the `db` folder? We have had some issues lately that have been related to that ([#1019](https://github.com/solid/node-solid-server/issues/1019), [#1017](https://github.com/solid/node-solid-server/issues/1017)), and I think that if for some reason the database was created, then something went wrong, then another attempt could probably cause that kind of problem.

If that doesn’t fix it, could you please file a github issue where you post the directory structure of your `data` folder? For example, the output of `du` on your Mint machine?

---

<div class="post-metadata">

**Author:** ![aveltens](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/aveltens/32/3987_2.png) [@aveltens](https://forum.solidproject.org/u/aveltens)\
**Post date:** [December 15, 2018, 7:52pm UTC](https://forum.solidproject.org/t/node-solid-server-setup-and-login/778/13 "2018-12-15T19:52:56Z")

</div>

I filed an issue

> <https://github.com/solid/node-solid-server/issues/1029>
>
> Solid Server Versions:
> \* \*\*5.0.0-beta.2\*\*
> \* \*\*5.0.0-beta.3\*\*
> \* \*\*5.0.0-beta.4…\*\*
> 
> \*Expected Behaviour\*: After setting up a solid server it should be possible to register an account
> 
> \*Actual Behaviour\*: When trying to register any account by submitting the registration form, the following error occurs: "Account already exists"
> 
> \*Steps to reproduce\*:
> 
> 1. Visit https://angelo.veltens.org or set up your own solid-server on version 5.0.0-beta.3
> 2. Click \`Register\`
> 3. Fill out the registration form
> 4. Click \`Submit\`
> 5. See the mentioned error message on top of the page

---

<div class="post-metadata">

**Author:** ![MajorHeadrush](https://avatars.discourse-cdn.com/v4/letter/m/278dde/32.png) [@MajorHeadrush](https://forum.solidproject.org/u/MajorHeadrush)\
**Post date:** [August 5, 2019, 1:59pm UTC](https://forum.solidproject.org/t/node-solid-server-setup-and-login/778/14 "2019-08-05T13:59:32Z")

</div>

im just going to be brutally honest guys… i decided a long time ago when installing a program if it doesnt practicly self install and run im uninstalling it asap… solid is going to have to program their server so it does this… once up and running a good gui better take care of the rest… tweaking etc… other wise youll never get very many people to use it and someone will come along with one that is easy to use…

---

<div class="post-metadata">

**Author:** ![adventure](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/adventure/32/1152_2.png) [@adventure](https://forum.solidproject.org/u/adventure)\
**Post date:** [August 5, 2019, 5:22pm UTC](https://forum.solidproject.org/t/node-solid-server-setup-and-login/778/15 "2019-08-05T17:22:27Z")

</div>

As you are aware, this is a multi-year project and things take time. Solid is in the developmental phase, things will come together in due season, keep checking back for new changes and updates.

---

<div class="post-metadata">

**Author:** ![rimmartin](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/rimmartin/32/166_2.png) [@rimmartin](https://forum.solidproject.org/u/rimmartin)\
**Post date:** [August 14, 2019, 6:01pm UTC](https://forum.solidproject.org/t/node-solid-server-setup-and-login/778/16 "2019-08-14T18:01:38Z")

</div>

Brutal honesty? I’m not a solid developer or work for solid. So nothing I do or write is official:-)
