Sites.ini file truncated

Q: Date/Time this occurred (Provide your time zone also)
A: September 28th, 13:44 GMT+1

Q: DevKinsta Version
A: Version 2.1.0 (2.1.0.1899)

Q: OS Version
A: macOS Big Sur 11.5.1 (20G80)

Q: Docker Desktop Version
A: 4.0.1 (68347)

Q: Were any error codes or messages observed? If so, what were they?
A: No

Q: Detailed Description of the Problem
A: Upon restart sites.ini file located in the Sites/kinsta directory is empty. No website can be opened as it reports with

This site can’t be reached

website.local unexpectedly closed the connection.

The date on sites.ini file is reset to the year 1970.

Also, is there another file that keeps information about websites running?
I only have one website in sites.ini, but I can see others in my DK app…

:confused:

Oh no @nemanjac ! Any ideas how that might have happened? Any updates recently?

Not at all.
I can restore than manually. I managed to restore a few I’m working on actively, simply by restoring the sites.ini content, but if I know from where a listing of sites is generated inside an app, I can make a simple CLI tool to restore the whole listing.

:thinking: Anything in the logs? Would you be able to provide DevKinsta logs?
They should be located over at /Users/{yourUserName}/Library/Logs/DevKinsta/main.log

There is a whole bunch of erros like

[error] send error: TypeError: Object has been destroyed

And this is about time when error first popped up that I lost all entries from sites.ini

[2021-09-28 13:17:14.318] [info]  [main.dev.ts] Start closing main window
[2021-09-28 13:17:16.161] [info]  [main.dev.ts] Stop docker containers
[2021-09-28 13:17:16.165] [info]  [stopContainers] Stop containers
[2021-09-28 13:17:16.173] [info]  [main.dev.ts] Destroy main window
[2021-09-28 13:17:16.176] [info]  Closing application
[2021-09-28 13:17:22.449] [info]  [logs] Get config
[2021-09-28 13:17:22.458] [error] TypeError: Cannot read property 'getPath' of undefined
    at logs_getConfig (/Applications/DevKinsta.app/Contents/Resources/app.asar/main.prod.js:2:456946)
    at Module.49646 (/Applications/DevKinsta.app/Contents/Resources/app.asar/main.prod.js:2:457736)
    at __webpack_require__ (/Applications/DevKinsta.app/Contents/Resources/app.asar/main.prod.js:2:3590669)
    at /Applications/DevKinsta.app/Contents/Resources/app.asar/main.prod.js:2:3591587
    at Object.<anonymous> (/Applications/DevKinsta.app/Contents/Resources/app.asar/main.prod.js:2:3591672)
    at Module._compile (internal/modules/cjs/loader.js:1078:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1108:10)
    at Module.load (internal/modules/cjs/loader.js:935:32)
    at Module._load (internal/modules/cjs/loader.js:776:14)
    at Function.f._load (electron/js2c/asar_bundle.js:5:12913)
[2021-09-28 13:17:22.462] [info]  [logs] Get sites.ini
[2021-09-28 13:17:22.515] [info]  [dockerClient/getClient] Create new Docker client. IsWindows: false, isLinux: false
[2021-09-28 13:17:23.039] [info]  App is ready!
[2021-09-28 13:17:23.040] [info]  [main.dev.ts] Creating main window
[2021-09-28 13:17:23.040] [info]  [main.dev.ts] Set default configuration
[2021-09-28 13:17:53.606] [info]  [main.dev.ts] Setup main window
[2021-09-28 13:17:53.778] [info]  [main.dev.ts] Loading file: /Applications/DevKinsta.app/Contents/Resources/app.asar/index.html
[2021-09-28 13:17:54.049] [info]  [watchdocker] Start monitoring docker containers' events
[2021-09-28 13:17:55.137] [info]  [logs] Get config
[2021-09-28 13:17:55.146] [info]  [logs] Get sites.ini
[2021-09-28 13:17:55.152] [info]  [dockerClient/getClient] Create new Docker client. IsWindows: false, isLinux: false
[2021-09-28 13:17:55.603] [info]  [dockerClient/isReady] Check if Docker client is ready
[2021-09-28 13:17:55.732] [info]  [dockerClient/isInstalled] Check if Docker is installed
[2021-09-28 13:17:55.944] [info]  [setHostIp] Set host ip
[2021-09-28 13:17:55.998] [info]  [dockerClient/isReady] Check if Docker client is ready
[2021-09-28 13:17:56.109] [info]  [cleanSiteList] Update site list
[2021-09-28 13:17:56.111] [info]  [cleanSiteList] Delete site contents
[2021-09-28 13:17:56.195] [info]  [checkSiteHosts] Check site hosts
[2021-09-28 13:17:56.208] [error] Error - DK0027: HOST_FILE_MISSING_ENTRY: Missing hostFile entry for woo-variable-tables
    at /Applications/DevKinsta.app/Contents/Resources/app.asar/main.prod.js:2:541912
    at Array.map (<anonymous>)
    at /Applications/DevKinsta.app/Contents/Resources/app.asar/main.prod.js:2:541882
    at tryCatch (/Applications/DevKinsta.app/Contents/Resources/app.asar/main.prod.js:2:2697423)
    at Generator._invoke (/Applications/DevKinsta.app/Contents/Resources/app.asar/main.prod.js:2:2697046)
    at Generator.next (/Applications/DevKinsta.app/Contents/Resources/app.asar/main.prod.js:2:2698189)
    at asyncGeneratorStep (/Applications/DevKinsta.app/Contents/Resources/app.asar/main.prod.js:2:1003)
    at _next (/Applications/DevKinsta.app/Contents/Resources/app.asar/main.prod.js:2:1302)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
