Log inSkip to main contentSkip to sidebar
Something went wrong, please try again.
Create and track feature requests for Atlassian products.
  • More
    DashboardsProjectsIssues
  • Give feedback to Atlassian
  • Help
    • Jira Core help
    • Keyboard Shortcuts
    • About Jira
    • Jira Credits
  • Log In
IMPORTANT: JAC is a Public system and anyone on the internet will be able to view the data in the created JAC tickets. Please don’t include Customer or Sensitive data in the JAC ticket.

Open issues

  • All issues
  • Open issues
  • Done issues
  • Viewed recently
  • Created recently
  • Resolved recently
  • Updated recently
View all issues and filters
Order by Priority
  1. Suggestion
    BAM-8029STDOUT and STDERR buffering is very annoying
  2. Suggestion
    BAM-782Ability to view the junit test logs
  3. Suggestion
    BAM-3253Ability to modify Bamboo mail subject line
  4. Suggestion
    BAM-3195Hierarchical Project and plan structure in Bamboo
  5. Suggestion
    BAM-3188Clone Project
  6. Suggestion
    BAM-21302Display system-error/system-out elements when viewing a JUnit test case
  7. Suggestion
    BAM-21055Option to set a trigger IP address globally and for all repository types
  8. Suggestion
    BAM-20991Make Quick filters URL shareable
  9. Suggestion
    BAM-20903Improve the variables documentation regarding encryption.
  10. Suggestion
    BAM-20723Switch to daily log rotation instead of file size based rotation
  11. Suggestion
    BAM-20601Possibility to filter and/or sort deployment projects overview
  12. Suggestion
    BAM-20395Add personal filter to deployment projects in the same way as in build plans
  13. Suggestion
    BAM-20358Ability to run a deployment manually without triggering cascaded ones
  14. Suggestion
    BAM-20273Add ability to extend Bamboo Specs across multiple repositories.
  15. Suggestion
    BAM-20098(REST) As an admin, I would like to provide plan name and description on clone endpoint
  16. Suggestion
    BAM-19658Notification for Job Started Event
  17. Suggestion
    BAM-19647Linked Repository Default Permissions
  18. Suggestion
    BAM-15810Bamboo doesn't detect CMake
  19. Suggestion
    BAM-14825Bamboo should not store Stash SSH port in repository definition but rather use the currently configured one
  20. Suggestion
    BAM-14599successful Junit test that have details should be captured in the test summary
  21. Suggestion
    BAM-14533Notification for when build starts
  22. Suggestion
    BAM-14230Stop build without Failing
  23. Suggestion
    BAM-13920Tag when creating a release
  24. Suggestion
    BAM-13064Allow Gatekeeper to rebase instead of merging
  25. Suggestion
    BAM-12165I want to get notification when plan branch is automatically disabled
  26. Suggestion
    BAM-10745"Look in standard test results directory" should say what it considers default as this is not that obvious
  27. Suggestion
    BAM-26007Integrate GitHub with Bamboo without using PAT tokens
  28. Suggestion
    BAM-26034API to manage notifications
  29. Suggestion
    BAM-26089Support for Certificate Chains in gRPC Node Communication
  30. Suggestion
    BAM-26137Bamboo shouldn't reach out to repository servers for repository polling triggers if the Plans are in a disabled state or not active state.
  31. Suggestion
    BAM-1223Import Export individual projects / plans
  32. Suggestion
    BAM-2886Environment variables for agents
  33. Suggestion
    BAM-9658Allow administrator to change plan and job keys
  34. Suggestion
    BAM-15411Global expiry configuration for particular deployment projects
  35. Suggestion
    BAM-15415Add "managing agent capability/executable permissions" as a separate permission option
  36. Suggestion
    BAM-15464Provide HTTP(S) authentication method option for Bitbucket Server type repository
  37. Suggestion
    BAM-17403Clean up build working directory similar to the expiry configuration
  38. Suggestion
    BAM-17728Get last timestamp users authenticated in Bamboo and from where
  39. Suggestion
    BAM-17879Bamboo Global Expiry Granular Configuration
  40. Suggestion
    BAM-18336Support NUnit 3.0 format (nunit3)
  41. Suggestion
    BAM-21722Disable or Enable only one type of Specs: Java or YAML
  42. Suggestion
    BAM-21749Prevent custom dependencies in Specs pom.xml
  43. Suggestion
    BAM-22058Add an option in Bamboo database to store/retrieve the Bamboo URL agents are using.
  44. Suggestion
    BAM-14912Add ability to include build log (partial/full) in notifications
  45. Suggestion
    BAM-16164Force logout after a specified period
  46. Suggestion
    BAM-16201Audit log doesn't record permission changes
  47. Suggestion
    BAM-18294Allow users to enable/disable variable logging on builds or deployments
  48. Suggestion
    BAM-18306Prevent non-admin users from overriding Global Expiry
  49. Suggestion
    BAM-18372Adding build logs with warnings to bamboo email notification
  50. Suggestion
    BAM-18681IPs should be automatically whitelisted when Amazon adds a new IP range
