tsenart / vegeta

HTTP load testing tool and library. It's over 9000!
http://godoc.org/github.com/tsenart/vegeta/lib
MIT License
23.42k stars 1.36k forks source link

vegeta unable to write to files with -output #685

Open benwis opened 6 months ago

benwis commented 6 months ago

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