How to fix “semaphore timeout period has expired” when copying some specific JavaScript files to a server share on the same network?

For the past month, on the network at work, we have encountered “semaphore timeout period has expired” errors when copying some specific JavaScript files to a server (most files copy successfully without any issues).

The problem was first encountered when publishing a project from Visual Studio 2022 on a Windows 10 workstation to an internal web server. The same problem can be reproduced when using COPY from a command prompt, or ROBOCOPY from a command prompt, or doing a copy-and-paste operation between File Explorer windows. It can be reproduced from several different workstations, and copying to any of several different servers on the network. It can also be reproduced copying from one workstation to another workstation. It can be reproduced on multiple workstations (all running Windows 10) and multiple servers (running Windows Server 2012 or 2016). The machines are all up-to-date with Windows updates, network drivers, etc.

The problem is a failure to copy ONLY some specific files from a workstation to a server on the same work network.

This issue started on (or possibly a few days before) June 10th this year; the timing does not appear to be related to the installation of any Windows updates on the client machines. I have contacted the network, server, and security teams at work; they have all investigated, but nobody can find a reason for this error.

I have searched for similar issues (and searched for several of the error messages that have been logged in Event Viewer on clients and servers), both on StackOverflow and generally on the web, and read almost anything I could find. I haven’t yet found anything that has helped.

The error message displayed on the client is typically “the semaphore timeout period has expired” (after the copy operation has seemed to hang for a minute or two); although this message may just be a symptom of an underlying network issue or something blocking the file copy.

The error only occurs for JavaScript files, and only for a few specific JavaScript files; most JavaScript files copy successfully. The JS files that fail to copy (in my testing) are unmodified third-party (Bootstrap-related) files.

For the “.js” files that fail to copy, if I change the file extension to “.txt” (with no change to the content), then the copy of that file succeeds.

For the “.js” files that fail to copy, if I edit the content of that file (changing only comment sections in the file) and save it (with the same name and extension), then the copy of that file succeeds.

We have tested this while the security group temporarily disabled the anti-virus and the firewall on both the workstation and server used for the test; and the problem still occurs with any or all of these disabled.

I have also tried this with SMBDirect disabled, but that didn’t help either.

We captured Wireshark logs on both the client and server during one of these failed copy sessions, but analysis of the logs by someone on the network team didn’t provide any helpful clues.

When this error occurs, there are several SMB-related errors logged in the local Event Viewer logs on both the client and server machines.

The client logs a series of about 40-50 repeated errors and warnings as it seems to repeatedly attempt to reconnect, such as:

  • DeviceLanmanRedirector: A request timed out because there was no response from the server. The server is responding over TCP but not over SMB.
  • The connection was terminated due to one or more IO request timeouts. This indicates a problem with the underlying network or the storage stack on the remote server

The server only logs 2 events:

  • Event 1017: Handle scavenged. The server closed a handle that was previously reserved for a client after 60 seconds.
  • Event 1016: Reopen failed. The client attempted to reopen a continuously available handle, but the attempt failed. This typically indicates a problem with the network or underlying file being re-opened.

Does anyone have suggestions for articles I could read about this, or specific troubleshooting, or any network settings I should check, or anything else to investigate for this issue?

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật