i am having a problem getting it to work. i understand this issue could
be with drupal, sox, my os, or my apache server. i manage a vps.

track'n stack allows for collaborative music creation. pretty cool and unique to my knowledge.

when i upload a file, the prompt says "processing mixdown" and stays that way.
since there is only one file there, i don't understand why it says this.
if i upload a second file after checking out the first file, the same thing happens.

my sox installation works from the command line.
i receive no errors on the track'n stack configuration page within joomla.
jplayer is referenced properly if that matters.

any thoughts on this someone would like to share

i'm using:

drupal 6.36
trackn' stack 6x-2.91
jplayer 2.9.2
sox 14.2.0
centos 6

thank you for your time.

Comments

John_B’s picture

Having stared at the code for quite a long time and read the documentation, it seems to me this is the way it is meant to work. Is that right? If more than one track is added, when cron runs the mixdowns are refreshed. Are you sure cron is running? Maybe take a look at the Recent Log Messages in watchdog.

Digit Professionals specialising in Drupal, WordPress & CiviCRM support for publishers in non-profit and related sectors

urglik’s picture

hi john,

thank you very much for taking a look at this. i appreciate your time and help.

so i uploaded 2 files in the manner one would do to have them mixed and manually ran drupal's cron.
i received this error in the log.

Cannot create mixdown (nid: 11; SoX status: 127; Cmd: '/usr/bin/sox'mix '/home/glassmarimba/public_html/met/sites/default/files/tracknstack/11-14366815550.wav' '/home/glassmarimba/public_html/met/sites/default/files/tracknstack/11-14366815800.wav' '/home/glassmarimba/public_html/met/sites/default/files/tracknstack/11.wav')

in regards to the cmd, i imagine the apostrophe's are added by the log for delineation. they should not be sent to sox. i tested my sox version to combine two files. on the net, i have seen 2 different syntax approaches. sox mix, and sox -m. with my sox version. the only working syntax is
sox -m 1.wav 2.wav mixdown.wav. therefor it would appear that the incorrect command is being sent to sox by track'n stack (mix). perhaps sox has changed it's syntax since this module was developed. i will look within the module to see where the mix command is being given.

i also found this on the web:

Value 127 is returned by /bin/sh when the given command is not found within your PATH system variable and it is not a built-in shell command. In other words, the system doesn't understand your command, because it doesn't know where to find the binary you're trying to call.

also

127 - command not found
but it can also mean that the command is found,
but a library that is required by the command is not found.

if i get it working, i will want to have a cron job run every minute.
how do change the cron interval within drupal?

thank you

urglik’s picture

i found this is the track'n stack module.

if ($result == 0 || $result == 1) {
if ($mix) {
$sox_bin .= 'mix'; // Use 'mix' rather than ' -m' to support SoX version <= 12.18.2
}

i changed it to -m and it still did not work.

the path to sox in track'n stack admin shows no errors. /usr/bin

perhaps i should look for sox version 12.18.2

not sure why it would matter though.

John_B’s picture

I would check that sox runs from /usr/bin/sox. Also check that it can be run by the same user who is executing Apache (which depends on your server setup: the fact you can run it from command line does not mean that your webserver can also run the same command).

Could be a version thing too.

Digit Professionals specialising in Drupal, WordPress & CiviCRM support for publishers in non-profit and related sectors

urglik’s picture

a belated thank you for your reply...lol
i was drawn away from this project for my website to
develop other things, but would love to figure this out.

i understand your reply but not how to implement it.

not sure what you mean by "check that sox runs from /usr/bin/sox"

and what configuration i would access to "check that it can be run by the same user who is executing Apache"

would you say that cron is doing it's job and it is another matter?

there is some discussion about running cron as an authenticated user.

where cron in drupal runs as anonymous.

thank you

John_B’s picture

TBH I am out of my depth with sox! I more had in mind the permissions of the LInux user. Anonymous is the Drupal user, which refers to permissions to do certain things and not others on the Drupal site. In terms of executing code it is the Linux or Unix user system which is in play. So the question is, if the Drupal site asks a Linux program outside Drupal to run, such as /usr/bin/sox, does the server run that service? Or does it respond with 'permission refused'? You can probably see that from the server logs. That is a general principle, though help from someone with experience of sox would be more useful to you...

Digit Professionals specialising in Drupal, WordPress & CiviCRM support for publishers in non-profit and related sectors