#400 OS X Homebrew installation has incorrect default data path
*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
A-MacBook-Pro:0.9.3 ad$ ls -la
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
*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.*
Any kind of work around (manual path change) available?
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.
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:
I'm marking this as fixed.