fastlane: ERROR - Crashlytics Developer Tools error. java.io.FileNotFoundException: /tmp/changelog20160928-32826-b1gtf0 (No such file or directory)

New Issue Checklist

Issue Description

Complete output when running fastlane, including the stack trace and command used
ERROR - Crashlytics Developer Tools error.
java.io.FileNotFoundException: /tmp/changelog20160928-32826-b1gtf0 (No such file or directory)
    at java.io.FileInputStream.open0(Native Method)
    at java.io.FileInputStream.open(FileInputStream.java:195)
    at java.io.FileInputStream.<init>(FileInputStream.java:138)
    at com.google.common.io.Files$FileByteSource.openStream(Files.java:126)
    at com.google.common.io.Files$FileByteSource.openStream(Files.java:116)
    at com.google.common.io.ByteSource$AsCharSource.openStream(ByteSource.java:435)
    at com.google.common.io.CharSource.read(CharSource.java:162)
    at com.google.common.io.Files.toString(Files.java:367)
    at com.crashlytics.tools.android.DeveloperTools.getPropertyValueOrValueFromPropertyPath(DeveloperTools.java:743)
    at com.crashlytics.tools.android.DeveloperTools.processProperties(DeveloperTools.java:662)
    at com.crashlytics.tools.android.DeveloperTools.processArgsInternal(DeveloperTools.java:348)
    at com.crashlytics.tools.android.DeveloperTools.main(DeveloperTools.java:273)
Exception in thread "main" com.crashlytics.tools.android.exception.PluginException: Crashlytics Developer Tools error.
    at com.crashlytics.tools.android.DeveloperTools.processArgsInternal(DeveloperTools.java:356)
    at com.crashlytics.tools.android.DeveloperTools.main(DeveloperTools.java:273)
Caused by: java.io.FileNotFoundException: /tmp/changelog20160928-32826-b1gtf0 (No such file or directory)
    at java.io.FileInputStream.open0(Native Method)
    at java.io.FileInputStream.open(FileInputStream.java:195)
    at java.io.FileInputStream.<init>(FileInputStream.java:138)
    at com.google.common.io.Files$FileByteSource.openStream(Files.java:126)
    at com.google.common.io.Files$FileByteSource.openStream(Files.java:116)
    at com.google.common.io.ByteSource$AsCharSource.openStream(ByteSource.java:435)
    at com.google.common.io.CharSource.read(CharSource.java:162)
    at com.google.common.io.Files.toString(Files.java:367)
    at com.crashlytics.tools.android.DeveloperTools.getPropertyValueOrValueFromPropertyPath(DeveloperTools.java:743)
    at com.crashlytics.tools.android.DeveloperTools.processProperties(DeveloperTools.java:662)
    at com.crashlytics.tools.android.DeveloperTools.processArgsInternal(DeveloperTools.java:348)
    ... 1 more

Configuration Files

Please copy the complete content of your Fastfile and any other configuration files you use below:

Fastfile:


  desc "Share to QA"
  lane :share_qa do
    message = last_git_commit[:message]
    if ENV['CRASHLYTICS_API_KEY'] && ENV['CRASHLYTICS_BUILD_SECRET']
        crashlytics(
            notes: message,
            groups: ['internal-beta-testers'],
            api_token: ENV['CRASHLYTICS_API_KEY'],
            build_secret: ENV['CRASHLYTICS_BUILD_SECRET']
        )
    end
    postToSlack(message, "QA")
  end

Environment

fastlane version (run fastlane -v): 1.104.0

Do you use bundler to execute fastlane (i.e. bundle exec fastlane)? yes

Do you use a Ruby environment manager (e.g. chruby, rbenv, rvm)? no

This happens only when I have notes message in crashlytics(). In my local machine works without a problem in CircleCI crashes every time.

I can see that you are trying to create a temp file here https://github.com/fastlane/fastlane/blob/master/fastlane/lib/fastlane/actions/crashlytics.rb#L11 but for some reason never created or something different?

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 36 (1 by maintainers)

Commits related to this issue

Most upvoted comments

you need to do the following @yapiskan:


        sh("cd .. && touch changelog.txt")
        File.write("./changelog.txt", message)
        crashlytics(
            notes_path: "./changelog.txt",
            groups: ['qa'],
            api_token: crashlytics_api_key,
            build_secret: crashlytics_build_secret 
        )

Reoccur when working with Jenkins

even after I did the workaround, and I have the local change log there, adding that ‘notes_path’ dose not making Crashlytics Beta have the Release note. Any one had this problem?

Hi method from @spirosoik working for me ! I got the same problem when using

message = last_git_commit[:message] if ENV[‘CRASHLYTICS_API_KEY’] && ENV[‘CRASHLYTICS_BUILD_SECRET’] crashlytics( notes: message, groups: [‘internal-beta-testers’], api_token: ENV[‘CRASHLYTICS_API_KEY’], build_secret: ENV[‘CRASHLYTICS_BUILD_SECRET’] ) end

@spirosoik Awesome! Let me know if you have any questions about contributing 👍

I have exactly same error about changelog not found. Removing crashlytics “notes:” fixed the issue.

The irony is that I spent two hours migrating from gradle-based crashlytics uploading to fastlane because of fastlane’s nice changelog_from_git_commits. To find out in the end that I can’t upload with notes.