# OCIS (owncloud I. S.) yields "invalid credentials" error post fresh instal, dietpi's pass not working

**URL:** <https://dietpi.com/forum/t/ocis-owncloud-i-s-yields-invalid-credentials-error-post-fresh-instal-dietpis-pass-not-working/25235>\
**Category:** Troubleshooting\
**Created:** [21 May 2026 23:58 UTC](https://dietpi.com/forum/t/ocis-owncloud-i-s-yields-invalid-credentials-error-post-fresh-instal-dietpis-pass-not-working/25235 "2026-05-21T23:58:34Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![tonosama](https://dietpi.com/forum/user_avatar/dietpi.com/tonosama/32/8978_2.png) [@tonosama](https://dietpi.com/forum/u/tonosama)\
**Post date:** [21 May 2026 23:58 UTC](https://dietpi.com/forum/t/ocis-owncloud-i-s-yields-invalid-credentials-error-post-fresh-instal-dietpis-pass-not-working/25235/1 "2026-05-21T23:58:34Z")

</div>

I just installed OwnCloud Infinite Scale on a fresh Raspberry pi 4 (v10.4.2), with 4Gb ram.  
I’m not able to login with the same dietpi password.

Steps to reproduce:

1. Install OCIS

2. Verify that your installation shows OCIS’s login: [https://myip:9200](https://myip:9200). It does

3. SSH into the same box, and watch OCIS’s logs:  
`sudo watch journalctl -u ocis`

4. Back to your browser, try to login using admin, and your `dietpi`’s password.

5. You’re presented with:  
`May 21 23:56:19 DietPi ocis[1141]: {“level”:“error”,“service”:“idm”,“bind_dn”:“uid=admin,ou=users,o=libregraph-idm”`  
`,“op”:“bind”,“remote_addr”:“127.0.0.1:40760”,“time”:“2026-05-21T23:56:19Z”,“message”:“invalid credentials”}`

---

<div class="post-metadata">

**Author:** ![Jappe](https://dietpi.com/forum/user_avatar/dietpi.com/jappe/32/1788_2.png) [@Jappe](https://dietpi.com/forum/u/Jappe)\
**Post date:** [22 May 2026 14:32 UTC](https://dietpi.com/forum/t/ocis-owncloud-i-s-yields-invalid-credentials-error-post-fresh-instal-dietpis-pass-not-working/25235/2 "2026-05-22T14:32:59Z")

</div>

I could replicate this in my VM.  
I was able to get it working, I deleted everything under `/mnt/dietpi_userdata/ocis` except the `ocis.env` file.  
Then I re-run the init command, like it’s run in the installion script

```auto
runuser -u ocis -- /opt/ocis/ocis init --config-path /mnt/dietpi_userdata/ocis --insecure yes --ap "test"

```

Now I could login, with admin and the set password `test`.

[So something is wrong with this](https://github.com/MichaIng/DietPi/blob/af0b786a8686d31d47011e5a47a6af0c3fde541a/dietpi/dietpi-software#L4671-L4678)

```auto
			# Config
			if [[! -f '/mnt/dietpi_userdata/ocis/ocis.yaml']]
			then
				# Replace password strings internally to avoid printing it to console
				G_EXEC_PRE_FUNC(){ acommand[11]="$GLOBAL_PW"; }
				G_EXEC_POST_FUNC(){ sed --follow-symlinks -i "/^ *password/s/:.*/: ${GLOBAL_PW//?/X}/" "$fp_log"; cat "$fp_log"; }
				G_EXEC setpriv --re{u,g}id='ocis' --clear-groups --reset-env -- /opt/ocis/ocis init --config-path /mnt/dietpi_userdata/ocis --insecure yes --ap "${GLOBAL_PW//?/X}"
			fi

```

The default password would be `admin`, but this is also not working, so the init command from the script is executed. But it does not use the correct password for some reason.

I think the index of `acommand` is wrong.

* * *

OK I tested it, the index is indeed wrong, the index for the password is 13 and not 11 @MichaIng.  
I will correct it and make a PR.

@tonosama if you like you can use this command for a workaround and then reinstall

```auto
sed -i 's/G_EXEC_PRE_FUNC(){ acommand\[11\]=\"\$GLOBAL_PW\"; }/G_EXEC_PRE_FUNC(){ acommand[13]="$GLOBAL_PW"; }/' /boot/dietpi/dietpi-software

```

### edit:

PR is out: [https://github.com/MichaIng/DietPi/pull/8160](https://github.com/MichaIng/DietPi/pull/8160)

---

<div class="post-metadata">

**Author:** ![MichaIng](https://dietpi.com/forum/user_avatar/dietpi.com/michaing/32/7_2.png) [@MichaIng](https://dietpi.com/forum/u/MichaIng)\
**Post date:** [22 May 2026 19:22 UTC](https://dietpi.com/forum/t/ocis-owncloud-i-s-yields-invalid-credentials-error-post-fresh-instal-dietpis-pass-not-working/25235/3 "2026-05-22T19:22:46Z")

</div>

Many thanks for reporting. The fix has been merged for upcoming release.

You should be able to login with the password `XXXXXXXXXXX` i.e. as many `X` as characters in your actual password. Of course makes sense to change that ASAP 😄.

---

<div class="post-metadata">

**Author:** ![tonosama](https://dietpi.com/forum/user_avatar/dietpi.com/tonosama/32/8978_2.png) [@tonosama](https://dietpi.com/forum/u/tonosama)\
**Post date:** [22 May 2026 19:59 UTC](https://dietpi.com/forum/t/ocis-owncloud-i-s-yields-invalid-credentials-error-post-fresh-instal-dietpis-pass-not-working/25235/4 "2026-05-22T19:59:54Z")

</div>

> [@MichaIng](#):
>
> `XXXXXXXXXXX`

Firs things first…  
**SWEET CARNATION EVAPORATED MILK!!  
Thank you guys!! man, I wasn’t expecting an answer so quick and a PR, wow, you guys ROCK!! I’ve posted in other projects**…and… “SHAKA When the walls fell”…

I’m running into a sm issue:  
this command:  
`sd -i ‘s/G_EXEC_PRE_FUNC(){ acommand[11]="$GLOBAL_PW"; }/G_EXEC_PRE_FUNC(){ acommand[13]=“$GLOBAL_PW”; }/’ /boot/dietpi/dietpi-software`

yields:  
`-bash: sd: command not found`

I’m running a very light, light, fresh install 😉

I tried the reinstall and the `XXXXXs` matching the pass.length, and now I can’t login to ocis:

 ![Screenshot at 2026-05-22 12-44-57](https://dietpi.com/forum/uploads/default/original/2X/d/dd909a164a96a5589ad46464e5fcf74ff907eae1.png)

I can wait for the PR to make a release…not mission critical on my end.  
Again, thank you!!!

---

<div class="post-metadata">

**Author:** ![MichaIng](https://dietpi.com/forum/user_avatar/dietpi.com/michaing/32/7_2.png) [@MichaIng](https://dietpi.com/forum/u/MichaIng)\
**Post date:** [22 May 2026 20:18 UTC](https://dietpi.com/forum/t/ocis-owncloud-i-s-yields-invalid-credentials-error-post-fresh-instal-dietpis-pass-not-working/25235/5 "2026-05-22T20:18:40Z")

</div>

> [@tonosama](#):
>
> I’m running into a sm issue:  
> this command:  
> `sd -i ‘s/G_EXEC_PRE_FUNC(){ acommand[11]="$GLOBAL_PW"; }/G_EXEC_PRE_FUNC(){ acommand[13]=“$GLOBAL_PW”; }/’ /boot/dietpi/dietpi-software`
> 
> yields:  
> `-bash: sd: command not found`

It is `sed`:

```sh
sed -i 's/G_EXEC_PRE_FUNC(){ acommand\[11\]=\"\$GLOBAL_PW\"; }/G_EXEC_PRE_FUNC(){ acommand[13]="$GLOBAL_PW"; }/' /boot/dietpi/dietpi-software

```

---

<div class="post-metadata">

**Author:** ![tonosama](https://dietpi.com/forum/user_avatar/dietpi.com/tonosama/32/8978_2.png) [@tonosama](https://dietpi.com/forum/u/tonosama)\
**Post date:** [22 May 2026 20:39 UTC](https://dietpi.com/forum/t/ocis-owncloud-i-s-yields-invalid-credentials-error-post-fresh-instal-dietpis-pass-not-working/25235/6 "2026-05-22T20:39:00Z")

</div>

Yup! It worked! **Thank you!!!**  
just for posterity, in case someone runs into the same issues:

prefix @MichaIng 's command with `sudo` if you’re sshing with `dietpi`.  
I uninstalled, and reinstalled OCIS… and it worked!!! 👍

Thank you both! @MichaIng @Jappe

 ![Screenshot at 2026-05-22 13-36-26](https://dietpi.com/forum/uploads/default/original/2X/9/981629591a3d71691c2d14794ba49e7cb63709d3.png)

---

<div class="post-metadata">

**Author:** ![system](https://dietpi.com/forum/uploads/default/original/1X/7e1021de2213860bce185915ce2c1786e56490ec.png) [@system](https://dietpi.com/forum/u/system)\
**Post date:** [20 August 2026 20:39 UTC](https://dietpi.com/forum/t/ocis-owncloud-i-s-yields-invalid-credentials-error-post-fresh-instal-dietpis-pass-not-working/25235/7 "2026-08-20T20:39:39Z")

</div>

Closed on 20 August 2026 20:39 UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
