# Installation: Failed to connect error on running 'sleep 20 && curl http://localhost:4000/api/v1/instance'

**URL:** <https://meta.akkoma.dev/t/installation-failed-to-connect-error-on-running-sleep-20-curl-http-localhost-4000-api-v1-instance/209>\
**Category:** Support\
**Created:** [4 December 2022 19:47 UTC](https://meta.akkoma.dev/t/installation-failed-to-connect-error-on-running-sleep-20-curl-http-localhost-4000-api-v1-instance/209 "2022-12-04T19:47:03Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![Deus](https://meta.akkoma.dev/letter_avatar_proxy/v4/letter/d/b77776/32.png) [@Deus](https://meta.akkoma.dev/u/Deus)\
**Post date:** [5 December 2022 03:53 UTC](https://meta.akkoma.dev/t/installation-failed-to-connect-error-on-running-sleep-20-curl-http-localhost-4000-api-v1-instance/209/12 "2022-12-05T03:53:52Z")

</div>

@snott Installation successful! Sharing some notes (in case someone lands here) and suggestions.

After running `su akkoma -s $SHELL -lc "./bin/pleroma_ctl instance gen --output /etc/akkoma/config.exs --output-psql /tmp/setup_db.psql"`, I entered `n` for the following.

`Would you like to use RUM indices? [n] n`

Again, after running `su akkoma -s $SHELL -lc "./bin/pleroma_ctl instance gen --output /etc/akkoma/config.exs --output-psql /tmp/setup_db.psql"`

I also got the following message in RED color. I ignored this.

`!!! Config path is not declared! Please ensure it exists and that AKKOMA_CONFIG_PATH and/or PLEROMA_CONFIG_PATH is unset or points to an existing file`

**Suggestion** : After running `su akkoma -s $SHELL -lc "./bin/pleroma daemon"` would be nice to have a ‘new line’ before `root` (for presentation) 🙂 Notice `root@ms-in:~#` in the below code.

> {“approval\_required”:false,“avatar\_upload\_limit”:2000000,“background\_image”:“[redacted.co&nbsp;-&nbsp;Informationen zum Thema redacted.](https://redacted.co/images/city.jpg%22,%22background_upload_limit%22:4000000,%22banner_upload_limit%22:4000000,%22description%22:%22Akkoma:) The cooler fediverse [server",“description\_limit”:5000,“email”:"info@redacted.com](mailto:server%22,%22description_limit%22:5000,%22email%22:%22info@redacted.com)”,“languages”:[“en”],“max\_toot\_chars”:5000,“pleroma”:{“metadata”:{“account\_activation\_required”:false,“features”:[“pleroma\_api”,“akkoma\_api”,“mastodon\_api”,“mastodon\_api\_streaming”,“polls”,“v2\_suggestions”,“pleroma\_explicit\_addressing”,“shareable\_emoji\_packs”,“multifetch”,“pleroma:api/v1/notifications:include\_types\_filter”,“editing”,“relay”,“pleroma\_emoji\_reactions”,“exposable\_reactions”,“profile\_directory”,“custom\_emoji\_reactions”,“pleroma:get:main/ostatus”],“federation”:{“enabled”:true,“exclusions”:false,“mrf\_hashtag”:{“federated\_timeline\_removal”:,“reject”:,“sensitive”:[“nsfw”]},“mrf\_object\_age”:{“actions”:[“delist”,“strip\_followers”],“threshold”:604800},“mrf\_policies”:[“ObjectAgePolicy”,“TagPolicy”,“HashtagPolicy”,“InlineQuotePolicy”],“quarantined\_instances”:,“quarantined\_instances\_info”:{“quarantined\_instances”:{}}},“fields\_limits”:{“max\_fields”:10,“max\_remote\_fields”:20,“name\_length”:512,“value\_length”:2048},“post\_formats”:[“text/plain”,“text/html”,“text/markdown”,“text/bbcode”,“text/x.misskeymarkdown”],“privileged\_staff”:false},“stats”:{“mau”:0},“vapid\_public\_key”:“BJ\_I-ZKrhy81oDvzeJGiOsjmK-3JipFpnUwipoYwK1Y5gaKhCkDNxhjDjNGDuD9uC1eFHGXYlfY8uqQKULZYsCk”},“poll\_limits”:{“max\_expiration”:31536000,“max\_option\_chars”:200,“max\_options”:20,“min\_expiration”:0},“registrations”:true,“stats”:{“domain\_count”:0,“status\_count”:0,“user\_count”:0},“thumbnail”:“[redacted.co&nbsp;-&nbsp;Informationen zum Thema redacted.](https://redacted.co/instance/thumbnail.jpeg%22,%22title%22:%22some) title”,“upload\_limit”:16000000,“uri”:“[https://redacted.co](https://redacted.co)”,“urls”:{“streaming\_api”:“wss://redacted.co”},“version”:“2.7.2 (compatible; Akkoma 3.4.0-0-gf91b89673)”}root@ms-in:~#

@FloatingGhost

1. What’s the difference between the following? Same result, right?  
**Your guide** : `certbot certonly --standalone --preferred-challenges http -d yourinstance.tld`  
**Other guides** : `certbot certonly --email <your@emailaddress> -d <yourdomain> --standalone`

2. In the `Add email capability` section of your guide, would be nice to have a sample example. Sendinblue has been the easiest to understand IMHO.

3. If there’s a way to ‘bulk’ subscribe relays, would be great to have it in the `Adding relays` section.

Thank you both very much. I’m loving it here!

---

_[View the full topic](https://meta.akkoma.dev/t/installation-failed-to-connect-error-on-running-sleep-20-curl-http-localhost-4000-api-v1-instance/209)._
