When pushing to or pulling from Kinsta file selection does not work

Q: Date/Time this occurred (Provide your time zone also)
A: 14:42 PM 25.08.2023 UTC +1

Q: DevKinsta Version
A: 2.11.0

Q: OS Version
A: Windows 11 Pro N
Version 10.0.22621 Build 22621

Q: Docker Desktop Version
A: v 4.21.1

Q: Were any error codes or messages observed? If so, what were they?
A: There are no error codes or messages observed.

Q: Detailed Description of the Problem
A: When I pull from Kinsta and deselect folders or files from the File part it still pulls all the files. Also the other way around, when pushing to Kinsta and I only want to push my theme it pushes everything.

I am happy to provide any further information needed to figure out why this happens, but you’d need to guide me a bit.

Thanks :slight_smile:

Hey @diantonie :wave:,
I am not able to reproduce the issue on DevKinsta 2.11 (although I tested this on a Mac rather than Windows). Can you please send a copy of your main.log file via DM? You can find it by clicking on the question mark icon at the bottom left corner of DevKinsta and then on Reveal log file in File Manager.
We’d like to take a look at it and help you find the culprit.

Regards,
Alessandro

Hey @Alessandro

thanks for the quick reply! :slight_smile:

here is the log of pulling the content.

I initially thought it has smth to do with WSL2, Docker and the filesystem. It takes long for Dev Kinsta to list the files, so I believe that it the selection of the folder structure runs on the Windows filesystem but it lists paths of the docker-data filesystem. Something goes wrong in this stept I believe (but that is just a wild guess)

[2023-08-25 14:30:26.036] [info] [containerExec] Command ‘wp --allow-root --skip-themes --skip-plugins core is-installed --path=/www/kinsta/public/xxx’ on devkinsta_fpm finished with exit code 0
[2023-08-25 14:30:26.037] [info] [useWordpressCheck] xxxis a wp site, setting it to WP.
[2023-08-25 14:31:47.412] [info] [containerExec] Command ’ cd public && tar -czvf /www/kinsta/temp/backup/xxx.tar.gz xxx’ on devkinsta_fpm finished with exit code 0
[2023-08-25 14:31:47.413] [info] [createSiteBackup] xxx site successfully archived!
[2023-08-25 14:31:47.413] [info] [createSiteBackup] xxx site successfully backed up at path /www/kinsta/temp/backup/xxx.tar.gz!
[2023-08-25 14:31:47.415] [info] [dockerUtil/getContainer] Get ‘devkinsta_fpm’ Docker container
[2023-08-25 14:31:47.590] [info] [ProgressIndicator] { isFailed: false, isOpen: true }
[2023-08-25 14:31:49.059] [info] [containerExec] Command ‘ssh xxx@xx.xxx.xx.xxx -p xxxxx -o “UserKnownHostsFile /dev/null” -o “StrictHostKeyChecking no” -o “PasswordAuthentication no” -o “ChallengeResponseAuthentication no” ‘echo 1’’ on devkinsta_fpm finished with exit code 0
[2023-08-25 14:31:49.061] [info] [renewSshKey] SSH key is valid
[2023-08-25 14:31:49.064] [info] [createMySqlDump] Create mysql dump
[2023-08-25 14:31:49.065] [info] [dockerUtil/getContainer] Get ‘devkinsta_fpm’ Docker container
[2023-08-25 14:31:49.187] [info] [ProgressIndicator] { isFailed: false, isOpen: true }
[2023-08-25 14:31:51.298] [info] [containerExec] Command ‘ssh xxx@xx.xxx.xx.xxx -p xxxxx -o “UserKnownHostsFile /dev/null” -o “StrictHostKeyChecking no” -o “PasswordAuthentication no” -o “ChallengeResponseAuthentication no” ‘mysqldump -h localhost -u xxx-p****** xxx> “/www/xxx/public/backup.sql”’’ on devkinsta_fpm finished with exit code 0
[2023-08-25 14:31:51.299] [info] [downloadSite] Calculate remote folder size
[2023-08-25 14:31:51.300] [info] [dockerUtil/getContainer] Get ‘devkinsta_fpm’ Docker container
[2023-08-25 14:31:51.300] [info] [downloadSite] Download files
[2023-08-25 14:31:51.312] [info] [isWslMode] check if docker runs on wsl mode
[2023-08-25 14:31:51.312] [info] [getDockerInfo] get Docker info
[2023-08-25 14:31:51.312] [info] [getDevKinstaPath] get DevKinsta path
[2023-08-25 14:31:51.313] [info] [isWslMode] check if docker runs on wsl mode
[2023-08-25 14:31:51.313] [info] [getDockerInfo] get Docker info
[2023-08-25 14:31:51.313] [info] [getDevKinstaPath] get DevKinsta path
[2023-08-25 14:31:51.314] [info] [isWslMode] check if docker runs on wsl mode
[2023-08-25 14:31:51.314] [info] [getDockerInfo] get Docker info
[2023-08-25 14:31:51.325] [info] [isWslMode] check if docker runs on wsl mode
[2023-08-25 14:31:51.326] [info] [getDockerInfo] get Docker info
[2023-08-25 14:31:51.326] [info] [getDevKinstaPath] get DevKinsta path
[2023-08-25 14:31:51.326] [info] [isWslMode] check if docker runs on wsl mode
[2023-08-25 14:31:51.327] [info] [getDockerInfo] get Docker info
[2023-08-25 14:31:51.327] [info] [getDevKinstaPath] get DevKinsta path
[2023-08-25 14:31:51.327] [info] [isWslMode] check if docker runs on wsl mode
[2023-08-25 14:31:51.328] [info] [getDockerInfo] get Docker info
[2023-08-25 14:31:51.328] [info] [isWslMode] check if docker runs on wsl mode
[2023-08-25 14:31:51.329] [info] [getDockerInfo] get Docker info
[2023-08-25 14:31:51.400] [info] [ProgressIndicator] { isFailed: false, isOpen: true }
[2023-08-25 14:31:53.706] [warn] [terminalExec] Error: Warning: Permanently added ‘[35.194.83.106]:41650’ (ED25519) to the list of known hosts.

