# Solid Smartphone App - Running solid from Termux - Solid: Server Error

**URL:** <https://forum.solidproject.org/t/solid-smartphone-app-running-solid-from-termux-solid-server-error/3660>\
**Category:** General Discussion\
**Created:** [December 8, 2020, 4:36pm UTC](https://forum.solidproject.org/t/solid-smartphone-app-running-solid-from-termux-solid-server-error/3660 "2020-12-08T16:36:07Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Leoudayan](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/leoudayan/32/763_2.png) [@Leoudayan](https://forum.solidproject.org/u/Leoudayan)\
**Post date:** [December 8, 2020, 4:36pm UTC](https://forum.solidproject.org/t/solid-smartphone-app-running-solid-from-termux-solid-server-error/3660/1 "2020-12-08T16:36:07Z")

</div>

Hi,

I am developing a mobile app browser for Solid and trying to use a pod that is hosted locally using termux (Android command line prompt). My cloud pods work fine but when I try with the local one (localhost), I am able to get to the stage of logged in and listing. But, when i try to write a file to the Pod, it throws the following error. I even tried it with the browser based apps and still the same. Any solution?

* * *

solid:ACL could not fetch owner doc NamedNode { termType: ‘NamedNode’, classOrder: 5, value: ‘mailto:[mano@gmail.com](mailto:mano@gmail.com)’ } Only HTTP(S) protocols are supported +11ms solid:ACL error processing owner results +26ms solid:ACL accessDenied: checking access to [https://localhost:8443/Mano.jpg](https://localhost:8443/Mano.jpg) by null and origin \<[https://otto-aa.github.io](https://otto-aa.github.io/)\> +0ms solid:ACL 1 default authentications about [https://localhost:8443/](https://localhost:8443/) in [https://localhost:8443/.acl](https://localhost:8443/.acl) +0ms solid:ACL Checking auth [https://localhost:8443/.acl#owner](https://localhost:8443/.acl#owner) with agent null +1ms solid:ACL Agent or group: Fail: not public and not logged on. +0ms solid:ACL The agent/group check fails +0ms solid:ACL Check failed: User Unauthorized +0ms solid:ACL accessDenied: modeURIorReasons: [“User Unauthorized”] +0ms solid:ACL checking [http://www.w3.org/ns/auth/acl#Write](http://www.w3.org/ns/auth/acl#Write) +0ms solid:ACL MODE REQUIRED NOT ALLOWED: [http://www.w3.org/ns/auth/acl#Write](http://www.w3.org/ns/auth/acl#Write) Denying with User Unauthorized +0ms solid:ACL Write access denied to (none): undefined - request to [https://localhost:8443/.well-known/openid-configuration](https://localhost:8443/.well-known/openid-configuration) failed, reason: self signed certificate +0ms solid:server Error page because of: FetchError: request to [https://localhost:8443/.well-known/openid-configuration](https://localhost:8443/.well-known/openid-configuration) failed, reason: self signed certificate at ClientRequest. (/data/data/com.termux/files/home/localhost/node\_modules/node-fetch/lib/index.js:1461:11) at ClientRequest.emit (events.js:315:20) at TLSSocket.socketErrorListener (\_http\_client.js:469:9) at TLSSocket.emit (events.js:315:20) at emitErrorNT (internal/streams/destroy.js:106:8) at emitErrorCloseNT (internal/streams/destroy.js:74:3) at processTicksAndRejections (internal/process/task\_queues.js:80:21) { type: ‘system’, errno: ‘DEPTH\_ZERO\_SELF\_SIGNED\_CERT’, code: ‘DEPTH\_ZERO\_SELF\_SIGNED\_CERT’ } +5m

* * *

---

<div class="post-metadata">

**Author:** ![jeffz](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/jeffz/32/600_2.png) [@jeffz](https://forum.solidproject.org/u/jeffz)\
**Post date:** [December 8, 2020, 4:48pm UTC](https://forum.solidproject.org/t/solid-smartphone-app-running-solid-from-termux-solid-server-error/3660/2 "2020-12-08T16:48:28Z")

</div>

What file is the named node _{ termType: ‘NamedNode’, classOrder: 5, value: ‘mailto:[mano@gmail.com](mailto:mano@gmail.com)’ }_ supposed to write to? You say this works in the cloud - what resources is produced?

---

<div class="post-metadata">

**Author:** ![jeffz](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/jeffz/32/600_2.png) [@jeffz](https://forum.solidproject.org/u/jeffz)\
**Post date:** [December 8, 2020, 5:10pm UTC](https://forum.solidproject.org/t/solid-smartphone-app-running-solid-from-termux-solid-server-error/3660/3 "2020-12-08T17:10:41Z")

</div>

I looked at your error message more completely and notice that it mentions node-fetch. This means that you are using an unauthenticated fetch, rather than an authenticated one. This can happen if there is confusion about what fetcher to use … can you show us the code the does the fetching?

---

<div class="post-metadata">

**Author:** ![Leoudayan](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/leoudayan/32/763_2.png) [@Leoudayan](https://forum.solidproject.org/u/Leoudayan)\
**Post date:** [December 8, 2020, 7:23pm UTC](https://forum.solidproject.org/t/solid-smartphone-app-running-solid-from-termux-solid-server-error/3660/4 "2020-12-08T19:23:56Z")

</div>

Thanks for the reply Jeffz. Basically, this is what I have done.

1. I have Setup a solid server using termux in my android phone. I used self-signed certificates for the setup.
2. The service was running in [https://localhost:8443/](https://localhost:8443/)
3. I have used [https://otto-aa.github.io/](https://otto-aa.github.io/) and [https://ohmypod.netlify.app/](https://ohmypod.netlify.app/) to check whether I am able to write files to the pod.
4. The login worked fine but when I tried to write a file to it, I got the following errors. I even tried to edit the .acl file to clear the authentication error, but its still the same.

What i meant by cloud pod is, i used a normal pod from solid community with the above two websites and the write function is working fine. But when i tried to do the same with my local host pod, i am getting this error in the UI - **Error: SFCFethError500 [https://localhost:8443/public/test.txt](https://localhost:8443/public/test.txt)** - An internal server error occurred. The server error log is below,

I have formated the above error -

solid:ACL accessDenied: checking access to [https://localhost:8443/Mano.jpg](https://localhost:8443/Mano.jpg) by null and origin \<[https://otto-aa.github.io](https://otto-aa.github.io/)\>  
solid:ACL 1 default authentications about [https://localhost:8443/](https://localhost:8443/) in [https://localhost:8443/.acl](https://localhost:8443/.acl)  
solid:ACL Checking auth [https://localhost:8443/.acl#owner](https://localhost:8443/.acl#owner) with agent null  
solid:ACL Agent or group: Fail: not public and not logged on.  
solid:ACL The agent/group check fails  
solid:ACL Check failed: User Unauthorized  
solid:ACL accessDenied: modeURIorReasons: [“User Unauthorized”] +0ms solid:ACL checking [http://www.w3.org/ns/auth/acl#Write](http://www.w3.org/ns/auth/acl#Write)  
solid:ACL MODE REQUIRED NOT ALLOWED: [http://www.w3.org/ns/auth/acl#Write](http://www.w3.org/ns/auth/acl#Write) Denying with User Unauthorized +0ms  
solid:ACL Write access denied to (none): undefined - request to [https://localhost:8443/.well-known/openid-configuration](https://localhost:8443/.well-known/openid-configuration) failed, reason: self signed certificate +0ms

---

<div class="post-metadata">

**Author:** ![jeffz](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/jeffz/32/600_2.png) [@jeffz](https://forum.solidproject.org/u/jeffz)\
**Post date:** [December 8, 2020, 7:32pm UTC](https://forum.solidproject.org/t/solid-smartphone-app-running-solid-from-termux-solid-server-error/3660/5 "2020-12-08T19:32:51Z")

</div>

What authtentication package are you using to login? What version of NSS is your local install? When you say “the login went fine” - how do you know that other than it didn’t throw an error?

---

<div class="post-metadata">

**Author:** ![Leoudayan](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/leoudayan/32/763_2.png) [@Leoudayan](https://forum.solidproject.org/u/Leoudayan)\
**Post date:** [December 8, 2020, 8:57pm UTC](https://forum.solidproject.org/t/solid-smartphone-app-running-solid-from-termux-solid-server-error/3660/6 "2020-12-08T20:57:44Z")

</div>

Ah yes, I just checked the log again by running the server from the beginning and there are errors. Please find the images below.

1. Starting the server with npx solid start command. (The moment it starts, it throws some errors. )  
 ![1](https://europe1.discourse-cdn.com/flex017/uploads/solidproject/original/2X/0/0ae20bbdf3e79f0087a947d4c1c5888c992e9359.jpeg)

 ![2](https://europe1.discourse-cdn.com/flex017/uploads/solidproject/original/2X/c/cbc07ba3bb9fcd714a98564045ccee2facaba3d6.jpeg)

1. But still, the server runs at the localhost.  

2. 

3. 

4. 

5. 

7.

 ![8](https://europe1.discourse-cdn.com/flex017/uploads/solidproject/original/2X/d/da303e3a0c4603acf190489b7c733da3ee698262.jpeg)

1. ![Screenshot_2020-12-09-01-45-06-48_84d3000e3f4017145260f7618db1d683](https://europe1.discourse-cdn.com/flex017/uploads/solidproject/original/2X/8/8383200d7efd40f3390ad95789f67a46c5cc8768.jpeg)

---

<div class="post-metadata">

**Author:** ![Smag0](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/smag0/32/310_2.png) [@Smag0](https://forum.solidproject.org/u/Smag0)\
**Post date:** [December 9, 2020, 12:04am UTC](https://forum.solidproject.org/t/solid-smartphone-app-running-solid-from-termux-solid-server-error/3660/7 "2020-12-09T00:04:33Z")

</div>

hi on the “Welcome to the Solid Prototype”, it seems that your are logged at ‘[https://localhot:8443/profile/card#me](https://localhot:8443/profile/card#me)’  
so there is no username , shouldn’t it be https:// **your\_name**.localhot:8443/profile/card#me  
?

---

<div class="post-metadata">

**Author:** ![Leoudayan](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/leoudayan/32/763_2.png) [@Leoudayan](https://forum.solidproject.org/u/Leoudayan)\
**Post date:** [December 9, 2020, 9:43am UTC](https://forum.solidproject.org/t/solid-smartphone-app-running-solid-from-termux-solid-server-error/3660/8 "2020-12-09T09:43:16Z")

</div>

Hi,

I think it’s bcz Its actually a single user configuration and thats why there is no username.

---

<div class="post-metadata">

**Author:** ![Leoudayan](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/leoudayan/32/763_2.png) [@Leoudayan](https://forum.solidproject.org/u/Leoudayan)\
**Post date:** [December 10, 2020, 11:13am UTC](https://forum.solidproject.org/t/solid-smartphone-app-running-solid-from-termux-solid-server-error/3660/9 "2020-12-10T11:13:59Z")

</div>

@jeffz is there a way to specify which fetcher to use?

Also, I wanted to ask you this, is it possible to do an authenticated write to a solid pod without the popup using CDN? Like how we do in node where we have a config variable which has the username and password and when the appropriate function is called, a file is written/created in the solid pod. Similarly, can we do the same using CDN without the popup?

If it is possible, my idea is to directly get the username and password from the user via a from in the mobile app and just write it to the local solid pod.

---

<div class="post-metadata">

**Author:** ![jeffz](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/jeffz/32/600_2.png) [@jeffz](https://forum.solidproject.org/u/jeffz)\
**Post date:** [December 10, 2020, 4:47pm UTC](https://forum.solidproject.org/t/solid-smartphone-app-running-solid-from-termux-solid-server-error/3660/10 "2020-12-10T16:47:56Z")

</div>

> [@Leoudayan](#):
>
> is there a way to specify which fetcher to use

With Solid-File-Client, you can pass in a fetcher in the call to new :

```javascript
const fileClient = new SolidFileClient(fetcher);  
// where fetcher is a library that has a fetch() and optionally also a login() method e.g. solid-client-authn-browser

```

> Also, I wanted to ask you this, is it possible to do an authenticated write to a solid pod without the popup using CDN? Like how we do in node

If you are running in a combination node/windows environment like electron, you can use the nodejs login via solid-node-client. In a straight windows environment, things are moving away from solid-auth-client to Inrupt’s solid-client-authn-browser which has no popups. Also, there are now at least four Solid servers and NSS is the only one that accepts a name/password from the command line. The newer ESS and CSS servers do not and will never accept a command-line login flow without first getting a cookie via a browser.

Is your code somewhere I can look? I’d be glad to see if I can help figure the fetcher situation out.
