Giter Site home page Giter Site logo

Permission denied about speedtest-linux HOT 5 CLOSED

rsvp avatar rsvp commented on July 30, 2024
Permission denied

from speedtest-linux.

Comments (5)

sbaghdadi avatar sbaghdadi commented on July 30, 2024

Same here on debian wheezy.

from speedtest-linux.

rsvp avatar rsvp commented on July 30, 2024

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!

from speedtest-linux.

brnhffmnn avatar brnhffmnn commented on July 30, 2024

+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.

from speedtest-linux.

rsvp avatar rsvp commented on July 30, 2024

@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!

from speedtest-linux.

rsvp avatar rsvp commented on July 30, 2024

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

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

from speedtest-linux.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.