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