Problems with PSQL and Windows 10 Release 1803

Similar documents
UPDATING SOCRATES Version Build May 2018

Capturing Network Traffic With Wireshark 2

EaseUS Todo PCTrans user guide. EaseUS Todo PCTrans User guide

Opening Microsoft Visual Studio. On Microsoft Windows Vista and XP to open the visual studio do the following:

SWCS 4.2 Server Manager Users Guide Revision /22/2012 Solatech, Inc.

QuickBooks 2008 Software Installation Guide

Running Java Programs

How To Reinstall Grub In Windows 7 Without Losing Data And Programs

OLI Engine in Aspen Hysys

ValuePRO Tutorial Internet Explorer 8 Configuration

What is version control? (discuss) Who has used version control? Favorite VCS? Uses of version control (read)

A short guide to learning more technology This week s topic: Windows 10 Tips

IBM BigFix Version 9.5. WebUI Administrators Guide IBM

Installation Assistance Windows/Microsoft Updates Updating from Spectra 7.x Upgrading from Spectra 6.x... 7

How to update Windows and Office offline

MULTIPLE BLENDER INSTANCES

Chapter 1 - What s in a program?

How to build Simbody 2.2 from source on Windows

2SKILL. Variables Lesson 6. Remembering numbers (and other stuff)...

VP- X Pro & VP- X Sport

EGUIDE - RUNNING ON BORROWED TIME: WHY BUSINESSES MUST FINALLY LET GO OF WINDOWS XP

EaseUS Todo PCTrans User Guide

Freshservice Discovery Probe User Guide

Upgrading Your Geant4 Release

Control Flow. COMS W1007 Introduction to Computer Science. Christopher Conway 3 June 2003

Keep Track of Your Passwords Easily

How to: Windows XP system restore Windows update error message Microsoft Security Essentials manual update download Inbox Scanpst.exe.

INSTALLING AN SSH / X-WINDOW ENVIRONMENT ON A WINDOWS PC. Nicholas Fitzkee Mississippi State University Updated May 19, 2017

CTECS Connect 2.2 Release Notes December 10, 2009

Storing Your Exercise Files

INSTALLATION AND CONFIGURATION

PROSIM and Its Installation Guide

SQL Server Express 2017 Installation Guide. By Engin Calisir, 06/22/2018

getting STARTed Virtual Coin Cabinet 2v9 beta COIN database SOFTWARe STePHeN HUSTON FileMaker Pro developer .A FIleMAKeR PRO 10 RUNTIMe SOlUTION

PAC Project 8.5 Release Notes. PAC Project 8.5 Release Notes. Welcome to PAC Project 8.5. PAC Project Basic. PAC Project Professional

Speed Up Windows by Disabling Startup Programs

PropertyBoss Upgrade

For Volunteers An Elvanto Guide

Your . A setup guide. Last updated March 7, Kingsford Avenue, Glasgow G44 3EU

Validating Your PSQL Database Backups

5 REASONS YOUR BUSINESS NEEDS NETWORK MONITORING

Cache Coherence. CMU : Parallel Computer Architecture and Programming (Spring 2012)

Navigating and Managing Files and Folders in Windows XP

Mehran Sahami Handout #5 CS 106A September 26, 2018 Downloading Eclipse

LIBF e-test. Installation Guide. July 2016 Version 2.3

SWCS 4.2 Backup Agent User s Guide Revision /20/2012 Solatech, Inc.

Rasteriser, core.ini and Pribluda

Installing or Patching Your System To Pervasive PSQL v10.31

Download Free Pictures & Wallpaper from the Internet

Blackfin Online Learning & Development

Get to know your Modem 1. Modem Technical Overview 3

Can Delete Sharing Folder Windows 7 Access Denied

Installing Ubuntu Server

Getting started with System Center Essentials 2007

Symantec Endpoint Protection, Symantec Endpoint Protection Small Business Edition, and Symantec Network Access Control 12.1.

Bootable duplicate: Create a bootable duplicate of your startup volume on an external hard drive, and update that duplicate regularly.

Laboratory 1: Eclipse and Karel the Robot

Cache introduction. April 16, Howard Huang 1

Lecture 12: Demand Paging

Please watch the video below for step-by-step installation instructions.

SAS Installation via the Client-Server Image (CAHNRS Site License)

A Guide to Installing OLI Software

Prometric is pleased to announce the release of a brand new lockdown browser to be installed in all workstations that deliver DSST exams.

Windows version involved: Windows 7, Windows Server 2008 R2.

Hello World! Computer Programming for Kids and Other Beginners. Chapter 1. by Warren Sande and Carter Sande. Copyright 2009 Manning Publications

Version June 2016

Adminsoft Accounts Basic User Guide - Installation

Installing FileMaker Pro 11 in Windows

COMMON WINDOWS 10 QUESTIONS & ANSWERS

Fedora Core: Made Simple

Windows 10 Hardware and Software

