# Upgrading from 2.1.2 to 2.2.1

**URL:** <https://community.dreamfactory.com/t/upgrading-from-2-1-2-to-2-2-1/2867>\
**Category:** Miscellaneous\
**Created:** [June 20, 2016, 7:08am UTC](https://community.dreamfactory.com/t/upgrading-from-2-1-2-to-2-2-1/2867 "2016-06-20T07:08:45Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nico\_Dv](https://avatars.discourse-cdn.com/v4/letter/n/58f4c7/32.png) [@Nico\_Dv](https://community.dreamfactory.com/u/Nico_Dv)\
**Post date:** [June 20, 2016, 7:08am UTC](https://community.dreamfactory.com/t/upgrading-from-2-1-2-to-2-2-1/2867/1 "2016-06-20T07:08:45Z")

</div>

Hi, i’ve upgraded my app hosted on my own server under a postgresql database using the following commands of this page:

[https://wiki.dreamfactory.com/DreamFactory/Upgrades](https://wiki.dreamfactory.com/DreamFactory/Upgrades)

Nothing went wrong on the logfile, i even read that my personnal service created before had been processed:

> Scanning database for old sql\_db service type…  
> |--------------------------------------------------------------------
> 
> | Service ID: 8 New Config: {“port”:“5432”,“host”:“172.16.2.243”,“database”:“test\_ccsm\_66\_ep”,“charset”:“utf8”,“username”:“eyJpdiI6IktYTEczaUpGY1MxUlJmYjM5RENNS3c9PSIsInZhbHVlIjoiZFVmV25tYVwvMG9KYVNhNDZrOTdCZmhPbGFDVkxwblE4UGRjanJsY1N0TnM9IiwibWFjIjoiNzM5M2RlMmFjOTc3NGUwMGM2MDQ1NDZkZGU1MDQ3M2ZjNmIxOWVjODEwYWFmYmIxYjdiMjNjZTkyNzdlZjI5ZSJ9”,“password”:“eyJpdiI6InJyblF6NlZDZzRzSTU0ditURlZ6RWc9PSIsInZhbHVlIjoiYzRCQ0RVNmxBS0lQTFpmQjhpNTNnZz09IiwibWFjIjoiN2ZiZGYzMmIwMTI2MGQ2NWEwOGU0ZWQ3OGExNzNkOGJiNTlmNjUzMjU1YWE1OTBiOTRlM2I1ZjY5NjJjMDdjOSJ9”} |
> | --- |

Now my “Services” panel tells me: “You have no Services!”

Any idea?

---

<div class="post-metadata">

**Author:** ![paulo.hgf1408](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/paulo.hgf1408/32/751_2.png) [@paulo.hgf1408](https://community.dreamfactory.com/u/paulo.hgf1408)\
**Post date:** [June 20, 2016, 5:52pm UTC](https://community.dreamfactory.com/t/upgrading-from-2-1-2-to-2-2-1/2867/2 "2016-06-20T17:52:22Z")

</div>

@Nico_Dv  
after the upgrade you’ve cleared the cache and reset the DF application?

---

<div class="post-metadata">

**Author:** ![Nico\_Dv](https://avatars.discourse-cdn.com/v4/letter/n/58f4c7/32.png) [@Nico\_Dv](https://community.dreamfactory.com/u/Nico_Dv)\
**Post date:** [June 20, 2016, 6:25pm UTC](https://community.dreamfactory.com/t/upgrading-from-2-1-2-to-2-2-1/2867/3 "2016-06-20T18:25:24Z")

</div>

Hi Paulo,

I have done a “php artisan cache:clear” and then i have restarted my apache server…  
What do you mean by “resetting the DF application”?

---

<div class="post-metadata">

**Author:** ![paulo.hgf1408](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/paulo.hgf1408/32/751_2.png) [@paulo.hgf1408](https://community.dreamfactory.com/u/paulo.hgf1408)\
**Post date:** [June 20, 2016, 7:14pm UTC](https://community.dreamfactory.com/t/upgrading-from-2-1-2-to-2-2-1/2867/4 "2016-06-20T19:14:42Z")

</div>

i’m sorry, i meant restart Dreamfactory application

---

<div class="post-metadata">

**Author:** ![Nico\_Dv](https://avatars.discourse-cdn.com/v4/letter/n/58f4c7/32.png) [@Nico\_Dv](https://community.dreamfactory.com/u/Nico_Dv)\
**Post date:** [June 20, 2016, 7:47pm UTC](https://community.dreamfactory.com/t/upgrading-from-2-1-2-to-2-2-1/2867/5 "2016-06-20T19:47:45Z")

</div>

The problem happens only with services though my services are still in the database.  
Firebug tells me there is an error with the method getApiData(…):

> Error: b.getApiData(…) is undefined

it seems it is related to angularjs…

---

<div class="post-metadata">

**Author:** ![paulo.hgf1408](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/paulo.hgf1408/32/751_2.png) [@paulo.hgf1408](https://community.dreamfactory.com/u/paulo.hgf1408)\
**Post date:** [June 20, 2016, 8:07pm UTC](https://community.dreamfactory.com/t/upgrading-from-2-1-2-to-2-2-1/2867/6 "2016-06-20T20:07:08Z")

</div>

which form of installation you used?

---

<div class="post-metadata">

**Author:** ![Nico\_Dv](https://avatars.discourse-cdn.com/v4/letter/n/58f4c7/32.png) [@Nico\_Dv](https://community.dreamfactory.com/u/Nico_Dv)\
**Post date:** [June 20, 2016, 9:53pm UTC](https://community.dreamfactory.com/t/upgrading-from-2-1-2-to-2-2-1/2867/7 "2016-06-20T21:53:29Z")

</div>

It is a manual installation on an ubuntu 14.04.  
I ve used the following tutorial to upgrade: [https://wiki.dreamfactory.com/DreamFactory/Upgrades](https://wiki.dreamfactory.com/DreamFactory/Upgrades)

---

<div class="post-metadata">

**Author:** ![paulo.hgf1408](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/paulo.hgf1408/32/751_2.png) [@paulo.hgf1408](https://community.dreamfactory.com/u/paulo.hgf1408)\
**Post date:** [June 21, 2016, 4:35pm UTC](https://community.dreamfactory.com/t/upgrading-from-2-1-2-to-2-2-1/2867/8 "2016-06-21T16:35:23Z")

</div>

up a print this error

---

<div class="post-metadata">

**Author:** ![Nico\_Dv](https://avatars.discourse-cdn.com/v4/letter/n/58f4c7/32.png) [@Nico\_Dv](https://community.dreamfactory.com/u/Nico_Dv)\
**Post date:** [June 21, 2016, 9:08pm UTC](https://community.dreamfactory.com/t/upgrading-from-2-1-2-to-2-2-1/2867/9 "2016-06-21T21:08:59Z")

</div>

I get a **“Error: c.getApiData(…) is undefined”** when i click on "Home"panel.

I get a **“Error: a.services is undefined”** when reaching the “Roles panel” (cannot add a role: maybe because it doesnt find any service )

I get a **“Error: b.getApiData(…) is undefined”** when reaching the “Services panel” (cannot add a Service: **“Error: c.saveApiData(…) is undefined”**)

---

<div class="post-metadata">

**Author:** ![paulo.hgf1408](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/paulo.hgf1408/32/751_2.png) [@paulo.hgf1408](https://community.dreamfactory.com/u/paulo.hgf1408)\
**Post date:** [June 22, 2016, 11:15am UTC](https://community.dreamfactory.com/t/upgrading-from-2-1-2-to-2-2-1/2867/10 "2016-06-22T11:15:33Z")

</div>

when logging into the app requests tab and take the mistakes of the request, in order to debug better

---

<div class="post-metadata">

**Author:** ![Nico\_Dv](https://avatars.discourse-cdn.com/v4/letter/n/58f4c7/32.png) [@Nico\_Dv](https://community.dreamfactory.com/u/Nico_Dv)\
**Post date:** [June 22, 2016, 11:51am UTC](https://community.dreamfactory.com/t/upgrading-from-2-1-2-to-2-2-1/2867/11 "2016-06-22T11:51:40Z")

</div>

Here are the errors i get when logging in:

 ![](https://canada1.discourse-cdn.com/flex035/uploads/dreamfactory/original/1X/7e6b53991aed64567263a7f87da4cc8d96365432.png)

The last error refers to a code 500 with the following message: “The MAC is invalid”.

---

<div class="post-metadata">

**Author:** ![paulo.hgf1408](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/paulo.hgf1408/32/751_2.png) [@paulo.hgf1408](https://community.dreamfactory.com/u/paulo.hgf1408)\
**Post date:** [June 22, 2016, 3:13pm UTC](https://community.dreamfactory.com/t/upgrading-from-2-1-2-to-2-2-1/2867/12 "2016-06-22T15:13:40Z")

</div>

@Nico_Dv  
This error seems to be linked to some env DF, I think some migration did not run.  
try running this command

## `php artisan dreamfactory:service-type-migrate`

clear your cache and restart the server again.

---

<div class="post-metadata">

**Author:** ![formerstaff](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/formerstaff/32/1133_2.png) [@formerstaff](https://community.dreamfactory.com/u/formerstaff)\
**Post date:** [June 22, 2016, 7:23pm UTC](https://community.dreamfactory.com/t/upgrading-from-2-1-2-to-2-2-1/2867/13 "2016-06-22T19:23:02Z")

</div>

Additionally, you can get better error reporting by doing a GET on system/environment and system/service, using API Docs or some other REST client. This may lead you to better information for troubleshooting.

---

<div class="post-metadata">

**Author:** ![Nico\_Dv](https://avatars.discourse-cdn.com/v4/letter/n/58f4c7/32.png) [@Nico\_Dv](https://community.dreamfactory.com/u/Nico_Dv)\
**Post date:** [June 23, 2016, 7:38am UTC](https://community.dreamfactory.com/t/upgrading-from-2-1-2-to-2-2-1/2867/14 "2016-06-23T07:38:05Z")

</div>

Hi and thanks again for trying to resolve my problem.  
I m still facing the same issue even after a “dreamfactory:service-type-migrate” + “cache:clear” + apache restart.

My get on /system/service:

{“error”:{“context”:null,“message”:“Bad request. No token or api key provided.”,“code”:400,“trace”:[“0 [internal function]: DreamFactory\Http\Middleware\AccessCheck-\>handle(Object(Illuminate\Http\Request), Object(Closure))”,“1 /opt/dreamfactory/bootstrap/cache/compiled.php(9627): call\_user\_func\_array(Array, Array)”,“2 [internal function]: Illuminate\Pipeline\Pipeline-\>Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))”,“3 /opt/dreamfactory/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(32): call\_user\_func(Object(Closure), Object(Illuminate\Http\Request))”,“4 [internal function]: Illuminate\Routing\Pipeline-\>Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))”,“5 /opt/dreamfactory/bootstrap/cache/compiled.php(9612): call\_user\_func(Object(Closure), Object(Illuminate\Http\Request))”,“6 /opt/dreamfactory/bootstrap/cache/compiled.php(9136): Illuminate\Pipeline\Pipeline-\>then(Object(Closure))”,“7 /opt/dreamfactory/bootstrap/cache/compiled.php(9123): Illuminate\Routing\ControllerDispatcher-\>callWithinStack(Object(DreamFactory\Http\Controllers\RestController), Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request), ‘handleGET’)”,“8 /opt/dreamfactory/bootstrap/cache/compiled.php(8191): Illuminate\Routing\ControllerDispatcher-\>dispatch(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request), ‘DreamFactory\Ht…’, ‘handleGET’)”,“9 /opt/dreamfactory/bootstrap/cache/compiled.php(8178): Illuminate\Routing\Route-\>runController(Object(Illuminate\Http\Request))”,“10 /opt/dreamfactory/bootstrap/cache/compiled.php(7892): Illuminate\Routing\Route-\>run(Object(Illuminate\Http\Request))”,“11 [internal function]: Illuminate\Routing\Router-\>Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))”,“12 /opt/dreamfactory/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(52): call\_user\_func(Object(Closure), Object(Illuminate\Http\Request))”,“13 [internal function]: Illuminate\Routing\Pipeline-\>Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))”,“14 /opt/dreamfactory/bootstrap/cache/compiled.php(9612): call\_user\_func(Object(Closure), Object(Illuminate\Http\Request))”,“15 /opt/dreamfactory/bootstrap/cache/compiled.php(7893): Illuminate\Pipeline\Pipeline-\>then(Object(Closure))”,“16 /opt/dreamfactory/bootstrap/cache/compiled.php(7884): Illuminate\Routing\Router-\>runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))”,“17 /opt/dreamfactory/bootstrap/cache/compiled.php(7874): Illuminate\Routing\Router-\>dispatchToRoute(Object(Illuminate\Http\Request))”,“18 /opt/dreamfactory/bootstrap/cache/compiled.php(2416): Illuminate\Routing\Router-\>dispatch(Object(Illuminate\Http\Request))”,“19 [internal function]: Illuminate\Foundation\Http\Kernel-\>Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))”,“20 /opt/dreamfactory/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(52): call\_user\_func(Object(Closure), Object(Illuminate\Http\Request))”,“21 /opt/dreamfactory/app/Http/Middleware/AuthCheck.php(178): Illuminate\Routing\Pipeline-\>Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))”,“22 [internal function]: DreamFactory\Http\Middleware\AuthCheck-\>handle(Object(Illuminate\Http\Request), Object(Closure))”,“23 /opt/dreamfactory/bootstrap/cache/compiled.php(9627): call\_user\_func\_array(Array, Array)”,“24 [internal function]: Illuminate\Pipeline\Pipeline-\>Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))”,“25 /opt/dreamfactory/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(32): call\_user\_func(Object(Closure), Object(Illuminate\Http\Request))”,“26 /opt/dreamfactory/vendor/barryvdh/laravel-cors/src/HandleCors.php(34): Illuminate\Routing\Pipeline-\>Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))”,“27 [internal function]: Barryvdh\Cors\HandleCors-\>handle(Object(Illuminate\Http\Request), Object(Closure))”,“28 /opt/dreamfactory/bootstrap/cache/compiled.php(9627): call\_user\_func\_array(Array, Array)”,“29 [internal function]: Illuminate\Pipeline\Pipeline-\>Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))”,“30 /opt/dreamfactory/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(32): call\_user\_func(Object(Closure), Object(Illuminate\Http\Request))”,“31 /opt/dreamfactory/bootstrap/cache/compiled.php(17306): Illuminate\Routing\Pipeline-\>Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))”,“32 [internal function]: DreamFactory\Http\Middleware\FirstUserCheck-\>handle(Object(Illuminate\Http\Request), Object(Closure))”,“33 /opt/dreamfactory/bootstrap/cache/compiled.php(9627): call\_user\_func\_array(Array, Array)”,“34 [internal function]: Illuminate\Pipeline\Pipeline-\>Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))”,“35 /opt/dreamfactory/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(32): call\_user\_func(Object(Closure), Object(Illuminate\Http\Request))”,“36 /opt/dreamfactory/bootstrap/cache/compiled.php(13076): Illuminate\Routing\Pipeline-\>Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))”,“37 [internal function]: Illuminate\View\Middleware\ShareErrorsFromSession-\>handle(Object(Illuminate\Http\Request), Object(Closure))”,“38 /opt/dreamfactory/bootstrap/cache/compiled.php(9627): call\_user\_func\_array(Array, Array)”,“39 [internal function]: Illuminate\Pipeline\Pipeline-\>Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))”,“40 /opt/dreamfactory/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(32): call\_user\_func(Object(Closure), Object(Illuminate\Http\Request))”,“41 /opt/dreamfactory/bootstrap/cache/compiled.php(11622): Illuminate\Routing\Pipeline-\>Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))”,“42 [internal function]: Illuminate\Session\Middleware\StartSession-\>handle(Object(Illuminate\Http\Request), Object(Closure))”,“43 /opt/dreamfactory/bootstrap/cache/compiled.php(9627): call\_user\_func\_array(Array, Array)”,“44 [internal function]: Illuminate\Pipeline\Pipeline-\>Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))”,“45 /opt/dreamfactory/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(32): call\_user\_func(Object(Closure), Object(Illuminate\Http\Request))”,“46 /opt/dreamfactory/bootstrap/cache/compiled.php(12815): Illuminate\Routing\Pipeline-\>Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))”,“47 [internal function]: Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse-\>handle(Object(Illuminate\Http\Request), Object(Closure))”,“48 /opt/dreamfactory/bootstrap/cache/compiled.php(9627): call\_user\_func\_array(Array, Array)”,“49 [internal function]: Illuminate\Pipeline\Pipeline-\>Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))”,“50 /opt/dreamfactory/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(32): call\_user\_func(Object(Closure), Object(Illuminate\Http\Request))”,“51 /opt/dreamfactory/bootstrap/cache/compiled.php(12752): Illuminate\Routing\Pipeline-\>Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))”,“52 [internal function]: Illuminate\Cookie\Middleware\EncryptCookies-\>handle(Object(Illuminate\Http\Request), Object(Closure))”,“53 /opt/dreamfactory/bootstrap/cache/compiled.php(9627): call\_user\_func\_array(Array, Array)”,“54 [internal function]: Illuminate\Pipeline\Pipeline-\>Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))”,“55 /opt/dreamfactory/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(32): call\_user\_func(Object(Closure), Object(Illuminate\Http\Request))”,“56 /opt/dreamfactory/bootstrap/cache/compiled.php(3271): Illuminate\Routing\Pipeline-\>Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))”,“57 [internal function]: Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode-\>handle(Object(Illuminate\Http\Request), Object(Closure))”,“58 /opt/dreamfactory/bootstrap/cache/compiled.php(9627): call\_user\_func\_array(Array, Array)”,“59 [internal function]: Illuminate\Pipeline\Pipeline-\>Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))”,“60 /opt/dreamfactory/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(32): call\_user\_func(Object(Closure), Object(Illuminate\Http\Request))”,“61 [internal function]: Illuminate\Routing\Pipeline-\>Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))”,“62 /opt/dreamfactory/bootstrap/cache/compiled.php(9612): call\_user\_func(Object(Closure), Object(Illuminate\Http\Request))”,“63 /opt/dreamfactory/bootstrap/cache/compiled.php(2363): Illuminate\Pipeline\Pipeline-\>then(Object(Closure))”,“64 /opt/dreamfactory/bootstrap/cache/compiled.php(2347): Illuminate\Foundation\Http\Kernel-\>sendRequestThroughRouter(Object(Illuminate\Http\Request))”,“65 /opt/dreamfactory/public/index.php(53): Illuminate\Foundation\Http\Kernel-\>handle(Object(Illuminate\Http\Request))”,“66 {main}”]}}

