# Activate Akkoma in-database configuration: 'cp: cannot stat 'config/dev.secret.exs': No such file or directory' error message

**URL:** <https://meta.akkoma.dev/t/activate-akkoma-in-database-configuration-cp-cannot-stat-config-dev-secret-exs-no-such-file-or-directory-error-message/211>\
**Category:** Support\
**Created:** [5 December 2022 10:03 UTC](https://meta.akkoma.dev/t/activate-akkoma-in-database-configuration-cp-cannot-stat-config-dev-secret-exs-no-such-file-or-directory-error-message/211 "2022-12-05T10:03:01Z")\
**Posts on this page:** 14\
**Page:** 1

<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 10:03 UTC](https://meta.akkoma.dev/t/activate-akkoma-in-database-configuration-cp-cannot-stat-config-dev-secret-exs-no-such-file-or-directory-error-message/211/1 "2022-12-05T10:03:01Z")

</div>

**Background** : I’m in an OTP installation and am trying to install the **[Mangane](https://github.com/BDX-town/Mangane)** frontend. I followed the steps on their page. But now I get the `Request failed with status code 500` toast message whenever I go to the Frontend page (See pic). By Frontend page, I mean `pleroma/admin/#/settings/frontend`

 ![image](https://meta-uploads.akkoma.dev/original/1X/2e736bf40006f0dc88a19b5798a3a67f38898053.png)

The developer for Mangane asked, “Did you activated in database configuration?” and shared the link below. Now, the guide (link below) says :

1. It is recommended to backup your config file now.  
`cp config/dev.secret.exs config/dev.secret.exs.orig`  
Running the above at `root` gives me the following error message.  
`cp: cannot stat 'config/dev.secret.exs': No such file or directory`

2. Edit your Akkoma config to enable database configuration.  
`config :pleroma, configurable_from_database: true`  
However, the following is already in my config.exs file.

Link to documentation: [How to activate Akkoma in-database configuration - Akkoma Documentation](https://docs.akkoma.dev/stable/configuration/howto_database_config/)

Moreover, the **Available Frontends** sections in Frontend settings is now totally blank for my instance. I however do see the the Mangane Frontend activate. Where am I going wrong here?

 ![image](https://meta-uploads.akkoma.dev/original/1X/6d41df9942cf253688a2c36a628c4d0368bac123.png)

---

<div class="post-metadata">

**Author:** ![FloatingGhost](https://meta.akkoma.dev/letter_avatar_proxy/v4/letter/f/d07c76/32.png) [@FloatingGhost](https://meta.akkoma.dev/u/FloatingGhost)\
**Post date:** [5 December 2022 12:04 UTC](https://meta.akkoma.dev/t/activate-akkoma-in-database-configuration-cp-cannot-stat-config-dev-secret-exs-no-such-file-or-directory-error-message/211/2 "2022-12-05T12:04:19Z")

</div>

you’re running from-source commands when you do not run from-source

please use the OTP commands

---

<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 12:30 UTC](https://meta.akkoma.dev/t/activate-akkoma-in-database-configuration-cp-cannot-stat-config-dev-secret-exs-no-such-file-or-directory-error-message/211/3 "2022-12-05T12:30:50Z")

</div>

Oh. Could you please share a ‘sample’ or syntax of an OTP command?

E.g OTP of this ` cp config/dev.secret.exs config/dev.secret.exs.orig` command would be?

---

<div class="post-metadata">

**Author:** ![FloatingGhost](https://meta.akkoma.dev/letter_avatar_proxy/v4/letter/f/d07c76/32.png) [@FloatingGhost](https://meta.akkoma.dev/u/FloatingGhost)\
**Post date:** [5 December 2022 12:58 UTC](https://meta.akkoma.dev/t/activate-akkoma-in-database-configuration-cp-cannot-stat-config-dev-secret-exs-no-such-file-or-directory-error-message/211/4 "2022-12-05T12:58:36Z")

</div>

it wouldn’t be

you don’t need to do that

you’ve already copied it - your config is at

```auto
/etc/akkoma/config.exs

```

---

<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 13:03 UTC](https://meta.akkoma.dev/t/activate-akkoma-in-database-configuration-cp-cannot-stat-config-dev-secret-exs-no-such-file-or-directory-error-message/211/5 "2022-12-05T13:03:09Z")

</div>

Correct. That’s what confuses me. The documentation of the FE I’m trying to install is just not done well IMHO.

The FE seems to work but now whenever I go to the Frontend page on Admin FE I get the `Request failed with status code 500 ` posted above. Not to mention all the FEs installed by default are gone - the area is blank now.

---

<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 13:05 UTC](https://meta.akkoma.dev/t/activate-akkoma-in-database-configuration-cp-cannot-stat-config-dev-secret-exs-no-such-file-or-directory-error-message/211/6 "2022-12-05T13:05:56Z")

</div>

By ‘Blank’ I mean this.

 ![image](https://meta-uploads.akkoma.dev/original/1X/41c784437e09c429969f2dddb0842081546fd68b.png)

---

<div class="post-metadata">

**Author:** ![FloatingGhost](https://meta.akkoma.dev/letter_avatar_proxy/v4/letter/f/d07c76/32.png) [@FloatingGhost](https://meta.akkoma.dev/u/FloatingGhost)\
**Post date:** [5 December 2022 21:12 UTC](https://meta.akkoma.dev/t/activate-akkoma-in-database-configuration-cp-cannot-stat-config-dev-secret-exs-no-such-file-or-directory-error-message/211/7 "2022-12-05T21:12:28Z")

</div>

sounds like akkoma doesn’t know where your config is

iirc you posted in another thread with that exact warning

---

<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:** [6 December 2022 01:12 UTC](https://meta.akkoma.dev/t/activate-akkoma-in-database-configuration-cp-cannot-stat-config-dev-secret-exs-no-such-file-or-directory-error-message/211/8 "2022-12-06T01:12:36Z")

</div>

Oh. How do I correct that i.e let Akkoma know where my config is?

---

<div class="post-metadata">

**Author:** ![FloatingGhost](https://meta.akkoma.dev/letter_avatar_proxy/v4/letter/f/d07c76/32.png) [@FloatingGhost](https://meta.akkoma.dev/u/FloatingGhost)\
**Post date:** [6 December 2022 02:20 UTC](https://meta.akkoma.dev/t/activate-akkoma-in-database-configuration-cp-cannot-stat-config-dev-secret-exs-no-such-file-or-directory-error-message/211/9 "2022-12-06T02:20:03Z")

</div>

it told you in the error message

> [@Installation: Failed to connect error on running 'sleep 20 && curl http://localhost:4000/api/v1/instance'](https://meta.akkoma.dev/t/installation-failed-to-connect-error-on-running-sleep-20-curl-http-localhost-4000-api-v1-instance/209/12):
>
> @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.…

---

<div class="post-metadata">

**Author:** ![ninja](https://meta.akkoma.dev/user_avatar/meta.akkoma.dev/ninja/32/100_2.png) [@ninja](https://meta.akkoma.dev/u/ninja)\
**Post date:** [6 December 2022 07:35 UTC](https://meta.akkoma.dev/t/activate-akkoma-in-database-configuration-cp-cannot-stat-config-dev-secret-exs-no-such-file-or-directory-error-message/211/10 "2022-12-06T07:35:41Z")

</div>

Side question - Can Mangane co-exist with Pleroma-FE, using Pleroma-FE as the default?

---

<div class="post-metadata">

**Author:** ![gamerfort](https://meta.akkoma.dev/letter_avatar_proxy/v4/letter/g/54ee81/32.png) [@gamerfort](https://meta.akkoma.dev/u/gamerfort)\
**Post date:** [6 December 2022 08:16 UTC](https://meta.akkoma.dev/t/activate-akkoma-in-database-configuration-cp-cannot-stat-config-dev-secret-exs-no-such-file-or-directory-error-message/211/11 "2022-12-06T08:16:59Z")

</div>

I used this to install Soapbox (which Mangane is a fork of) on a subdomain to be able to use either or.

> **[Installing Soapbox on a Subdomain | Soapbox Docs](https://docs.soapbox.pub/soapbox/install/subdomain/)**
>
> Powering the future of social media.

It should work similarly for Mangane

---

<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:** [6 December 2022 10:29 UTC](https://meta.akkoma.dev/t/activate-akkoma-in-database-configuration-cp-cannot-stat-config-dev-secret-exs-no-such-file-or-directory-error-message/211/12 "2022-12-06T10:29:18Z")

</div>

@gamerfort I actually moved from Soapbox to Mangane - what with the list of additional features that it has. List below (not my wording). But I guess it’s been quite a struggle since the documentation has been ‘confusing’ and difficult to comprehend esp the location of where to place folders etc.

- [CH] Add local and fediverse timeline in thumb menu, move serach icon in top navigation (#13)
- [CH] Add search Icon in tabs\_bar, remove search from thumbs bar
- [CH] Add local et fediverse timeline access in thumb menu
- [ADD] Add multiple screen to the onboarding to explain what’s the fediverse is about
- [Add] Add akkoma support, soapbox didnt dectected Akkoma correctly
- [CH] Local timeline logo is now instance logo. Instance logo must be svg only. Remove name from Manifest.json (#64)
- [FIX] Edit chat check (#65)
- [CH] Better UX for polls (#66) \*[FIX] Translate config panel, bookmark,muted words, import data pages in French (#67)
- [FIX] use actualStatus hidden state boosted status with CW are now working correctly (#76)
- [CH] Move custom enlistment directly in the pre-existing onboarding (#73)
- [CH] Rework the profile directory (#77)
- [ADD][FIX] Add a detailed home description, Show admins and moderators on front page. Fix footer links on mangane settings page. (#83)
- [Fix] translations (#84)
- [CH] Back arrow should stick to the top of the screen (#86)
- [Fix] wrong request on admin dashboard (#85)
- [FIX] Fix translation tone
- [REM] Remove useless onboarding setting
- [ADD] Add a manifest.json for webapp

---

<div class="post-metadata">

**Author:** ![gamerfort](https://meta.akkoma.dev/letter_avatar_proxy/v4/letter/g/54ee81/32.png) [@gamerfort](https://meta.akkoma.dev/u/gamerfort)\
**Post date:** [6 December 2022 20:47 UTC](https://meta.akkoma.dev/t/activate-akkoma-in-database-configuration-cp-cannot-stat-config-dev-secret-exs-no-such-file-or-directory-error-message/211/13 "2022-12-06T20:47:38Z")

</div>

For what it’s work, I tried this out with a new subdomain for mangane and it worked just fine for my instance.

> **[Installing Soapbox on a Subdomain | Soapbox Docs](https://docs.soapbox.pub/soapbox/install/subdomain/)**
>
> Powering the future of social media.

---

<div class="post-metadata">

**Author:** ![gamerfort](https://meta.akkoma.dev/letter_avatar_proxy/v4/letter/g/54ee81/32.png) [@gamerfort](https://meta.akkoma.dev/u/gamerfort)\
**Post date:** [6 December 2022 20:49 UTC](https://meta.akkoma.dev/t/activate-akkoma-in-database-configuration-cp-cannot-stat-config-dev-secret-exs-no-such-file-or-directory-error-message/211/14 "2022-12-06T20:49:59Z")

</div>

I installed it as a new subdomain to give it a try. It is a little nicer than soapbox, for sure. I am going to wait until it has more feature parity with the Pleroma-FE though since I heavily use the newer features added by Akkoma (auto-translate support, custom reaction gifs, as well as showing only replies to me, for example.)

Hopefully when the new follow hashtag feature gets pushed to the OTP release, I’ll be using that a lot as well.
