{"id":9670,"date":"2020-09-15T12:02:59","date_gmt":"2020-09-15T19:02:59","guid":{"rendered":"https:\/\/www.coretechnologies.com\/blog\/?p=9670"},"modified":"2024-03-07T11:50:43","modified_gmt":"2024-03-07T19:50:43","slug":"dropbox-stopped-copying-files","status":"publish","type":"post","link":"https:\/\/www.coretechnologies.com\/blog\/alwaysup\/dropbox-stopped-copying-files\/","title":{"rendered":"Q&#038;A: Why did Dropbox Stop Copying\/Synchronizing my Files?"},"content":{"rendered":"<div align=\"center\"><img loading=\"lazy\" decoding=\"async\" class=\"no-lazy-load\" src=\"\/blog\/images\/qa-dropbox-stopped-copying-files.png\" title=\"Q&#038;A: Dropbox stopped copying my files\" alt=\"Q&#038;A: Dropbox stopped copying my files\" border=\"0\" width=\"380\" height=\"160\" \/><\/div>\n<div class=\"blog-qa-question-box\">\n<img loading=\"lazy\" decoding=\"async\" class=\"no-lazy-load\" src=\"https:\/\/cdn.coretechnologies.com\/images\/quotes-transparent-21x21.webp\" width=\"21\" height=\"21\" \/>&nbsp;&nbsp;My client who has <a href=\"\/products\/AlwaysUp\/Apps\/RunDropboxAsAService.html\">AlwaysUp for Dropbox<\/a> running on his server informed me that his files stopped syncing.<\/p>\n<p>I created a test file in their folder that is supposed to be syncing and sure enough, it was not working. I checked the service in AlwaysUp and it was running. I tried restarting it and still nothing. I stopped the service and opened Dropbox and it is now syncing.<\/p>\n<p>Please inform me of what I need to do from here. Thanks.<\/p>\n<p align=\"right\">&mdash; Kurt<\/p>\n<\/div>\n<p>Hi Kurt, sorry to hear of the trouble!<\/p>\n<p>In response, our technical team took the latest version of Dropbox (<a href=\"https:\/\/www.dropboxforum.com\/t5\/Dropbox-desktop-client-builds\/Stable-Build-105-4-651\/td-p\/452100\" target=\"_blank\" rel=\"noopener noreferrer\">Stable Build 105.4.651<\/a>) for a test drive on our Windows Server 2019 machine. Sure enough, file synchronization stalled when running as a Windows Service in Session 0.<\/p>\n<p>Our first instinct was to apply the time-tested advice from <a href=\"\/blog\/alwaysup\/dropbox-stopped-syncing\/\">this troubleshooting article<\/a>. We carefully ensured that:<\/p>\n<ol>\n<li>\n<p>Dropbox.exe wasn&#8217;t updating itself (because frequent automatic updates can thwart 24\/7 operation)<\/li>\n<li>\n<p>The Dropbox sync folder was accessible<\/li>\n<li>\n<p>Dropbox was not trying to get our attention (by showing a notification or confirmation prompt)<\/li>\n<\/ol>\n<p>Yet after doing all that the problem remained!<\/p>\n<p>So, we rolled up our technical sleeves, unplugged the phone, paused the email and dived into Dropbox. Here&#8217;s what we observed.<\/p>\n<h2 class=\"blog-caption\">Dropbox synchronized files at first but stalled after a few minutes<\/h2>\n<p>Our testers employ a simple test plan to validate basic file synchronization functionality. It goes like this:<\/p>\n<ol>\n<li>\n<p>Start Dropbox from AlwaysUp (in Session 0)<\/li>\n<li>\n<p>Wait 1-2 minutes, to allow the program to initialize and get its bearings<\/li>\n<li>\n<p>Copy a new file into the PC&#8217;s Dropbox folder<\/li>\n<li>\n<p>Wait up to 1 minute, for Dropbox.exe to recognize the new file and copy it up to the cloud<\/li>\n<li>\n<p>Check that the new file is listed on Dropbox.com<\/li>\n<\/ol>\n<p>When we followed the process, step 5 failed. <b>The new file did not appear on the website.<\/b><\/p>\n<p>So, we tried again. This time, we noticed something interesting. Dropbox synchronized all pending files when it started, but it would not copy the new file we added. Apparently, synchronization worked at the outset but &#8220;broke&#8221; after a few minutes. Bizarre!<\/p>\n<p>Upon closer examination &mdash; using Microsoft&#8217;s excellent <a href=\"\/blog\/windows-services\/essential-tools-for-windows-services-process-explorer\/\">Process Explorer<\/a> &mdash; we observed the Dropbox application&#8217;s network connections behaving strangely. Let me explain.<\/p>\n<p>A minute after Dropbox starts, the application opens several connections back to &#8220;home base&#8221;. Here you can see six sockets in the <a href=\"https:\/\/www.googlecloudcommunity.com\/gc\/Cloud-Product-Articles\/TCP-states-explained\/ta-p\/78462\" target=\"_blank\" rel=\"noopener noreferrer\">ESTABLISHED state<\/a> linked to multiple cloud servers on the <a href=\"https:\/\/ipinfo.io\/AS19679\/162.125.0.0\/16\" target=\"_blank\" rel=\"noopener noreferrer\">162.125.*.* network<\/a>:<\/p>\n<div align=\"center\"><a href=\"\/blog\/images\/dropbox-network-connections-good.png\" class=\"zoomPopup\" title=\"Dropbox TCP\/IP connections\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"image-padding\" src=\"\/blog\/images\/dropbox-network-connections-good.png\" title=\"Dropbox TCP\/IP connections (click to enlarge)\" alt=\"Dropbox TCP\/IP connections\" border=\"0\" width=\"520\" \/><\/a><\/div>\n<p>A few minutes later, five of the connections have vanished and the final link is dead on its feet (in the terminal <a href=\"https:\/\/www.googlecloudcommunity.com\/gc\/Cloud-Product-Articles\/TCP-states-explained\/ta-p\/78462\" target=\"_blank\" rel=\"noopener noreferrer\">CLOSE_WAIT state<\/a>):<\/p>\n<div align=\"center\"><a href=\"\/blog\/images\/dropbox-network-connections-bad.png\" class=\"zoomPopup\" title=\"Dropbox TCP\/IP connections - Closed\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"image-padding\" src=\"\/blog\/images\/dropbox-network-connections-bad.png\" title=\"Dropbox TCP\/IP connections - Closed (click to enlarge)\" alt=\"Dropbox TCP\/IP connections - Closed\" border=\"0\" width=\"520\" \/><\/a><\/div>\n<p>At this point, Dropbox is unable to synchronize any files because it <b>doesn&#8217;t have a functioning connection to the back-end servers<\/b>.<\/p>\n<h2 class=\"blog-caption\">Applying the &#8220;QT_OPENGL&#8221; fix restored synchronization<\/h2>\n<p>About a year ago, we experienced a puzzling situation where Dropbox would hang when started as a Windows Service. <a href=\"\/blog\/alwaysup\/dropbox-not-working\/\">This post documents the problem<\/a> and <a href=\"\/blog\/dropbox-software\/how-to-fix-opengl-problem\/\">this post describes the fortuitous fix<\/a>.<\/p>\n<p>Back then, Dropbox wouldn&#8217;t process any files at all &mdash; very different from today&#8217;s situation, where the program starts strong but quickly goes AWOL.<\/p>\n<p><b>Nevertheless, a very similar fix works!<\/b><\/p>\n<p>Once we set the &#8220;QT_OPENGL&#8221; <b>system<\/b> environment variable to &#8220;software&#8221; (as described below), Dropbox seemed to maintain its server connections indefinitely.<\/p>\n<p>To verify, we wrote a simple script that adds a new file to the Dropbox sync folder every 30 seconds. We let it run for six hours. During that time, Dropbox was able to upload each file to the cloud and every one showed up properly on the website.<\/p>\n<p>Here is a screenshot of the test while in progress:<\/p>\n<div align=\"center\"><a href=\"\/blog\/images\/dropbox-copy-test-running.png\" class=\"zoomPopup\" title=\"Dropbox copy test in progress\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"image-padding\" src=\"\/blog\/images\/dropbox-copy-test-running.png\" title=\"Dropbox copy test in progress (click to enlarge)\" alt=\"Dropbox copy test in progress\" border=\"0\" width=\"520\" \/><\/a><\/div>\n<h2 class=\"blog-caption\">How to apply the &#8220;QT_OPENGL&#8221; fix<\/h2>\n<p>Please perform this step-by-step process to resume your client&#8217;s 24\/7 service:<\/p>\n<div class=\"highlight-box-green\">\n<ol>\n<li>\n<p>Start a Windows command prompt as an Administrator (an <a href=\"\/WindowsServices\/FAQ.html#ElevatedPrompt\" target=\"_blank\" rel=\"noopener noreferrer\">elevated command prompt<\/a>)<\/p>\n<\/li>\n<li>\n<p>Run this command:<\/p>\n<blockquote><p><b>SETX \/M QT_OPENGL software<\/b><\/p><\/blockquote>\n<div align=\"center\"><a href=\"\/blog\/images\/set-qt_opengl-system-environment-variable.png\" class=\"zoomPopup\" title=\"SETX \/M QT_OPENGL software\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"image-padding\" src=\"\/blog\/images\/set-qt_opengl-system-environment-variable.png\" title=\"SETX \/M QT_OPENGL software (click to enlarge)\" alt=\"SETX \/M QT_OPENGL software\" border=\"0\" ><\/a><\/div>\n<\/li>\n<li>\n<p>Close the command prompt.<\/p>\n<\/li>\n<li>\n<p>Stop and start your Dropbox entry in AlwaysUp.<\/p>\n<\/li>\n<\/ol>\n<\/div>\n<p style=\"margin-top:30px;\">\nYou can confirm that the fix was applied by looking for the QT_OPENGL value in your <b>system<\/b> environment variables (available through the Control Panel):<\/p>\n<div align=\"center\"><a href=\"\/blog\/images\/confirm-qt_opengl-system-environment-variable.png\" class=\"zoomPopup\" title=\"QT_OPENGL System Environment Variable\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"image-padding\" src=\"\/blog\/images\/confirm-qt_opengl-system-environment-variable.png\" title=\"QT_OPENGL System Environment Variable (click to enlarge)\" alt=\"QT_OPENGL System Environment Variable\" border=\"0\" width=\"520\"><\/a><\/div>\n<\/p>\n<p style=\"margin-top:30px;\">\nPlease be sure to <a href=\"\/support\/\">get in touch<\/a> if you notice any other misbehavior!\n<\/p>\n<div align=\"center\">\n<div class=\"cta-button-1\">\n<table role=\"presentation\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" align=\"left\">\n<tbody>\n<tr>\n<td align=\"center\"><a href=\"\/blog\/tag\/dropbox\/\" title=\"More about running Dropbox as a Windows Service\"><span><nobr>Read more articles about Dropbox&#8230;<\/nobr><\/span><\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<!-- relpost-thumb-wrapper --><div class=\"relpost-thumb-wrapper\"><!-- filter-class --><div class=\"relpost-thumb-container\"><style>.relpost-block-single-image, .relpost-post-image { margin-bottom: 10px; }<\/style><h3>You may also like...<\/h3><div style=\"clear: both\"><\/div><div style=\"clear: both\"><\/div><!-- relpost-block-container --><div class=\"relpost-block-container relpost-block-column-layout\" style=\"--relposth-columns: 3;--relposth-columns_t: 2; --relposth-columns_m: 2\"><a href=\"https:\/\/www.coretechnologies.com\/blog\/alwaysup\/register-no-internet\/\"class=\"relpost-block-single\" ><div class=\"relpost-custom-block-single\"><img decoding=\"async\" loading=\"lazy\" class=\"relpost-block-single-image\" alt=\"Q&amp;A: Can I Activate\/Register AlwaysUp Without an Internet Connection?\"  src=\"https:\/\/www.coretechnologies.com\/blog\/wp-content\/uploads\/no-internet-150x150.png\" style=\"aspect-ratio:1\/1\" style=\"aspect-ratio:1\/1\"><\/img><div class=\"relpost-block-single-text\"  style=\"height: 75px;font-family: Arial;  font-size: 12px;  color: #333333;\"><h2 class=\"relpost_card_title\">Q&amp;A: Can I Activate\/Register AlwaysUp Without an Internet Connection?<\/h2><\/div><\/div><\/a><a href=\"https:\/\/www.coretechnologies.com\/blog\/company\/secure-software-practices\/\"class=\"relpost-block-single\" ><div class=\"relpost-custom-block-single\"><img decoding=\"async\" loading=\"lazy\" class=\"relpost-block-single-image\" alt=\"Q&amp;A: How Do You Make Sure Your Software Is Secure?\"  src=\"https:\/\/www.coretechnologies.com\/blog\/wp-content\/uploads\/security-practices-150x150-1.png\" style=\"aspect-ratio:1\/1\" style=\"aspect-ratio:1\/1\"><\/img><div class=\"relpost-block-single-text\"  style=\"height: 75px;font-family: Arial;  font-size: 12px;  color: #333333;\"><h2 class=\"relpost_card_title\">Q&amp;A: How Do You Make Sure Your Software Is Secure?<\/h2><\/div><\/div><\/a><a href=\"https:\/\/www.coretechnologies.com\/blog\/alwaysup\/python-windows-service-output\/\"class=\"relpost-block-single\" ><div class=\"relpost-custom-block-single\"><img decoding=\"async\" loading=\"lazy\" class=\"relpost-block-single-image\" alt=\"Q&amp;A: How Do I See the Output\/Traceback From my Python Windows Service?\"  src=\"https:\/\/www.coretechnologies.com\/blog\/wp-content\/uploads\/console-output-150x150.png\" style=\"aspect-ratio:1\/1\" style=\"aspect-ratio:1\/1\"><\/img><div class=\"relpost-block-single-text\"  style=\"height: 75px;font-family: Arial;  font-size: 12px;  color: #333333;\"><h2 class=\"relpost_card_title\">Q&amp;A: How Do I See the Output\/Traceback From my Python Windows Service?<\/h2><\/div><\/div><\/a><\/div><!-- close relpost-block-container --><div style=\"clear: both\"><\/div><\/div><!-- close filter class --><\/div><!-- close relpost-thumb-wrapper -->","protected":false},"excerpt":{"rendered":"<p>&nbsp;&nbsp;My client who has AlwaysUp for Dropbox running on his server informed me that his files stopped syncing. I created a test file in their folder that is supposed to be syncing and sure enough, it was not working. I &hellip; <a href=\"https:\/\/www.coretechnologies.com\/blog\/alwaysup\/dropbox-stopped-copying-files\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":9714,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[26,69,221,112,127],"class_list":["post-9670","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-alwaysup","tag-alwaysup-tag","tag-dropbox","tag-dropbox-fix","tag-opengl","tag-qa"],"_links":{"self":[{"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/9670","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/comments?post=9670"}],"version-history":[{"count":52,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/9670\/revisions"}],"predecessor-version":[{"id":12425,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/9670\/revisions\/12425"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/media\/9714"}],"wp:attachment":[{"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/media?parent=9670"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/categories?post=9670"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/tags?post=9670"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}