---

<div class="post-metadata">

**Author:** ![formerstaff](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/formerstaff/32/1133_2.png) [@formerstaff](https://community.dreamfactory.com/u/formerstaff)\
**Post date:** [June 23, 2016, 11:53am UTC](https://community.dreamfactory.com/t/upgrading-from-2-1-2-to-2-2-1/2867/15 "2016-06-23T11:53:32Z")

</div>

Sorry, I made some assumptions in my instructions. You will need to make those API calls authenticated with an admin account. You can use http basic auth for this.  
Otherwise you’ll just get the above error telling you didn’t provide a token or key.

---

<div class="post-metadata">

**Author:** ![Nico\_Dv](https://avatars.discourse-cdn.com/v4/letter/n/58f4c7/32.png) [@Nico\_Dv](https://community.dreamfactory.com/u/Nico_Dv)\
**Post date:** [June 27, 2016, 2:48pm UTC](https://community.dreamfactory.com/t/upgrading-from-2-1-2-to-2-2-1/2867/16 "2016-06-27T14:48:32Z")

</div>

Hi, sorry i m back again.  
Here is the error when requesting on /system/service:

{  
“error”: {  
“context”: null,  
“message”: “The MAC is invalid.”,  
“code”: 500,  
“trace”: [  
“0 /opt/dreamfactory/bootstrap/cache/compiled.php(12896): Illuminate\Encryption\BaseEncrypter-\>getJsonPayload(‘eyJpdiI6IktYTEc…’)”,  
“1 /opt/dreamfactory/bootstrap/cache/compiled.php(6380): Illuminate\Encryption\Encrypter-\>decrypt(‘eyJpdiI6IktYTEc…’)”,  
“2 /opt/dreamfactory/vendor/dreamfactory/df-sqldb/src/Models/SqlDbConfig.php(234): Illuminate\Support\Facades\Facade::\_\_callStatic(‘decrypt’, Array)”,  
“3 /opt/dreamfactory/vendor/dreamfactory/df-sqldb/src/Models/SqlDbConfig.php(234): Illuminate\Support\Facades\Crypt::decrypt(‘eyJpdiI6IktYTEc…’)”,  
“4 /opt/dreamfactory/vendor/dreamfactory/df-core/src/Models/Service.php(223): DreamFactory\Core\SqlDb\Models\SqlDbConfig::getConfig(8)”,  
“5 /opt/dreamfactory/bootstrap/cache/compiled.php(10988): DreamFactory\Core\Models\Service-\>getConfigAttribute(NULL)”,  
“6 /opt/dreamfactory/bootstrap/cache/compiled.php(10992): Illuminate\Database\Eloquent\Model-\>mutateAttribute(‘config’, NULL)”,  
“7 /opt/dreamfactory/bootstrap/cache/compiled.php(10892): Illuminate\Database\Eloquent\Model-\>mutateAttributeForArray(‘config’, NULL)”,  
“8 /opt/dreamfactory/vendor/dreamfactory/df-core/src/Models/BaseModel.php(1169): Illuminate\Database\Eloquent\Model-\>attributesToArray()”,  
“9 /opt/dreamfactory/bootstrap/cache/compiled.php(10863): DreamFactory\Core\Models\BaseModel-\>attributesToArray()”,  
“10 /opt/dreamfactory/bootstrap/cache/compiled.php(12595): Illuminate\Database\Eloquent\Model-\>toArray()”,  
“11 [internal function]: Illuminate\Support\Collection-\>Illuminate\Support\{closure}(Object(DreamFactory\Core\Models\Service))”,  
“12 /opt/dreamfactory/bootstrap/cache/compiled.php(12596): array\_map(Object(Closure), Array)”,  
“13 /opt/dreamfactory/vendor/dreamfactory/df-core/src/Models/BaseModel.php(862): Illuminate\Support\Collection-\>toArray()”,  
“14 /opt/dreamfactory/vendor/dreamfactory/df-core/src/Models/BaseSystemModel.php(56): DreamFactory\Core\Models\BaseModel::selectByRequest(Array, Array)”,  
“15 /opt/dreamfactory/vendor/dreamfactory/df-core/src/Resources/System/BaseSystemResource.php(163): DreamFactory\Core\Models\BaseSystemModel::selectByRequest(Array, Array)”,  
“16 [internal function]: DreamFactory\Core\Resources\System\BaseSystemResource-\>handleGET()”,  
“17 /opt/dreamfactory/vendor/dreamfactory/df-core/src/Components/RestHandler.php(267): call\_user\_func(Array)”,  
“18 /opt/dreamfactory/vendor/dreamfactory/df-core/src/Components/RestHandler.php(173): DreamFactory\Core\Components\RestHandler-\>processRequest()”,  
“19 /opt/dreamfactory/vendor/dreamfactory/df-core/src/Components/RestHandler.php(220): DreamFactory\Core\Components\RestHandler-\>handleRequest(Object(DreamFactory\Core\Utility\ServiceRequest), ‘’)”,  
“20 /opt/dreamfactory/vendor/dreamfactory/df-core/src/Components/RestHandler.php(168): DreamFactory\Core\Components\RestHandler-\>handleResource(Array)”,  
“21 /opt/dreamfactory/vendor/dreamfactory/df-core/src/Services/BaseRestService.php(74): DreamFactory\Core\Components\RestHandler-\>handleRequest(Object(DreamFactory\Core\Utility\ServiceRequest), ‘service’)”,  
“22 /opt/dreamfactory/bootstrap/cache/compiled.php(17036): DreamFactory\Core\Services\BaseRestService-\>handleRequest(Object(DreamFactory\Core\Utility\ServiceRequest), ‘service’)”,  
“23 /opt/dreamfactory/bootstrap/cache/compiled.php(16997): DreamFactory\Http\Controllers\RestController-\>handleService(‘v2’, ‘system’, ‘service’)”,  
“24 [internal function]: DreamFactory\Http\Controllers\RestController-\>handleGET(‘v2’, ‘system’, ‘service’)”,  
“25 /opt/dreamfactory/bootstrap/cache/compiled.php(9093): call\_user\_func\_array(Array, Array)”,  
“26 /opt/dreamfactory/bootstrap/cache/compiled.php(9155): Illuminate\Routing\Controller-\>callAction(‘handleGET’, Array)”,  
“27 /opt/dreamfactory/bootstrap/cache/compiled.php(9135): Illuminate\Routing\ControllerDispatcher-\>call(Object(DreamFactory\Http\Controllers\RestController), Object(Illuminate\Routing\Route), ‘handleGET’)”,  
“28 [internal function]: Illuminate\Routing\ControllerDispatcher-\>Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))”,  
“29 /opt/dreamfactory/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(52): call\_user\_func(Object(Closure), Object(Illuminate\Http\Request))”,  
“30 /opt/dreamfactory/bootstrap/cache/compiled.php(17209): Illuminate\Routing\Pipeline-\>Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))”,  
“31 [internal function]: DreamFactory\Http\Middleware\AccessCheck-\>handle(Object(Illuminate\Http\Request), Object(Closure))”,  
“32 /opt/dreamfactory/bootstrap/cache/compiled.php(9627): call\_user\_func\_array(Array, Array)”,  
“33 [internal function]: Illuminate\Pipeline\Pipeline-\>Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))”,  
“34 /opt/dreamfactory/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(32): call\_user\_func(Object(Closure), Object(Illuminate\Http\Request))”,  
“35 [internal function]: Illuminate\Routing\Pipeline-\>Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))”,  
“36 /opt/dreamfactory/bootstrap/cache/compiled.php(9612): call\_user\_func(Object(Closure), Object(Illuminate\Http\Request))”,  
“37 /opt/dreamfactory/bootstrap/cache/compiled.php(9136): Illuminate\Pipeline\Pipeline-\>then(Object(Closure))”,  
“38 /opt/dreamfactory/bootstrap/cache/compiled.php(9123): Illuminate\Routing\ControllerDispatcher-\>callWithinStack(Object(DreamFactory\Http\Controllers\RestController), Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request), ‘handleGET’)”,  
“39 /opt/dreamfactory/bootstrap/cache/compiled.php(8191): Illuminate\Routing\ControllerDispatcher-\>dispatch(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request), ‘DreamFactory\Ht…’, ‘handleGET’)”,  
“40 /opt/dreamfactory/bootstrap/cache/compiled.php(8178): Illuminate\Routing\Route-\>runController(Object(Illuminate\Http\Request))”,  
“41 /opt/dreamfactory/bootstrap/cache/compiled.php(7892): Illuminate\Routing\Route-\>run(Object(Illuminate\Http\Request))”,  
“42 [internal function]: Illuminate\Routing\Router-\>Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))”,  
“43 /opt/dreamfactory/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(52): call\_user\_func(Object(Closure), Object(Illuminate\Http\Request))”,  
“44 [internal function]: Illuminate\Routing\Pipeline-\>Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))”,  
“45 /opt/dreamfactory/bootstrap/cache/compiled.php(9612): call\_user\_func(Object(Closure), Object(Illuminate\Http\Request))”,  
“46 /opt/dreamfactory/bootstrap/cache/compiled.php(7893): Illuminate\Pipeline\Pipeline-\>then(Object(Closure))”,  
“47 /opt/dreamfactory/bootstrap/cache/compiled.php(7884): Illuminate\Routing\Router-\>runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))”,  
“48 /opt/dreamfactory/bootstrap/cache/compiled.php(7874): Illuminate\Routing\Router-\>dispatchToRoute(Object(Illuminate\Http\Request))”,  
“49 /opt/dreamfactory/bootstrap/cache/compiled.php(2416): Illuminate\Routing\Router-\>dispatch(Object(Illuminate\Http\Request))”,  
“50 [internal function]: Illuminate\Foundation\Http\Kernel-\>Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))”,  
“51 /opt/dreamfactory/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(52): call\_user\_func(Object(Closure), Object(Illuminate\Http\Request))”,  
“52 /opt/dreamfactory/app/Http/Middleware/AuthCheck.php(178): Illuminate\Routing\Pipeline-\>Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))”,  
“53 [internal function]: DreamFactory\Http\Middleware\AuthCheck-\>handle(Object(Illuminate\Http\Request), Object(Closure))”,  
“54 /opt/dreamfactory/bootstrap/cache/compiled.php(9627): call\_user\_func\_array(Array, Array)”,  
“55 [internal function]: Illuminate\Pipeline\Pipeline-\>Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))”,  
“56 /opt/dreamfactory/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(32): call\_user\_func(Object(Closure), Object(Illuminate\Http\Request))”,  
“57 /opt/dreamfactory/vendor/barryvdh/laravel-cors/src/HandleCors.php(34): Illuminate\Routing\Pipeline-\>Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))”,  
“58 [internal function]: Barryvdh\Cors\HandleCors-\>handle(Object(Illuminate\Http\Request), Object(Closure))”,  
“59 /opt/dreamfactory/bootstrap/cache/compiled.php(9627): call\_user\_func\_array(Array, Array)”,  
“60 [internal function]: Illuminate\Pipeline\Pipeline-\>Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))”,  
“61 /opt/dreamfactory/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(32): call\_user\_func(Object(Closure), Object(Illuminate\Http\Request))”,  
“62 /opt/dreamfactory/bootstrap/cache/compiled.php(17306): Illuminate\Routing\Pipeline-\>Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))”,  
“63 [internal function]: DreamFactory\Http\Middleware\FirstUserCheck-\>handle(Object(Illuminate\Http\Request), Object(Closure))”,  
“64 /opt/dreamfactory/bootstrap/cache/compiled.php(9627): call\_user\_func\_array(Array, Array)”,  
“65 [internal function]: Illuminate\Pipeline\Pipeline-\>Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))”,  
“66 /opt/dreamfactory/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(32): call\_user\_func(Object(Closure), Object(Illuminate\Http\Request))”,  
“67 /opt/dreamfactory/bootstrap/cache/compiled.php(13076): Illuminate\Routing\Pipeline-\>Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))”,  
“68 [internal function]: Illuminate\View\Middleware\ShareErrorsFromSession-\>handle(Object(Illuminate\Http\Request), Object(Closure))”,  
“69 /opt/dreamfactory/bootstrap/cache/compiled.php(9627): call\_user\_func\_array(Array, Array)”,  
“70 [internal function]: Illuminate\Pipeline\Pipeline-\>Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))”,  
“71 /opt/dreamfactory/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(32): call\_user\_func(Object(Closure), Object(Illuminate\Http\Request))”,  
“72 /opt/dreamfactory/bootstrap/cache/compiled.php(11622): Illuminate\Routing\Pipeline-\>Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))”,  
“73 [internal function]: Illuminate\Session\Middleware\StartSession-\>handle(Object(Illuminate\Http\Request), Object(Closure))”,  
“74 /opt/dreamfactory/bootstrap/cache/compiled.php(9627): call\_user\_func\_array(Array, Array)”,  
“75 [internal function]: Illuminate\Pipeline\Pipeline-\>Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))”,  
“76 /opt/dreamfactory/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(32): call\_user\_func(Object(Closure), Object(Illuminate\Http\Request))”,  
“77 /opt/dreamfactory/bootstrap/cache/compiled.php(12815): Illuminate\Routing\Pipeline-\>Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))”,  
“78 [internal function]: Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse-\>handle(Object(Illuminate\Http\Request), Object(Closure))”,  
“79 /opt/dreamfactory/bootstrap/cache/compiled.php(9627): call\_user\_func\_array(Array, Array)”,  
“80 [internal function]: Illuminate\Pipeline\Pipeline-\>Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))”,  
“81 /opt/dreamfactory/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(32): call\_user\_func(Object(Closure), Object(Illuminate\Http\Request))”,  
“82 /opt/dreamfactory/bootstrap/cache/compiled.php(12752): Illuminate\Routing\Pipeline-\>Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))”,  
“83 [internal function]: Illuminate\Cookie\Middleware\EncryptCookies-\>handle(Object(Illuminate\Http\Request), Object(Closure))”,  
“84 /opt/dreamfactory/bootstrap/cache/compiled.php(9627): call\_user\_func\_array(Array, Array)”,  
“85 [internal function]: Illuminate\Pipeline\Pipeline-\>Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))”,  
“86 /opt/dreamfactory/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(32): call\_user\_func(Object(Closure), Object(Illuminate\Http\Request))”,  
“87 /opt/dreamfactory/bootstrap/cache/compiled.php(3271): Illuminate\Routing\Pipeline-\>Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))”,  
“88 [internal function]: Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode-\>handle(Object(Illuminate\Http\Request), Object(Closure))”,  
“89 /opt/dreamfactory/bootstrap/cache/compiled.php(9627): call\_user\_func\_array(Array, Array)”,  
“90 [internal function]: Illuminate\Pipeline\Pipeline-\>Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))”,  
“91 /opt/dreamfactory/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(32): call\_user\_func(Object(Closure), Object(Illuminate\Http\Request))”,  
“92 [internal function]: Illuminate\Routing\Pipeline-\>Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))”,  
“93 /opt/dreamfactory/bootstrap/cache/compiled.php(9612): call\_user\_func(Object(Closure), Object(Illuminate\Http\Request))”,  
“94 /opt/dreamfactory/bootstrap/cache/compiled.php(2363): Illuminate\Pipeline\Pipeline-\>then(Object(Closure))”,  
“95 /opt/dreamfactory/bootstrap/cache/compiled.php(2347): Illuminate\Foundation\Http\Kernel-\>sendRequestThroughRouter(Object(Illuminate\Http\Request))”,  
“96 /opt/dreamfactory/public/index.php(53): Illuminate\Foundation\Http\Kernel-\>handle(Object(Illuminate\Http\Request))”,  
“97 {main}”  
]  
}  
}

I have no error when requesting on /system/environment

---

<div class="post-metadata">

**Author:** ![formerstaff](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/formerstaff/32/1133_2.png) [@formerstaff](https://community.dreamfactory.com/u/formerstaff)\
**Post date:** [July 11, 2016, 3:25pm UTC](https://community.dreamfactory.com/t/upgrading-from-2-1-2-to-2-2-1/2867/17 "2016-07-11T15:25:39Z")

</div>

Mac is invalid indicates that you app key has changed and the system cannot load information from the database that was stored with two way encryption (such as private lookups and service credentials.)

Check your backup for this file  
bootstrap/cache/config.php  
If it exists locate the app\_key value in the file and copy it into your .env file  
(/opt/dreamfactory.env APP\_KEY=)

Then restart apache/nginx
