audacity 2.0.3 - can't create tmp files

Help for Audacity on GNU/Linux.
Forum rules
ImageThis forum is for Audacity on GNU/Linux.
Please state:
  • which version of Linux you are using,
  • the exact three-section version number of Audacity from Help menu > About Audacity,
  • whether you installed your distribution's release, PPA version, or compiled Audacity from source code.

Audacity 1.2.x and 1.3.x are obsolete and no longer supported. If you still have those versions, please upgrade (see https://www.audacityteam.org/download/).
The old forums for those versions are now closed, but you can still read the archives of the 1.2.x and 1.3.x forums.
fastturtle
Posts: 4
Joined: Mon Mar 18, 2013 3:58 pm
Operating System: Please select

audacity 2.0.3 - can't create tmp files

Post by fastturtle » Mon Mar 18, 2013 4:11 pm

Gentoo AMD64 no-multilib profile
portage installed

checking its config status
~/.audacity-data/audacity.cfg

shows that as a normal user it's trying to use /root/.audacity-data instead of the /home/username

Problem has occured starting with the stable 2.0.0 and ~amd64 (testing branch 2.0.1 and 2.0.3) upgraded in hopes it was an issue with an earlier version.

I'm also using ALSA as the sound system (stable with an intel-hd/Realtek chip)
build flags set are ALSA libsamplerate soxr mp3
Kernel is 3.4.35-LTS (kernel org) not the gentoo patched versions.

When attempting to start audacity - it pops up the message and segfaults as a normal user. Root can load it but it still doesn't solve the issue with normal users. Daily user is in the audio group if that helps

steve
Site Admin
Posts: 81627
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: audacity 2.0.3 - can't create tmp files

Post by steve » Mon Mar 18, 2013 5:29 pm

Try deleting the audacity.cfg file and then start Audacity.
The audacity.cfg file will be recreated when Audacity successfully launches.

The default temp directory should be:
TempDir=/var/tmp/audacity-<username>
(this should be set automatically unless an entry already exists in the audacity.cfg file)
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

fastturtle
Posts: 4
Joined: Mon Mar 18, 2013 3:58 pm
Operating System: Please select

Re: audacity 2.0.3 - can't create tmp files

Post by fastturtle » Mon Mar 18, 2013 11:01 pm

That's the problem - it's popping the error message and then segfaulting - No Config file being created so I'm not sure what's going on.

steve
Site Admin
Posts: 81627
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: audacity 2.0.3 - can't create tmp files

Post by steve » Tue Mar 19, 2013 12:44 am

What is the exact error message?
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: audacity 2.0.3 - can't create tmp files

Post by Gale Andrews » Sun Mar 24, 2013 7:33 am

How exactly are you launching Audacity?


Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

NEKRO
Posts: 8
Joined: Sat Mar 30, 2013 11:42 pm
Operating System: Please select

Re: audacity 2.0.3 - can't create tmp files

Post by NEKRO » Sun Mar 31, 2013 12:05 am

Possible workaround: Make /var/tmp writeable for current user

If that is not an option: Copy /root/.audacity-data/audacity.cfg to /home/YOURUSERNAME/.audacity-data/audacity.cfg
and change the line TempDir=/var/tmp/audacity-root to TempDir=/tmp/audacity-YOURUSERNAME

/tmp should be writeable by you, if not you can point TmpDir= to somewhere that you have got privilegies.


To me this looks like a design flaw in audacity preference setup - it should check for permissions and select a safe bet when /var/tmp is not useable. However, I mjust may have messed up when building it...

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: audacity 2.0.3 - can't create tmp files

Post by Gale Andrews » Sun Mar 31, 2013 1:49 am

On Ubuntu I consistently see a problem with trying to execute audacity as root, irrespective where the executable file is ("could not find a place to store temporary files"). I don't have /root/.audacity-data/ and creating it does not prevent the problem.

I have never seen fastturtle's issue. Does it occur if you compile Audacity with default ./configure?


Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

NEKRO
Posts: 8
Joined: Sat Mar 30, 2013 11:42 pm
Operating System: Please select

Re: audacity 2.0.3 - can't create tmp files

Post by NEKRO » Sun Mar 31, 2013 2:03 am

Good question, I used ./configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib (old/bad habit)

I will do a clean ./configure make and get back to you. BTW, this is on a 64 bit Debian 6/Dreamlinux install - unlike Ubuntu, it has /root :-)

And yes, the message is "could not find a place to store temporary files"

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: audacity 2.0.3 - can't create tmp files

Post by Gale Andrews » Sun Mar 31, 2013 2:18 am

NEKRO wrote:this is on a 64 bit Debian 6/Dreamlinux install - unlike Ubuntu, it has /root :-)
Ubuntu has /root, but I don't know how to access it in a terminal unless I do sudo bash first (I am not a power Linux user).


Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

NEKRO
Posts: 8
Joined: Sat Mar 30, 2013 11:42 pm
Operating System: Please select

Re: audacity 2.0.3 - can't create tmp files

Post by NEKRO » Sun Mar 31, 2013 2:52 am

Same message after a clean build"
Audacity could not find a place to store temporary files.
Please enter an appropriate directory in the preferences dialog.
Then Segmentation fault.

Bottom line it is down to permissions. On my box regular users have read/write 1777 permissions on /tmp but only read 0755 permissions on /var/tmp
I have no idea if that is default for all the distros out there.

Post Reply