[2023-08-25 14:31:56.111] [info] [ProgressIndicator] { isFailed: false, isOpen: true }
[2023-08-25 14:31:57.103] [info] [ProgressIndicator] { isFailed: false, isOpen: true }
[2023-08-25 14:31:57.682] [info] [ProgressIndicator] { isFailed: false, isOpen: true }
[2023-08-25 14:31:57.896] [info] [ProgressIndicator] { isFailed: false, isOpen: true }

[2023-08-25 14:37:48.899] [info] [ProgressIndicator] { isFailed: false, isOpen: true }
[2023-08-25 14:37:49.111] [info] [ProgressIndicator] { isFailed: false, isOpen: true }
[2023-08-25 14:37:49.266] [info] [ProgressIndicator] { isFailed: false, isOpen: true }
[2023-08-25 14:37:49.993] [info] [terminalExec] Child process exited with code 0
[2023-08-25 14:37:50.641] [info] [containerExec] Command ‘chown -R www-data:www-data /www/kinsta/public/xxx’ on devkinsta_fpm finished with exit code 0
[2023-08-25 14:37:50.645] [info] [importBackupToDb] Import db
[2023-08-25 14:37:50.646] [info] [dockerUtil/getContainer] Get ‘devkinsta_fpm’ Docker container
[2023-08-25 14:37:50.951] [info] [ProgressIndicator] { isFailed: false, isOpen: true }
[2023-08-25 14:38:02.566] [info] [containerExec] Command ‘mysql -h devkinsta_db -u root -p****** xxx< “/www/kinsta/public/xxx/backup.sql”’ on devkinsta_fpm finished with exit code 0
[2023-08-25 14:38:02.567] [info] [importBackupToDb] Import db done, deleting dump
[2023-08-25 14:38:02.568] [info] [dockerUtil/getContainer] Get ‘devkinsta_fpm’ Docker container
[2023-08-25 14:38:02.722] [info] [containerExec] Command ‘rm -f /www/kinsta/public/xxx/backup.sql’ on devkinsta_fpm finished with exit code 0
[2023-08-25 14:38:02.724] [info] [dockerUtil/getContainer] Get ‘devkinsta_fpm’ Docker container
[2023-08-25 14:38:02.838] [info] [ProgressIndicator] { isFailed: false, isOpen: true }
[2023-08-25 14:38:03.966] [info] [containerExec] Command ‘cd /www/kinsta/public/xxx && wp --allow-root --skip-themes --skip-plugins config set DB_HOST devkinsta_db && wp --allow-root --skip-themes --skip-plugins config set DB_PASSWORD ****** && wp --allow-root --skip-themes --skip-plugins config set DB_USER root && wp --allow-root --skip-themes --skip-plugins config set DB_NAME xxx’ on devkinsta_fpm finished with exit code 0
[2023-08-25 14:38:03.967] [info] [dockerUtil/getContainer] Get ‘devkinsta_fpm’ Docker container
[2023-08-25 14:38:03.968] [info] [isWpSite] Checking if xxx is a Wordpress site
[2023-08-25 14:38:04.087] [info] [ProgressIndicator] { isFailed: false, isOpen: true }
[2023-08-25 14:38:05.231] [info] [containerExec] Command ‘wp --allow-root --skip-themes --skip-plugins core is-installed --path=/www/kinsta/public/xxx’ on devkinsta_fpm finished with exit code 0
[2023-08-25 14:38:05.232] [info] [searchAndReplace] Search and replace.
[2023-08-25 14:38:05.233] [info] [dockerUtil/getContainer] Get ‘devkinsta_fpm’ Docker container
[2023-08-25 14:38:19.380] [info] [containerExec] Command ‘cd /www/kinsta/public/xxx && wp --allow-root --skip-themes --skip-plugins search-replace ‘http://stg-xxx-staging.kinsta.cloud’ ‘http://xxx.local’ --all-tables && wp --allow-root --skip-themes --skip-plugins search-replace ‘https://stg-xxx-staging.kinsta.cloud’ ‘http://xxx.local’ --all-tables && wp --allow-root --skip-themes --skip-plugins search-replace ‘http://stg-xxx-staging.kinsta.cloud’ ‘http://xxx.local’ --all-tables && wp --allow-root --skip-themes --skip-plugins search-replace ‘https://stg-xxx-staging.kinsta.cloud’ ‘http://xxx.local’ --all-tables && wp --allow-root --skip-themes --skip-plugins search-replace ‘stg-xxx-staging.kinsta.cloud’ ‘http://xxx.local’ --all-tables’ on devkinsta_fpm finished with exit code 0
[2023-08-25 14:38:19.381] [info] [updateWpConfigUrl]: update urls in wp-config.php. Site:xxxfrom: http://stg-xxx-staging.kinsta.cloud,https://stg-xxx-staging.kinsta.cloud,http://stg-xxx-staging.kinsta.cloud,https://stg-xxx-staging.kinsta.cloud,stg-xxx-staging.kinsta.cloud, to: http://xxx.local
[2023-08-25 14:38:19.382] [info] [getDevKinstaPath] get DevKinsta path
[2023-08-25 14:38:19.383] [info] [isWslMode] check if docker runs on wsl mode
[2023-08-25 14:38:19.384] [info] [getDockerInfo] get Docker info
[2023-08-25 14:38:19.473] [info] [getDevKinstaPath] get DevKinsta path
[2023-08-25 14:38:19.474] [info] [isWslMode] check if docker runs on wsl mode
[2023-08-25 14:38:19.475] [info] [getDockerInfo] get Docker info
[2023-08-25 14:38:19.495] [info] [getDevKinstaPath] get DevKinsta path
[2023-08-25 14:38:19.496] [info] [isWslMode] check if docker runs on wsl mode
[2023-08-25 14:38:19.497] [info] [getDockerInfo] get Docker info
[2023-08-25 14:38:19.513] [info] [getDevKinstaPath] get DevKinsta path
[2023-08-25 14:38:19.513] [info] [isWslMode] check if docker runs on wsl mode
[2023-08-25 14:38:19.514] [info] [getDockerInfo] get Docker info
[2023-08-25 14:38:19.530] [info] [getDevKinstaPath] get DevKinsta path
[2023-08-25 14:38:19.531] [info] [isWslMode] check if docker runs on wsl mode
[2023-08-25 14:38:19.532] [info] [getDockerInfo] get Docker info
[2023-08-25 14:38:19.549] [info] [dockerUtil/getContainer] Get ‘devkinsta_fpm’ Docker container
[2023-08-25 14:38:19.685] [info] [ProgressIndicator] { isFailed: false, isOpen: true }
[2023-08-25 14:38:20.034] [info] [containerExec] Command ‘rm -Rf /www/kinsta/temp/backup/xxx.tar.gz’ on devkinsta_fpm finished with exit code 0
[2023-08-25 14:38:20.035] [info] [deleteSiteBackup] Deleted /www/kinsta/temp/backup/xxx.tar.gz successfully!
[2023-08-25 14:38:20.037] [info] [ipc/sync/pull] PULL site finished