Refresh results
1 2 3 4 5Next >>
1 of 1596
Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-8029

STDOUT and STDERR buffering is very annoying

Log In
Gathering Interest
Export
undefinedView workflow
XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • None
    • Builds
    • None
    • 2
    • 3
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      Our build process writes status to STDOUT, such as the current script that is executing. Sometimes one of our scripts hangs. We can't tell which script is hanging via the Bamboo UI because the Activity tab appears to buffer output. The last line written to STDOUT is critical. We'd rather not try to outsmart Bamboo by writing a lot of bogus lines to STDOUT.

            • All
            • Comments
            • Work Log
            • History
            • Activity

            Steven Roodhorst added a comment - 16/Mar/2021 10:42 AM - edited

            Managed to fix this problem by using:

            unbuffer <command> |& tee -a unittest.log
            

            Will probably also work without 'tee'.

             

            Steven Roodhorst added a comment - 16/Mar/2021 10:42 AM - edited Managed to fix this problem by using: unbuffer <command> |& tee -a unittest.log Will probably also work without 'tee'.  

            Ian Norton added a comment - 07/Sep/2020 12:21 PM

            Looking at the agent logs, when I get cases of no logs being seen in the bamboo UI, I see agent logs like this:

            2020-09-07 12:39:39,843 INFO [68:StdOutHandler [/bin/sh]] [RemoteBuildLogger] Suspending live log transmission
            

            Ian Norton added a comment - 07/Sep/2020 12:21 PM Looking at the agent logs, when I get cases of no logs being seen in the bamboo UI, I see agent logs like this: 2020-09-07 12:39:39,843 INFO [68:StdOutHandler [/bin/sh]] [RemoteBuildLogger] Suspending live log transmission

            Ian Norton added a comment - 24/Aug/2020 9:47 AM

            I've been fighting this again recently. At first I thought my application and build were not flushing stdout.  Sometimes I'd get incremental logs, other times I'd get nothing at all until the job completes.

            On some of these builds the logs are over 40mb of text. So I can't believe this is shell/pipe buffering.

            I've seen instances where I get bamboo's early internal messages upto and including:

            simple	24-Aug-2020 07:29:54	Finished task 'Checkout Default Repository' with result: Success
            simple	24-Aug-2020 07:29:54	Running pre-build action: Artifactory Release Staging
            simple	24-Aug-2020 07:29:54	Running pre-build action: VCS Version Collector
            

            Then nothing at all until the job is cancelled or ends naturally. Not even the next internal line from bamboo which is usually like:

            simple	24-Aug-2020 07:29:54	Starting task 'build' of type 'com.atlassian.bamboo.plugins.scripttask:task.builder.script'
            

            Ian Norton added a comment - 24/Aug/2020 9:47 AM I've been fighting this again recently. At first I thought my application and build were not flushing stdout.  Sometimes I'd get incremental logs, other times I'd get nothing at all until the job completes. On some of these builds the logs are over 40mb of text. So I can't believe this is shell/pipe buffering. I've seen instances where I get bamboo's early internal messages upto and including: simple 24-Aug-2020 07:29:54 Finished task 'Checkout Default Repository' with result: Success simple 24-Aug-2020 07:29:54 Running pre-build action: Artifactory Release Staging simple 24-Aug-2020 07:29:54 Running pre-build action: VCS Version Collector Then nothing at all until the job is cancelled or ends naturally. Not even the next internal line from bamboo which is usually like: simple 24-Aug-2020 07:29:54 Starting task 'build' of type 'com.atlassian.bamboo.plugins.scripttask:task.builder.script'

            Ian Norton added a comment - 10/Aug/2020 5:24 PM

            For anyone else coming along after years of this, the above stdbuf trick only works in some cases.  

            stdbuf uses LD_PRELOAD so if your application is statically linked this won't have any impact.

            I would though say this is a bad user experience in bamboo.  Other systems cope with this.

            Ian Norton added a comment - 10/Aug/2020 5:24 PM For anyone else coming along after years of this, the above stdbuf trick only works in some cases.   stdbuf uses LD_PRELOAD so if your application is statically linked this won't have any impact. I would though say this is a bad user experience in bamboo.  Other systems cope with this.

            Nicholas Parrish added a comment - 10/Apr/2019 4:02 PM

            For future people that run into this:  we though we were having trouble with bamboo buffering the output of our jobs, but it wasn't actually Bamboo.  This is a common issue for any process that isn't running in an interactive console: https://unix.stackexchange.com/questions/25372/turn-off-buffering-in-pipe

            We added:

            stdbuf -i0 -o0 -e0
            

            To our long-running commands and it solved our issue.

            Nicholas Parrish added a comment - 10/Apr/2019 4:02 PM For future people that run into this:  we though we were having trouble with bamboo buffering the output of our jobs, but it wasn't actually Bamboo.  This is a common issue for any process that isn't running in an interactive console: https://unix.stackexchange.com/questions/25372/turn-off-buffering-in-pipe We added: stdbuf -i0 -o0 -e0 To our long-running commands and it solved our issue.

            Shane Wignall added a comment - 08/Apr/2019 3:07 PM

            +1

            Shane Wignall added a comment - 08/Apr/2019 3:07 PM +1

            Deleted Account (Inactive) added a comment - 18/Apr/2018 8:27 PM

            Posted the above comment under Teo (using a shared company account).  email me if any info is needed.  

            Deleted Account (Inactive) added a comment - 18/Apr/2018 8:27 PM Posted the above comment under Teo (using a shared company account).  email me if any info is needed.  

            Deleted Account (Inactive) added a comment - 18/Apr/2018 8:24 PM

            Totally agree with the above.  I have a job that runs completely when executed form the xml-data/build-dir/<JOB>/ and only takes 4min.  Output from it is about 400-500 lines of text to stdout.  When I run from Bamboo, it says there is no log file and does not show any output.  Unable to easily debug this, now I'm off to waste a ton of time trying to figure out what is happening.

            Deleted Account (Inactive) added a comment - 18/Apr/2018 8:24 PM Totally agree with the above.  I have a job that runs completely when executed form the xml-data/build-dir/<JOB>/ and only takes 4min.  Output from it is about 400-500 lines of text to stdout.  When I run from Bamboo, it says there is no log file and does not show any output.  Unable to easily debug this, now I'm off to waste a ton of time trying to figure out what is happening.

            Deleted Account (Inactive) added a comment - 13/Apr/2018 7:11 PM

            I'd like to add that this isn't just annoying. It's downright confusing, and before I realized this was a bug, I lost a lot of time trying to troubleshoot a failed job. It's been over 7 years. Could someone please check into this?

            Deleted Account (Inactive) added a comment - 13/Apr/2018 7:11 PM I'd like to add that this isn't just annoying. It's downright confusing, and before I realized this was a bug, I lost a lot of time trying to troubleshoot a failed job. It's been over 7 years. Could someone please check into this?

            Fred Vassard added a comment - 17/Jan/2018 6:37 PM

            This is still a problem on the latest bamboo version. 

            Executables output is completely buffered. To the point where on a script that take 30 minutes, I will not see any output until the script is completed.

            (This is running on a local agent)

            It is REALLY annoying that this has not been addressed since 2011... 

            Fred Vassard added a comment - 17/Jan/2018 6:37 PM This is still a problem on the latest bamboo version.  Executables output is completely buffered. To the point where on a script that take 30 minutes, I will not see any output until the script is completed. (This is running on a local agent) It is REALLY annoying that this has not been addressed since 2011... 

              Unassigned Unassigned
              b08929f5741e Terris Linenbach
              Votes:
              16 Vote for this issue
              Watchers:
              15 Start watching this issue

                Created:
                13/Feb/2011 6:22 PM
                Updated:
                4 hours ago
                • Atlassian Jira Project Management Software
                • About Jira
                • Report a problem
                • Privacy policy
                • Notice at Collection

                Atlassian