# Error after restarting server

**URL:** <https://forums.rockylinux.org/t/error-after-restarting-server/9531>\
**Category:** Rocky Linux Help & Support\
**Created:** [April 12, 2023, 6:25pm UTC](https://forums.rockylinux.org/t/error-after-restarting-server/9531 "2023-04-12T18:25:24Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![midkin](https://avatars.discourse-cdn.com/v4/letter/m/a87d85/32.png) [@midkin](https://forums.rockylinux.org/u/midkin)\
**Post date:** [April 12, 2023, 6:25pm UTC](https://forums.rockylinux.org/t/error-after-restarting-server/9531/1 "2023-04-12T18:25:24Z")

</div>

Hello there. I am running Rocky Linux 9 on my laptop which I use as a server with Nginx, mysql etc for hosting a website.

I was trying to set up a mail server, and the last step I made was:

sudo nano /etc/selinux/config  
And set the selinux to enforcing as the guide suggested.

Then I typed: sudo shutdown -r now

What happens now is that my server drops errors while booting leading to a screen like the one I include in the picture giving me no control over my server data.

Any help?

 ![image](https://us1.discourse-cdn.com/flex020/uploads/rockylinux/original/2X/c/cf1ef440d4f1544105b074dedf1d191e8e62b764.jpeg)

---

<div class="post-metadata">

**Author:** ![label](https://avatars.discourse-cdn.com/v4/letter/l/c5a1d2/32.png) [@label](https://forums.rockylinux.org/u/label)\
**Post date:** [April 12, 2023, 6:28pm UTC](https://forums.rockylinux.org/t/error-after-restarting-server/9531/2 "2023-04-12T18:28:55Z")

</div>

You will likely need to get into rescue mode or an emergency shell and run `touch /.autorelabel`, and reboot.

---

<div class="post-metadata">

**Author:** ![midkin](https://avatars.discourse-cdn.com/v4/letter/m/a87d85/32.png) [@midkin](https://forums.rockylinux.org/u/midkin)\
**Post date:** [April 12, 2023, 6:37pm UTC](https://forums.rockylinux.org/t/error-after-restarting-server/9531/3 "2023-04-12T18:37:38Z")

</div>

Hello and thanks a lot for the quick reply.

Am facing the same error while booting in rescue mode. Furthermore, when I press ‘c’ (in the menu where I choose for normal boot or rescue boot) the terminal that opens has no “touch” installed.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/rockylinux/original/2X/6/6a29dd357cd6b354430400ea75bfa86565a8b9a1.jpeg)

---

<div class="post-metadata">

**Author:** ![label](https://avatars.discourse-cdn.com/v4/letter/l/c5a1d2/32.png) [@label](https://forums.rockylinux.org/u/label)\
**Post date:** [April 12, 2023, 6:56pm UTC](https://forums.rockylinux.org/t/error-after-restarting-server/9531/4 "2023-04-12T18:56:33Z")

</div>

Grub is not going to understand the touch command. You will need to boot into rescue or emergency mode.

This will require you to:

- press “e” on the grub menu
- modify the `linux/linux16/linuxefi` line to have `init=/bin/bash` at the end
- press ctrl+x to boot
- run `mount -o remount,rw /`
- run `touch /.autorelabel`
- `reboot -f`

---

<div class="post-metadata">

**Author:** ![midkin](https://avatars.discourse-cdn.com/v4/letter/m/a87d85/32.png) [@midkin](https://forums.rockylinux.org/u/midkin)\
**Post date:** [April 17, 2023, 5:18pm UTC](https://forums.rockylinux.org/t/error-after-restarting-server/9531/5 "2023-04-17T17:18:07Z")

</div>

For future readers and for mods that may be able to change the topic title, this seems to be an issue after setting selinux from disabled to enforcing.

---

<div class="post-metadata">

**Author:** ![brian](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/brian/32/5777_2.png) [@brian](https://forums.rockylinux.org/u/brian)\
**Post date:** [August 25, 2023, 3:17am UTC](https://forums.rockylinux.org/t/error-after-restarting-server/9531/6 "2023-08-25T03:17:50Z")

</div>


