# The mac is invalid

Sometimes, usually after a migration of the hostware environment where the .env file was not successfully migrated, this error occurs: "The mac is invalid"

This can be fixed by the following command to open a PHP shell via SSH.

```bash
cd /var/www/hostware && php artisan tinker
```

Insert your hostware license key inside the following command and paste the command into the PHP shell. The error should be fixed.

```php
app(App\Framework\Core\ConfigService::class)->save(['core.license.key' => Crypt::encrypt("HIER_LIZENZ_EINFÜGEN")]);
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.hostware.io/system-and-configuration/troubleshooting-and-questions/the-mac-is-invalid.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