Agilent MassHunter Workstation Software Offline Qualitative and Quantitative Analysis

Computer Upgrades CAUTION

Getting Started Guide. Installation and Setup Instructions. For version Copyright 2009 Code 42 Software, Inc. All rights reserved

This video is part of the Microsoft Virtual Academy.

Using X-Particles with Team Render

Optimal Browser Settings Disable File Caching:

Configuring Directories in an ICVERIFY Master / Substation Setup

OPEN THE HOTLINE CLIENT

Autodesk DirectConnect 2010

Getting Started with OpenDSS

CSE 373 OCTOBER 23 RD MEMORY AND HARDWARE

Launcher Technical Details. Details of how Market Insight is used with the MI V3 Launcher

Manually Java 7 Update Bit Windows 7

Migrating to WebGUI on VMWare

When Applications Crash Part II - WER A two part guide to how any ISV can find and fix crashes that occur at customer sites.

Manually Iphone 4 Update Ios 7 Problems After >>>CLICK HERE<<<

First C or C++ Lab Paycheck-V1.0 Using Microsoft Visual Studio

2

About the Presentations

Verifying Cache Coherence in ACL2. Ben Selfridge Oracle / UT Austin

Installation notes ICECUP, ICE-GB and DCPSE

Symantec Endpoint Protection Installation Guide

Safe Mode: Solve Startup Problems & Crashes S 3/1. Solve (Almost) Any Problem Your Computer May Have

Installing Virtual Printers

VERITAS StorageCentral 5.2

Quickly Repair the Most Common Problems that Prevent Windows XP from Starting Up

Using GitHub to Share with SparkFun a

IBM BigFix Version 9.5. WebUI Administrators Guide IBM

A+ Guide to Managing and Maintaining your PC, 6e. Chapter 2 Introducing Operating Systems

Transcription:

Problems with PSQL and Windows 10 Release 1803 A White Paper From For more information, see our web site at

Problems with PSQL and Windows 10 Release 1803 Last Updated: June 26, 2018 (See Last Page) In April, Microsoft released a new version of Windows 10, known as Release 1803, and this release has been slowly rolling out to users over the last few weeks. This particular release of the popular operating system has been particularly rife with issues, and we do recommend putting off this release as long as possible, in the hopes that they will be fixing some of the bigger issues. One issue is particularly nasty this release can prevent database applications, such as those built on PSQL, to fail to make any outbound network connections if they are loaded from a remote server. This paper explains the problem in more detail, and provides several possible workarounds. Symptoms of the Problem Users will generally start to complain when they launch an application (after upgrading to release 1803) and the application fails. With PSQL applications, this can cause Status 3103, 94, or other errors. Some applications may post these status codes, but others may simply indicate that they cannot contact the database. Other applications may simply refuse to do anything or may crash completely. The wide variety of possible symptoms makes this issue particularly difficult to resolve. The Root Cause of the Problem The real cause of the problem is a change in the new release possibly in the OS itself, but more likely in the Windows Defender Firewall that prevents certain applications from opening up ANY network connections. However, it is much more complicated than this simple description. To better understand this issue, we have to discuss some networking acronyms first. In older versions of Windows networking, Microsoft used a communications protocol for file sharing called Server Message Block, or SMB. The SMB protocol is the only option for systems running on Windows XP, Windows Server 2003, or older. With Windows Vista and Windows Server 2008, Microsoft improved the SMB protocol, adding some features including directory entry caching, and called it SMB2. Sadly, the caching feature was slightly less than stable, and many applications had problems with this particular implementation, causing many users to eschew the SMB2 protocol and disable it on their systems. Fast forward to Windows 8 and Windows Server 2012, and Microsoft released SMB3, which addressed those caching issues, making SMB3 much more reliable. Now, with the progress of the OS, each version of Windows has its own base version of SMB, but the systems are typically backward-compatible, meaning that if a Windows 8 machine talks to a Windows Server 2012 machine, they will use SMB3, but if it talks to a Windows Server 2008 machine, it will use SMB2 instead. Along that same line, a Windows XP workstation (which ONLY understands SMB) will use SMB to talk to any server OS, and a machine running ANY OS will only be able to use SMB to talk to a Windows Server 2003 machine. Until now, this hasn t caused any issues. For reasons not yet known it could be a simple bug, closing a security hole, or simply a desire to force users to upgrade to a new operating system Microsoft is now detecting when an application executable file is loaded across an SMB file sharing connection. When such an event occurs, the executable program is completely blocked from opening up ANY network sockets. As you can Page 2 of 5