Heya @diantonie :slight_smile:

Thank you for your reply and update.

I’ve tested the same to replicate (Pull and Push with selective files/folders - but still all files/folders were pushed/pulled). Though my colleague Alessandro couldn’t replicate it on Mac, and I couldn’t replicate the issue either with the DevKinsta version 2.11.0 on Linux Ubuntu 22.04 and on Windows 11 pro (without the WSL2 based engine enabled in Docker Desktop) either - but indeed, I could replicate the same reported issue on Windows 11 pro (when the WSL2 based engine was enabled in Docker Desktop).

Note that when switching from WSL 2 to Hyper-V (disabled WSL 2) or vice-versa (enabled WSL 2), the previous local sites’ contents and data would be removed! so please keep that in mind - and may want to perform manual backup first - to prevent just data loss (download/dump the Database to SQL file, and to zip the sites’ files/folders manually, etc.).

Looks like there might be a bug perhaps only when the WSL2 based engine is enabled (used).
Thank you for reporting this issue, and I will pass this information (as bug report) to our internal dev team, so they may want to check and investigate it. But we can’t tell or provide the ETA yet when it will be fixed (in the next DevKinsta version possibly).

Regards,
Agus

Hey @Agus @Alessandro

this issue still seems to persist. Is there any update from your side?