[2021-09-28 13:17:56.230] [error] Error - DK0027: HOST_FILE_MISSING_ENTRY: Missing hostFile entry for listeo
    at /Applications/DevKinsta.app/Contents/Resources/app.asar/main.prod.js:2:541912
    at Array.map (<anonymous>)
    at /Applications/DevKinsta.app/Contents/Resources/app.asar/main.prod.js:2:541882
    at tryCatch (/Applications/DevKinsta.app/Contents/Resources/app.asar/main.prod.js:2:2697423)
    at Generator._invoke (/Applications/DevKinsta.app/Contents/Resources/app.asar/main.prod.js:2:2697046)
    at Generator.next (/Applications/DevKinsta.app/Contents/Resources/app.asar/main.prod.js:2:2698189)
    at asyncGeneratorStep (/Applications/DevKinsta.app/Contents/Resources/app.asar/main.prod.js:2:1003)
    at _next (/Applications/DevKinsta.app/Contents/Resources/app.asar/main.prod.js:2:1302)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)

This is just the first like of many (every host reported the same error).

That getPath error repeats a couple of times, but I can’t seem to find any connection between that and weird behavior.

That is about it, I don’t see any errors that

Thanks for that @nemanjac . We’re taking a look at this and will update you soon.

1 Like

Hey @nemanjac . Could you give this another test on DevKinsta 2.2.0?

It is working fine for a while now.
First I have recreated manually only those items that were missing.

And now I have a small CLI tool, that allows for any future issues to be mitigated in one command :slight_smile:

[error] send error: TypeError: Object has been destroyed

It seems it is gone now.
Another thing that I noticed started popping after that is

