vegeta icon indicating copy to clipboard operation
vegeta copied to clipboard

vegeta unable to write to files with -output

Open benwis opened this issue 1 year ago • 0 comments

Version and Runtime

benwis@profiler:~/vegeta/scripts/load-ramping$ vegeta --version
Version: v12.11.1
Commit: 6fbe391628eeeae1adf39522a55078797e6e7f2e
Runtime: go1.20.8 linux/amd64
Date: 2023-10-02T09:05:05Z+0000

Expected Behaviour

I expected it to successfully write the results to a file

Actual Behaviour

It failed to write files using the -output flag with 'permission denied'

vegeta attack -duration 5s -rate 1000/1000s -output results_1000.bin
2024/03/23 00:32:28 error opening results_1000.bin: open results_1000.bin: permission denied
vegeta attack -duration 5s -rate 1258/1000s -output results_1258.bin
2024/03/23 00:32:34 error opening results_1258.bin: open results_1258.bin: permission denied

Steps to Reproduce

  1. Create an Ubuntu VM on DigitalOcean, latest LTS version
  2. Install python3 and gnuplot. Download load-ramp example
  3. Run it

benwis avatar Mar 23 '24 00:03 benwis