#400 OS X Homebrew installation has incorrect default data path

Reporter ad@arista.com
Owner Waqas
Created
Updated
Stars ★★ (2)
Tags
  • Status-Fixed
  • Component-Scripts
  • Type-Defect
  • OpSys-OSX
  • Priority-Medium
  1. ad@arista.com on

    *What steps will reproduce the problem?* 1. prosodyctl adduser test@lab 2. enter new password 3. Retype new password 4. Error message: datamanager error Unable to write to accounts storage ('/usr/local/Cellar/prosody/0.9.3/var/lib/prosody/lab/accounts/test.dat~: No such file or directory') for user: test@lab Error saving to storage *What is the expected output? What do you see instead?* should suceed. I see an error with WRONG path there is no var/ inside 0.9.3/ A-MacBook-Pro:0.9.3 ad$ pwd /usr/local/Cellar/prosody/0.9.3 A-MacBook-Pro:0.9.3 ad$ ls -la total 40 drwxr-xr-x 11 ad wheel 374 5 Mar 20:58 . drwxr-xr-x 3 ad wheel 102 5 Mar 20:58 .. -rw-r--r-- 1 ad wheel 375 12 Jan 11:41 AUTHORS -rw-r--r-- 1 ad wheel 1099 12 Jan 11:41 COPYING -rw-r--r-- 1 ad wheel 219 5 Mar 20:58 INSTALL_RECEIPT.json -rw-r--r-- 1 ad wheel 1104 12 Jan 11:41 README -rw-r--r-- 1 ad wheel 74 12 Jan 11:41 TODO drwxr-xr-x 4 ad wheel 136 5 Mar 20:58 bin drwxr-xr-x 3 ad wheel 102 5 Mar 20:58 etc drwxr-xr-x 3 ad wheel 102 5 Mar 20:58 lib drwxr-xr-x 3 ad wheel 102 5 Mar 20:58 share A-MacBook-Pro:0.9.3 ad$ *What version of the product are you using? On what operating system?* Latest stable from the website as of 5th march 2014. Installed today. *Please provide any additional information below.*

  2. tonyli.lives on

    Any kind of work around (manual path change) available?

  3. MattJ on

    Waqas is going to be looking at the Homebrew script, and hopefully fix this issue. In the meantime, yes, you can change the data path via the 'data_path' option in the config. I don't use OS X, I'm not sure what the correct path is... as long as it exists and is owned by Prosody, you can use anything.

    Changes
    • tags Component-Scripts OpSys-OSX Status-Accepted
    • title OS X Homebrew installation has incorrect default data path
    • owner Waqas
  4. Waqas on

    All comments on this are for an ancient homebrew formula. We created an official brew tap+formula in late 2014, which is working, well tested and maintained: https://github.com/prosody/homebrew-prosody I'm marking this as fixed.

    Changes
    • tags Status-Fixed

New comment

Not published. Used for spam prevention and optional update notifications.