# Could not find any user with that username or id

**URL:** https://forum.yunohost.org/t/could-not-find-any-user-with-that-username-or-id/30622
**Category:** Support apps
**Tags:** pixelfed, english
**Created:** [July 29, 2024, 9:39pm UTC](https://forum.yunohost.org/t/could-not-find-any-user-with-that-username-or-id/30622 "2024-07-29T21:39:40Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![yes](https://forum.yunohost.org/user_avatar/forum.yunohost.org/yes/32/10340_2.png) [@yes](https://forum.yunohost.org/u/yes)
#### Post date: [July 29, 2024, 9:39pm UTC](https://forum.yunohost.org/t/could-not-find-any-user-with-that-username-or-id/30622/1 "2024-07-29T21:39:40Z")

</div>

I am having a problem with Pixelfed. First of all, I did get some warnings during the install process:

 ![image](https://forum.yunohost.org/uploads/default/original/2X/8/8e8133f022caa12e1fb1f30655bf58f79da21315.png)

However, since these were only warnings, and it ended with “Installation completed” I assume the installation worked (as well, the site is up and running).

Following the guide, the next step is to set up the admin user.

From the guide:

> After being first registered, you need to execute the folloing command to promote first registered as admin
> 
> **Run:**
> 
> ```auto
> sudo php8.2 /var/www/pixelfed/artisan user:admin 1
> 
> ```
> 
> and respond yes to the question `Add admin privileges to this user?`.

However, this is what happens when I try doing this:

```auto
root@yuno:~# sudo php8.2 /var/www/pixelfed/artisan user:admin 1
Could not find any user with that username or id.

```

Any suggestions on what to do here?

---

<div class="post-metadata">

### Author: ![yes](https://forum.yunohost.org/user_avatar/forum.yunohost.org/yes/32/10340_2.png) [@yes](https://forum.yunohost.org/u/yes)
#### Post date: [July 29, 2024, 10:00pm UTC](https://forum.yunohost.org/t/could-not-find-any-user-with-that-username-or-id/30622/2 "2024-07-29T22:00:50Z")

</div>

i found a way around this.

**1:**  
after reading [this post](https://forum.yunohost.org/t/how-do-you-create-an-admin-account-from-the-command-line-in-pixelfed/26033/8) i realised i had to create the first user myself. so, i created a user with username “master”.

**2:**  
i verified that the user existed:

```auto
root@yuno:~# sudo php8.2 /var/www/pixelfed/artisan user:show 1
User ID: 1
Username: master
Email: master@mydomain.com
Joined: 5 minutes ago
Status Count: 0

```

**3:**  
i tried running the admin command once more, still to no avail:

```auto
root@yuno:~# sudo php8.2 /var/www/pixelfed/artisan user:admin 1
Could not find any user with that username or id.

```

**4:**  
i tried using the username, instead of the id, with success:

```auto
root@yuno:~# sudo php8.2 /var/www/pixelfed/artisan user:admin master
Found username: master

 Add admin privileges to this user? (yes/no) [no]:
 > yes

Successfully changed permissions!

```

---

<div class="post-metadata">

### Author: ![system](https://forum.yunohost.org/uploads/default/original/2X/f/f59fe8e3ee6b100b4f574d30d6e30479c68b89f0.png) [@system](https://forum.yunohost.org/u/system)
#### Post date: [August 13, 2024, 10:01pm UTC](https://forum.yunohost.org/t/could-not-find-any-user-with-that-username-or-id/30622/3 "2024-08-13T22:01:30Z")

</div>

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