# Error on tc.log file when restarting bitnami service

**URL:** https://community.dreamfactory.com/t/error-on-tc-log-file-when-restarting-bitnami-service/2988
**Category:** Bitnami Installers
**Created:** [July 14, 2016, 1:39pm UTC](https://community.dreamfactory.com/t/error-on-tc-log-file-when-restarting-bitnami-service/2988 "2016-07-14T13:39:08Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![crystaltaggart57](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/crystaltaggart57/32/465_2.png) [@crystaltaggart57](https://community.dreamfactory.com/u/crystaltaggart57)
#### Post date: [July 14, 2016, 1:39pm UTC](https://community.dreamfactory.com/t/error-on-tc-log-file-when-restarting-bitnami-service/2988/1 "2016-07-14T13:39:08Z")

</div>

I’m getting an issue consistently when trying to restart the bitnami dreamfactory service. I run the [ctlscript.sh](http://ctlscript.sh) restart, but then the process gets an error when starting mysql. In the logs it says there’s an error with the tc.log file. I rename the /opt/bitnami/mysql/data/tc.log file and then restart and it works correctly. The error happens every time I restart so it wasn’t a one-time thing. Installed on google cloud bitnami install.

---

<div class="post-metadata">

### Author: ![Sal](https://avatars.discourse-cdn.com/v4/letter/s/58f4c7/32.png) [@Sal](https://community.dreamfactory.com/u/Sal)
#### Post date: [July 25, 2016, 2:17pm UTC](https://community.dreamfactory.com/t/error-on-tc-log-file-when-restarting-bitnami-service/2988/2 "2016-07-25T14:17:24Z")

</div>

Glad to see its not just me. I’m also on the google cloud bitnami version and every single time I need to restart the server, I have to delete the same tc.log file. If I don’t, the whole database stays down. This is with two separate installs, not just one.

---

<div class="post-metadata">

### Author: ![DFCommunityManager](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/dfcommunitymanager/32/887_2.png) [@DFCommunityManager](https://community.dreamfactory.com/u/DFCommunityManager)
#### Post date: [July 25, 2016, 2:23pm UTC](https://community.dreamfactory.com/t/error-on-tc-log-file-when-restarting-bitnami-service/2988/3 "2016-07-25T14:23:07Z")

</div>

@crystaltaggart57 are you still experiencing this?

@sal thanks for letting us know.

We will certainly investigate this, but this also seems like an error on Bitnami’s end.

Thanks,  
@AlexBowen

---

<div class="post-metadata">

### Author: ![DFCommunityManager](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/dfcommunitymanager/32/887_2.png) [@DFCommunityManager](https://community.dreamfactory.com/u/DFCommunityManager)
#### Post date: [July 25, 2016, 2:25pm UTC](https://community.dreamfactory.com/t/error-on-tc-log-file-when-restarting-bitnami-service/2988/4 "2016-07-25T14:25:04Z")

</div>

FYI: I’ve posted on the Bitnami - DreamFactory community to see if we can get a response there too:

> **[Error on tc.log file when restarting bitnami service](https://community.bitnami.com/t/error-on-tc-log-file-when-restarting-bitnami-service/43420)**
>
> We have an error that was posted to our forum that appears to be an issue with Bitnami, not DreamFactory. Any insight or support with this? Thanks, @alexbowen

---

<div class="post-metadata">

### Author: ![DFCommunityManager](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/dfcommunitymanager/32/887_2.png) [@DFCommunityManager](https://community.dreamfactory.com/u/DFCommunityManager)
#### Post date: [July 26, 2016, 12:52pm UTC](https://community.dreamfactory.com/t/error-on-tc-log-file-when-restarting-bitnami-service/2988/5 "2016-07-26T12:52:37Z")

</div>

Hey there, @sal & @crystaltaggart57 I’ve got an update.

The Bitnami folks were unable to reproduce the issue, and will need some additional information in order to solve the problem.

- Did you perform any modifications in the stack?
- Which steps did you reproduce in order to get the error?
- Could you post here the tc.log file?

Thanks,  
@AlexBowen

---

<div class="post-metadata">

### Author: ![Sal](https://avatars.discourse-cdn.com/v4/letter/s/58f4c7/32.png) [@Sal](https://community.dreamfactory.com/u/Sal)
#### Post date: [July 28, 2016, 3:01pm UTC](https://community.dreamfactory.com/t/error-on-tc-log-file-when-restarting-bitnami-service/2988/6 "2016-07-28T15:01:45Z")

</div>

@AlexBowen

Hi. I changed a parameter in apps/dreamfactory/htdocs/config/df.php. I changed “always\_wrap\_resources” to false. That was the only change I made on the default install.

According to [Json response / records without "resource" and document id](https://community.dreamfactory.com/t/json-response-records-without-resource-and-document-id/2511/2) there is a second change to be made in apps/dreamfactory/htdocs/bootstrap/cache/config.php. However I am unable to locate this file to make the second change.

I tried setting “always\_wrap\_resources” to true again in apps/dreamfactory/htdocs/config/df.php and the server rebooted fine again so that seems like that might be the issue.

---

<div class="post-metadata">

### Author: ![DFCommunityManager](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/dfcommunitymanager/32/887_2.png) [@DFCommunityManager](https://community.dreamfactory.com/u/DFCommunityManager)
#### Post date: [July 29, 2016, 2:19pm UTC](https://community.dreamfactory.com/t/error-on-tc-log-file-when-restarting-bitnami-service/2988/7 "2016-07-29T14:19:17Z")

</div>

Thanks @Sal for following up!

> [@Sal](#):
>
> I tried setting “always\_wrap\_resources” to true again in apps/dreamfactory/htdocs/config/df.php and the server rebooted fine again so that seems like that might be the issue.

^^ That’s good to hear.

Are you using Bootstrap? Because that may have just been specific to his setup.

> [@Json response / records without "resource" and document id](https://community.dreamfactory.com/t/json-response-records-without-resource-and-document-id/2511/2):
>
> {DF\_ INSTALATION}/apps/dreamfactory/htdocs/bootstrap/cache/config.php

---

<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: [August 4, 2016, 3:12pm UTC](https://community.dreamfactory.com/t/error-on-tc-log-file-when-restarting-bitnami-service/2988/8 "2016-08-04T15:12:00Z")

</div>

the file bootstrap/cache/config.php only exists if you have cached your configuration. If it doesn’t exist, you don’t need to edit it.

---

<div class="post-metadata">

### Author: ![armin.fraude](https://avatars.discourse-cdn.com/v4/letter/a/2bfe46/32.png) [@armin.fraude](https://community.dreamfactory.com/u/armin.fraude)
#### Post date: [March 3, 2017, 1:07pm UTC](https://community.dreamfactory.com/t/error-on-tc-log-file-when-restarting-bitnami-service/2988/9 "2017-03-03T13:07:55Z")

</div>

Hi,

I have the same problem, but different boundary conditions like the above mentioned case:

The first restart of the bitnami services via /bitnami/ctlscript.sh stop / start led to the same error as discussed here before. So I simply deleted /bitnami/mysql/data/tc.log and I could restart it again.  
The days after, I tested this several times and each time was successful: all services could be started.

But after 1 week working with it, the error restarting the bitnami services occurred again.

In my case, I never changed “always\_wrap\_resources” to false in apps/dreamfactory/htdocs/config/df.php. It’s set to true from the beginning.  
Neither I performed changes in other config files.  
Neither I have this problem every time restarting the bitnami services.

Why do I get this error sometimes and sometimes not?  
I guess this is an indication, that my bitnami installation is not running reliably?

Thank you in advance for any hint  
Best Regards

---

<div class="post-metadata">

### Author: ![Kidworks\_Therapy](https://avatars.discourse-cdn.com/v4/letter/k/d07c76/32.png) [@Kidworks\_Therapy](https://community.dreamfactory.com/u/Kidworks_Therapy)
#### Post date: [June 25, 2018, 5:54pm UTC](https://community.dreamfactory.com/t/error-on-tc-log-file-when-restarting-bitnami-service/2988/10 "2018-06-25T17:54:29Z")

</div>

For the record it is now June 25th 2018 and I just had to delete this file to get my DF to start again after restarting it (Amazon EC2) (Bitnami with absolutely no config edits)