imagine, network connections are used by database applications to communicate with the database engine. Network connections are ALSO used to contact other services, such as fax services, Email systems, web sites, and more much of what we use computers for today! Note that this issue does NOT arise if you are loading the EXE from an SMB2 or SMB3 network connection, or if you are running the EXE from a local hard disk! This means that this issue will impact users with older file servers (or NAS devices) running applications that are exclusively stored on the file server and run across the network. (A majority of older, network-based applications do exactly this!) Because of the specificity of the issue, it can seem that some applications work just fine, while others strangely fail for no other obvious reason. Confirming That You Have the Problem Obviously, this issue ONLY applies to Windows 10 1803 for right now, but this could change in the future. What makes it difficult to diagnose is that there is no easy way to see what protocol you are using to load an EXE. One way to check is to download a tool called Wireshark (www.wireshark.org), grab a network capture while running the EXE file, and look for SMB as the protocol. However, there is an easier way. Goldstar Software has built a simple test application called Test1803 that attempts to open up a network socket and displays an error if it fails. You can download this tool from this web page: /tools.asp To use it, simply open up the ZIP file and copy the TEST1803.EXE file over to your file server where your failing application resides. The, from a command prompt on your Windows 10 machine, run the TEST1803.EXE application from the server. You will get an instant notification as to whether you can open a socket or not. Working Around the Problem Once you have confirmed that your system is impacted by this problem, you have to find a solution. Here are several possible workarounds and solutions that we ve found thus far. 1. Wait for Microsoft to Fix It: Since we don t know yet if this is a bug or an intentional change, you could try holding your breath and hoping that it goes away. However, you are probably reading this because your application is failing, so this likely won t be viable. As of June 12, 2018, Microsoft has confirmed this issue (https://support.microsoft.com/en-nz/help/4284835) and is supposed to be working on a solution: Page 3 of 5

2. Roll Back to Release 1709: The previous Windows 10 update did not exhibit this issue, so rolling back your system to a previous version (and delaying the update indefinitely) is a simple option. Sadly, Microsoft does not allow you to delay updates forever, and it may slip it in again when you are not paying attention, so you may have to roll back several times. 3. Upgrade Your File Server: If you upgrade the server on which the shared application is installed to a newer OS (that supports SMB2 or newer), then you ll be OK. This option can be quite expensive and time consuming, though, and is not a good quick fix, but it is certainly recommended by Microsoft, who would love to have more licensing dollars. 4. Enable SMB2: If you are already on Windows Server 2008 or newer, but you have disabled SMB2 because of the caching options, try enabling it again. Note, though, that this may just change you back to the cache issues from yesteryear. Better yet, make sure that ALL of your workstations are Windows 8+ and that you have Server 2012+, and stick with SMB3. 5. Move Your Application: If you move your application to a different location either on a newer file server, NAS, or even to a local hard disk volume then you can easily avoid the problem. 6. Replace Windows Defender Firewall: This is the most interesting option, and indicates that the issue may be with Defender instead of the core OS itself. Simply install a third-party firewall solution, and the Defender firewall will be disabled. (Some have reported that Avast Free AntiVirus is a good option.) Note that if you have Defender AV disabled, but Defender Firewall ENABLED, then you may still experience the issue. It is also important to note that just disabling the Defender firewall is NOT enough! A Possible Fix? On June 26, 2018, Microsoft released a new Windows 10 operating system, Build 17134.137, which is available through patch KB4284848. A full description of this update can be found at https://support.microsoft.com/en-nz/help/4284848/windows-10-update-kb4284848, but the important change appears to be this one: Addresses an issue where some users may receive an error when accessing files or running programs from a shared folder using the SMBv1 protocol. The error is "An invalid argument was supplied". Initial reports from users indicates that this issue IS FIXED after applying the patch! You can use Windows Update to apply these fixes, or you can download the 600+MB update manually from http://www.catalog.update.microsoft.com/search.aspx?q=kb4284848 if you prefer. I have not yet tested this myself, but hope to do that in the next few days as time allows. Finding More Help If you have other problems getting this to work, I recommend first contacting Microsoft to express your displeasure in this change. However, that isn t likely to help get you up and running right away. If you need some additional hand-holding, Goldstar Software may be able to assist you as well. You can contact us at 1-708-647-7665 or via the web at. Page 4 of 5

Appendix A: Source Code for Test1803 In the interest of full disclosure, I have included the source code for Test1803 here, which was built with Microsoft Visual Studio 2013. If you don t trust running an application from a third party, then you can certainly build your own testing tool using these same functions. // Test1803.cpp : Defines the entry point for the console application. // #include "StdAfx.h" #pragma comment( lib, "wsock32.lib" ) int _tmain(int argc, _TCHAR* argv[]) { WSADATA WsaData; printf("starting my test run now...\n"); WSAStartup(MAKEWORD(2, 2), &WsaData); int sockethandle = socket(af_inet, SOCK_DGRAM, IPPROTO_UDP); if (sockethandle > 0) //Only continue if no error! printf("call to socket succeeded! You are OK running database applications from this location.\n.", WSAGetLastError()); else printf("call to socket failed with Status %d. You should not run database applications from this location.\n", WSAGetLastError()); WSACleanup(); return 0; } Page 5 of 5