DreamFactory 2.0a from github, "Invalid Token Supplied"


#1

I’ve got DF 1.9 up and working easily on my Ubuntu 14.04 LTS. So I says, that was easy, how about we try the bleeding edge, amiright…

  1. The readme.md for the github DreamFactory 2.0 repo assumes that you are used to getting basics like your apache site config, .htaccess, etc, all done properly. I assume that similar .htaccess and similar section in my apache httpd.conf are appropriate.

  2. I followed the instructions at https://github.com/dreamfactorysoftware/dreamfactory/blob/master/README.md

  3. I get a box on the screen that says: Whoops, looks like something went wrong.

  4. Examining logs shows that the MySQL database authentication is not working. I didn’t change the MySQL db authentication away from defaults in 1.9, which is up and running, so I went in and used mysql commandline to get in and create a df_admin user. Now the system boots.

  5. I get the admin bootstrap/welcome page, I try to create my initial admin account. I get this error after that: “Invalid token supplied” pops up. I can not create an Admin on the Admins tab, and there are no users or admins visible on the Users or Admins tabs. Creating a new Admin fails silently (nothing happens when you click create).

It looks like some DB migration/table creation might have failed at some point, from the log contents:

line->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#40 [internal function]: Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode->handle(Object(Illuminate\Http\Request), Object(Closure))
#41 /opt/dreamfactory2/platform/bootstrap/cache/compiled.php(9459): call_user_func_array(Array, Array)
#42 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#43 /opt/dreamfactory2/platform/bootstrap/cache/compiled.php(9449): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
#44 /opt/dreamfactory2/platform/bootstrap/cache/compiled.php(2209): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#45 /opt/dreamfactory2/platform/bootstrap/cache/compiled.php(2192): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#46 /opt/dreamfactory2/platform/public/index.php(53): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#47 {main}
[2015-09-18 20:00:01] local.ALERT: Could not get cors config from DB - SQLSTATE[42S02]: Base table or view not found: 1146 Table 'dreamfactory.cors_config' doesn't exist (SQL: select * from `cors_config` where enabled = 1)
[2015-09-18 20:00:01] local.ALERT: Could not get cors config from DB - SQLSTATE[42S02]: Base table or view not found: 1146 Table 'dreamfactory.cors_config' doesn't exist (SQL: select * from `cors_config` where enabled = 1)
[2015-09-18 20:00:04] local.ALERT: Could not get cors config from DB - SQLSTATE[42S02]: Base table or view not found: 1146 Table 'dreamfactory.cors_config' doesn't exist (SQL: select * from `cors_config` where enabled = 1)

I renamed my log file, restarted apache, and tried to log on again, and there’s NOTHING new and useful in the logs, just these lines:

[2015-09-18 20:11:04] local.DEBUG: Resource event: system.environment.get.pre_process
[2015-09-18 20:11:04] local.DEBUG: Resource event: system.environment.get.post_process
[2015-09-18 20:11:04] local.DEBUG: Resource event: system.environment.get.pre_process
[2015-09-18 20:11:04] local.DEBUG: Resource event: system.environment.get.post_process
~

Anyone else got 2.0a from github up and working? My general level of Linux/Ubuntu knowledge is high, my level of PHP knowledge and DreamFactory knowledge is Low.

My wish here is that the logging was a bit noisier here, so that when I have a borked app I could have some hope of knowing what to do to fixify and debork it.

Update 1: I got into MySQL poked around in MySQL workbench ran select * from dreamfactory.user and see that my admin user got created. I’m not enough of a PHP dev to know how to debug further without some hints.

Cheers,

Warren Postma


#2

Oh dear. Clear cookies, and cache, and it’s all better now.

Maybe I have found a potential “1.9 to 2.0” rollout headache.

If I helped at least one person with this otherwise pointless post, I won’t have to wear the Cone of Shame.

DreamFactory is quite cool. Good work, people.

A suggestion for the README:

  • Mention that there’s not a web directory anymore, it’s called public now.

#3

You just saved me a couple of minutes, CoS is gone :wink:

Congratulations to the DreamFactory team for the v2 beta release!