Best,
Kaya

@diantonie

Are you still experiencing this issue with the latest version of the app? I believe this problem has been resolved with the updated versions of DevKinsta.

Hey @Adrian_L

Thank you for your response. Yes I am experiencing these issues with the latest version of the app. I am on the version 2.13.4

When pulling from Kinsta an deselecting specific folders, these still get downloaded and overwritten in my local installation.

Best

Hello @diantonie :wave:

Can you please provide the main.log again so we can see if anything changed? We will forward it to our developers as well.

I deleted the log first, then I pulled from Kinsta, while excluding the themes folder. It was overwritten. Here is the main.log

[removed by support]

Hi @diantonie

I checked the main.log file and saw the following entry: ‘/wp-content/themes’ should be excluded from your Pull action.

[2024-10-31 14:33:57.418] [info] [SyncSiteDetails] Start syncing, excluded entries: [ '/wp-content/themes' ]

I also made a pull request from a default Kinsta site to replicate the issue, but it worked fine on my end. On my test, I added a newfile.txt file inside the twentytwentytwo theme folder and I excluded the folder from the Pull request, as shown in the screenshot below.

I am using the following versions on my machine:

OS: Windows 10 Pro - Hyper V (not WSL)
DevKinsta version: 2.13.4
Docker Desktop: 4.30.0

You might consider setting up a new site in DevKinsta for testing. Then, try to do a pull request again while excluding a specific folder or file. I’m not sure if this will make a difference, but please let us know how it goes!

Dear @Adrian_L

event though it should be excluded it still isn’t. It does not make any difference, which site I pull from Kinsta.

Also the problem is related to working with WSL2 and not Hyper V. Could you please try it there.

Best,
Kaya

Hi @diantonie

Thank you for the additional information. I can confirm that I can reproduce this issue when using WSL2 instead of Hyper-V on my Windows 10 PC with the latest version of DevKinsta. It appears that both the Push and Pull actions are affected. I have reported this to our development team. However, since development for DevKinsta is currently paused, I cannot provide a timeframe for when this issue will be resolved.

In the meantime, I can only suggest switching from the WSL2-based engine to Hyper-V in Docker Desktop >> General > (uncheck) Use WSL 2 based engine. Please note that switching from the WSL2-based engine to Hyper-V in Docker Desktop will result in the deletion of any existing local WordPress installations. I recommend creating a manual backup of any local sites you have and then importing them back after switching from WSL2 to Hyper-V.

Best,
Adrian