Dpl: "The system cannot find the path specified" error on Windows

Created on 25 Apr 2018  路  5Comments  路  Source: travis-ci/dpl

When I run dpl on my Windows PC, I get "The system cannot find the path specified" errors. Happens in both cmd and PowerShell.

PS C:\Users\danny\AppData\Local\Temp\dpl\Dart-Code> dpl --provider="s3" --access-key-id="AAAAAAAAAAAAAAAAAAAAA" --secret-access-key="AAAAAAAAAAAAAAAAA
AAAA" --bucket="test-results.dartcode.org" --skip_cleanup="true" --local-dir="logs" --upload-dir="logs" --acl="public_read"
Installing deploy dependencies
The system cannot find the path specified.
The system cannot find the path specified.
Preparing deploy
Logging in with Access Key: ****************AAAA
Deploying application
Beginning upload of 1 files with 5 threads.
#<Thread:0x000000000e0f5510@M:/Apps/Ruby/lib/ruby/gems/2.5.0/gems/dpl-s3-1.9.6/lib/dpl/provider/s3.rb:82 run> terminated with exception (report_on_exception is true):
Traceback (most recent call last):
        3: from M:/Apps/Ruby/lib/ruby/gems/2.5.0/gems/dpl-s3-1.9.6/lib/dpl/provider/s3.rb:91:in `block (2 levels) in upload_multithreaded'
        2: from M:/Apps/Ruby/lib/ruby/gems/2.5.0/gems/dpl-s3-1.9.6/lib/dpl/provider/s3.rb:124:in `content_data_for'
        1: from M:/Apps/Ruby/lib/ruby/gems/2.5.0/gems/dpl-1.9.6/lib/dpl/provider.rb:278:in `encoding_for'
M:/Apps/Ruby/lib/ruby/gems/2.5.0/gems/dpl-1.9.6/lib/dpl/provider.rb:278:in ``': No such file or directory - file 'test_log.txt' (Errno::ENOENT)
Traceback (most recent call last):
        3: from M:/Apps/Ruby/lib/ruby/gems/2.5.0/gems/dpl-s3-1.9.6/lib/dpl/provider/s3.rb:91:in `block (2 levels) in upload_multithreaded'
        2: from M:/Apps/Ruby/lib/ruby/gems/2.5.0/gems/dpl-s3-1.9.6/lib/dpl/provider/s3.rb:124:in `content_data_for'
        1: from M:/Apps/Ruby/lib/ruby/gems/2.5.0/gems/dpl-1.9.6/lib/dpl/provider.rb:278:in `encoding_for'
M:/Apps/Ruby/lib/ruby/gems/2.5.0/gems/dpl-1.9.6/lib/dpl/provider.rb:278:in ``': No such file or directory - file 'test_log.txt' (Errno::ENOENT)
PS C:\Users\danny\AppData\Local\Temp\dpl\Dart-Code>
stale windows

All 5 comments

It's caused by the call to file '#{path}' which fails on Windows (there's no `file).

Is dpl expected to work on Windows?

Ah, I see the issue now. Indeed, your analysis appears correct.

Up to this point, we have not considered execution on Windows, so there are many places where dpl would fail to run on Windows.

It actually seems to upload fine (and even sets the content types) despite this:

dpl --provider=s3 --bucket="test-results.dartcode.org" --skip_cleanup="true" --local-dir=".test_results" --upload-dir="logs" --acl=public_read

The system cannot find the path specified.
The system cannot find the path specified.
Logging in with Access Key: ****************ZSKQ
Beginning upload of 15 files with 5 threads.
uploading "not_activated_flutter_create_stable_stable.xml" with {:content_type=>"application/xml", :acl=>"public-read"}
uploading "not_activated_flutter_create_stable_insiders.xml" with {:content_type=>"application/xml", :acl=>"public-read"}
uploading "multi_root_upgraded_stable_stable.xml" with {:content_type=>"application/xml", :acl=>"public-read"}
uploading "not_activated_flutter_create_dev_stable.xml" with {:content_type=>"application/xml", :acl=>"public-read"}
uploading "multi_root_upgraded_stable_insiders.xml" with {:content_type=>"application/xml", :acl=>"public-read"}
uploading "multi_root_upgraded_dev_stable.xml" with {:content_type=>"application/xml", :acl=>"public-read"}
uploading "multi_root_stable_stable.xml" with {:content_type=>"application/xml", :acl=>"public-read"}
uploading "multi_root_stable_insiders.xml" with {:content_type=>"application/xml", :acl=>"public-read"}
uploading "multi_root_dev_stable.xml" with {:content_type=>"application/xml", :acl=>"public-read"}
uploading "flutter_only_stable_stable.xml" with {:content_type=>"application/xml", :acl=>"public-read"}
uploading "flutter_only_stable_insiders.xml" with {:content_type=>"application/xml", :acl=>"public-read"}
uploading "flutter_only_dev_stable.xml" with {:content_type=>"application/xml", :acl=>"public-read"}
uploading "dart_only_stable_stable.xml" with {:content_type=>"application/xml", :acl=>"public-read"}
uploading "dart_only_stable_insiders.xml" with {:content_type=>"application/xml", :acl=>"public-read"}
uploading "dart_only_dev_stable.xml" with {:content_type=>"application/xml", :acl=>"public-read"}
Installing deploy dependencies
Preparing deploy

I don't know if the two errors mean there are two missing files, but the counts all match up with the Linux/MAC ones. As far as I can tell, the error isn't fatal (it's just rather confusing).

The failure means that we couldn't figure out the encoding data for the files you are uploading. The execution continues, and MIME types are found for your .xml files, so everything appears fine.

Thanks for contributing to this issue. As it has been 90 days since the last activity, we are automatically closing the issue. This is often because the request was already solved in some way and it just wasn't updated or it's no longer applicable. If that's not the case, please do feel free to either reopen this issue or open a new one. We'll gladly take a look again! You can read more here: https://blog.travis-ci.com/2018-03-09-closing-old-issues

Was this page helpful?
0 / 5 - 0 ratings