[2021-10-07 23:04:42.425] [info]  [watchDocker] Container: devkinsta_nginx, status: kill
[2021-10-07 23:04:52.492] [info]  [watchDocker] Container: devkinsta_nginx, status: kill
[2021-10-07 23:04:52.544] [info]  [watchDocker] Container: devkinsta_nginx, status: die
[2021-10-07 23:04:52.621] [info]  [watchDocker] Container: devkinsta_nginx, status: stop
[2021-10-07 23:04:52.891] [info]  [watchDocker] Container: devkinsta_nginx, status: start
[2021-10-07 23:04:52.892] [info]  [watchDocker] Container: devkinsta_nginx, status: restart
[2021-10-08 18:32:11.609] [info]  [watchDocker] Container: devkinsta_nginx, status: kill
[2021-10-08 18:32:21.657] [info]  [watchDocker] Container: devkinsta_nginx, status: kill
[2021-10-08 18:32:21.762] [info]  [watchDocker] Container: devkinsta_nginx, status: die
[2021-10-08 18:32:21.850] [info]  [watchDocker] Container: devkinsta_nginx, status: stop
[2021-10-08 18:32:22.118] [info]  [watchDocker] Container: devkinsta_nginx, status: start
[2021-10-08 18:32:22.119] [info]  [watchDocker] Container: devkinsta_nginx, status: restart
[2021-10-08 18:33:47.902] [info]  [watchDocker] Container: devkinsta_nginx, status: kill
[2021-10-08 18:33:57.949] [info]  [watchDocker] Container: devkinsta_nginx, status: kill
[2021-10-08 18:33:57.977] [info]  [watchDocker] Container: devkinsta_nginx, status: die
[2021-10-08 18:33:58.060] [info]  [watchDocker] Container: devkinsta_nginx, status: stop
[2021-10-08 18:33:58.278] [info]  [watchDocker] Container: devkinsta_nginx, status: start
[2021-10-08 18:33:58.279] [info]  [watchDocker] Container: devkinsta_nginx, status: restart
[2021-10-08 18:45:38.928] [info]  [watchDocker] Container: devkinsta_nginx, status: kill
[2021-10-08 18:45:48.987] [info]  [watchDocker] Container: devkinsta_nginx, status: kill
[2021-10-08 18:45:49.036] [info]  [watchDocker] Container: devkinsta_nginx, status: die
[2021-10-08 18:45:49.109] [info]  [watchDocker] Container: devkinsta_nginx, status: stop
[2021-10-08 18:45:49.374] [info]  [watchDocker] Container: devkinsta_nginx, status: start
[2021-10-08 18:45:49.375] [info]  [watchDocker] Container: devkinsta_nginx, status: restart
[2021-10-08 18:47:31.442] [info]  [watchDocker] Container: devkinsta_nginx, status: kill
[2021-10-08 18:47:41.495] [info]  [watchDocker] Container: devkinsta_nginx, status: kill
[2021-10-08 18:47:41.521] [info]  [watchDocker] Container: devkinsta_nginx, status: die
[2021-10-08 18:47:41.592] [info]  [watchDocker] Container: devkinsta_nginx, status: stop
[2021-10-08 18:47:41.850] [info]  [watchDocker] Container: devkinsta_nginx, status: start
[2021-10-08 18:47:41.851] [info]  [watchDocker] Container: devkinsta_nginx, status: restart
[2021-10-09 13:29:24.649] [info]  [watchDocker] Container: devkinsta_nginx, status: kill
[2021-10-09 13:29:34.698] [info]  [watchDocker] Container: devkinsta_nginx, status: kill
[2021-10-09 13:29:34.749] [info]  [watchDocker] Container: devkinsta_nginx, status: die
[2021-10-09 13:29:34.817] [info]  [watchDocker] Container: devkinsta_nginx, status: stop
[2021-10-09 13:29:35.044] [info]  [watchDocker] Container: devkinsta_nginx, status: start
[2021-10-09 13:29:35.046] [info]  [watchDocker] Container: devkinsta_nginx, status: restart
[2021-10-09 13:31:06.624] [info]  [watchDocker] Container: devkinsta_nginx, status: kill
[2021-10-09 13:31:16.670] [info]  [watchDocker] Container: devkinsta_nginx, status: kill
[2021-10-09 13:31:16.699] [info]  [watchDocker] Container: devkinsta_nginx, status: die
[2021-10-09 13:31:16.754] [info]  [watchDocker] Container: devkinsta_nginx, status: stop
[2021-10-09 13:31:16.969] [info]  [watchDocker] Container: devkinsta_nginx, status: start
[2021-10-09 13:31:16.970] [info]  [watchDocker] Container: devkinsta_nginx, status: restart
[2021-10-09 13:31:30.839] [info]  [watchDocker] Container: devkinsta_nginx, status: kill
[2021-10-09 13:31:40.891] [info]  [watchDocker] Container: devkinsta_nginx, status: kill
[2021-10-09 13:31:40.917] [info]  [watchDocker] Container: devkinsta_nginx, status: die
[2021-10-09 13:31:40.997] [info]  [watchDocker] Container: devkinsta_nginx, status: stop
[2021-10-09 13:31:41.198] [info]  [watchDocker] Container: devkinsta_nginx, status: start
[2021-10-09 13:31:41.199] [info]  [watchDocker] Container: devkinsta_nginx, status: restart

Sorry, spoke too soon.
Here it is.

Logging same error all over again:
[error] send error: TypeError: Object has been destroyed

Thank you for testing that. We believe there may be an issue with the local settings. We’re not entirely sure as we haven’t run into this before. If you haven’t already, it may be worth re-installing Docker. The log also seems to indicate the hosts file may be an issue/damaged.

As for error: TypeError: Object has been destroyed, that’s related to the DevKinsta thumbnail generation so it doesn’t appear related.

Yeah, I figured so.
No issues whatsoever, I will try to debug it later on just so that my log is not filled with **** all the time :slight_smile:

1 Like