Issue setting up a 17 dev environment

I followed all the steps outlined in the wiki to set up a FreePBX17 dev environment. -

I reached the last step and encountered an error, but I did the solution to resolve it. Removed the directories and files and re-ran the " ./install --dbuser=[username from /etc/freepbx.conf] --dbpass=[password from /etc/freepbx.conf] --dev-links" command.

It errored out “Unable to locate the FreePBX BMO Class 'Core’A required module might be disabled or uninstalled. Recommended steps (run from the CLI): 1) fwconsole ma install co
re 2) fwconsole ma enable core”

I cannot get past that. If I try to do a “fwconsole ma install core 2 -f”, I get an error " pm2 binary does not exist, run fwconsole ma install pm2 and try again"

When I do a “fwconsole ma list” I see this -

core | 17.0.18.34 | Disabled; Pending upgrade to 17.0.18.35 | GPLv3+ | Unsigned |

Do you have any idea how to get around this? It seems the repository version is older than what the FreePBX install installs??

I tried redoing the Git and re-running the installation, but I keep getting the same error. It does the symlinks and then gives me the core error. I am unable to run any fwconsole command; it simply displays the core error.

Thanks

That setup is broke. Doesn’t work right.

Yes, I figured that. I followed the instructions to the letter. If someone else follows those same instructions, they should get the same thing. My question is what to do to fix it. I could spend another several hours reloading Debian, installing FreePBX, and following the same instructions and getting the same result. Is there a different instruction or something broken with the repository? Thanks

It’s the setup itself. It’s not been fully tested or reviewed since the move to Github or moving to FreePBX v17 since it is a completely different environment. I have tried multiple times as have others and the general conclusion is the entire thing needs a fresh review and overhaul.

The development environment in the documents is a waste of time because it doesn’t work right.

1 Like

Are you planning to work on the whole project or just a single module or so? If the latter, it would probably be more productive just to install FreePBX in the usual way and then check out the individual module code into the correct place in /var/www/html/admin/modules and iterate over it there. Just avoid overwriting it with module update commands.

Ah, ok. I was misled into believing the development environment was working. Since it’s just one module I want to work on, I’ll reinstall it normally. A few years ago, I set up a v16 and it worked, but I got sidetracked. Now I want to work on a project again. Thanks.

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.