Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permission denied #1

Closed
michaelrimbach opened this issue Jun 16, 2015 · 5 comments
Closed

Permission denied #1

michaelrimbach opened this issue Jun 16, 2015 · 5 comments

Comments

@michaelrimbach
Copy link

Hi,

Im getting a permission denied error. You know how to handle it?

./speedtest --log
./speedtest: line 116: /dev/shm/88_speedtest_tmp.3pYeaVRNKb: Permission denied

Thanks!

@sbaghdadi
Copy link

Same here on debian wheezy.

@rsvp
Copy link
Owner

rsvp commented Jan 14, 2016

Our code curls the upstream source to file $memf,
then does the following:

chmod 755 $memf
#  A file in shared memory /dev/shm needs execute permission.

That may be the problem.
So try resetting memf variable to a file where you have
the ability to change permissions.


Be sure the directory and file permissions are set properly.
The default name of the log file is speedtest.log
is destined as follows in the source:

logdir="/home/${USER}/var/log/net"
 #    ^RENAME log directory for your personal use; for --log option.

Usually that path is not ready-made by the system, so
it up to the user to handle that.

After the logdir is set, you can write to different log files, e.g.
$ speedtest --log tmp.log

Hope this resolves the issue... please write back to confirm. Thanks!

@brnhffmnn
Copy link

+1

On my system /dev/shm is a link to /run/shm -- could that be the problem?
I changed the path to /tmp/ to make it work.

@rsvp
Copy link
Owner

rsvp commented Jan 25, 2016

@panzerfahrer Apparently:

"It's perfectly okay to use some directory in /run as long as you have the appropriate rights on it. In some modern distros, /tmp is already a virtual file system in memory or a symlink to a directory inside /run"

/tmp is perfectly fine if writing to disk is acceptable.

For Ubuntu, /dev/shm writes to shared memory, so it's just milliseconds faster :)

If /tmp works for everyone, perhaps the source should be revised. Thanks!

@rsvp
Copy link
Owner

rsvp commented Mar 7, 2017

Discussion left open for over a year... CLOSED.

Checkout our new fasttest at https://git.io/speed

@rsvp rsvp closed this as completed Mar 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants