Hello, I was running a Firefox sync server 1.1 for a while and I decided to migrate to the new system. I have a hard time to configure everything ^^ that's why I'm writing to this mailing list :)
* Sync-1.5 Server I set services.sync.tokenServerURI to my server: http://sync.forumanalogue.fr/token/1.0/sync/1.5 I created an account on Mozilla servers. and I saw the queries to the data base. So I guess so far so good :) * Firefox Accounts Server I cloned fxa-auth-server. npm install return no error as npm list and npm test. However, npm start work only on ports 9000 and 9001, not 7000. According to the README, I except having something on this port. Also, the system listen only locally to those ports, I'm not sure it's the regular behavior because, if I understand well, one should set the value to my.sync.server.tld:9000 in about:config, right? An other point, other ports are in use : # lsof -Pni [...] node 17122 root 10u IPv4 93805 0t0 TCP 127.0.0.1:9999 (LISTEN) node 17122 root 11u IPv4 93806 0t0 TCP 127.0.0.1:9001 (LISTEN) node 17124 root 10u IPv4 93804 0t0 TCP 127.0.0.1:8000 (LISTEN) node 17124 root 11u IPv4 93812 0t0 TCP 127.0.0.1:8000->127.0.0.1:58882 (ESTABLISHED) node 17125 root 10u IPv4 93811 0t0 TCP 127.0.0.1:58882->127.0.0.1:8000 (ESTABLISHED) node 17125 root 11u IPv4 93839 0t0 TCP 127.0.0.1:9000 (LISTEN) I'm not sure to understand the purpose of "Reference Client" and " Dev Deployment" sections, I skip them for the moment. * MySQL I installed fxa-auth-db-server using npm install I fixed the dependency errors manually, configured the user, password and hostname for mysql in config/config.js. Then npm test return no error. I ran node bin/db_patcher.js to create the database and the tables are indeed created. Then I run npm start. Is it suppose to run when I start fxa-auth-server? Anyway, I tried to run test on the latter and I've got errors: # DB_BACKEND=mysql npm test > [email protected] test /home/sync/fxa-auth-server > NODE_ENV=dev scripts/test-local.sh && grunt not ok test/local/account_preverified_token_tests.js .... 0/1 Command: "/usr/bin/nodejs account_preverified_token_tests.js" TAP version 13 not ok 1 test/local/account_preverified_token_tests.js --- exit: 143 timedOut: true stderr: | {"name":"fxa-auth-server","hostname":"sync","pid":17504,"level":30,"env":"dev","log":{"level":"info"},"publicUrl":"http://127.0.0.1:9000","secretKeyFile":"/home/sync/fxa-auth-server/config/secret-key.json","publicKeyFile":"/home/sync/fxa-auth-server/config/public-key.json","trustedJKUs":["http://127.0.0.1:9000/.well-known/public-keys"],"db":{"backend":"mysql"},"httpdb":{"url":"http://127.0.0.1:8000"},"listen":{"host":"127.0.0.1","port":9000},"customsUrl":"none","contentServer":{"url":"http://127.0.0.1:3030"},"smtp":{"api":{"host":"127.0.0.1","port":9001},"host":"127.0.0.1","port":9999,"secure":false,"sender":"[email protected]","verificationUrl":"http://127.0.0.1:3030/v1/verify_email","passwordResetUrl":"http://127.0.0.1:3030/v1/complete_reset_password","redirectDomain":"firefox.com","resendBlackoutPeriod":0},"toobusy":{"maxLag":0},"scrypt":{"maxPending":0},"i18n":{"defaultLanguage":"en-US","locales":["ca","cs","cy","da","de","en-US","es","es-AR","es-CL","et","eu","ff","fr","fy","h e","hu","id","it","ja","ko","lt","nb-NO","nl","pa","pl","pt","pt-BR","rm","ru","sk","sl","sq","sr","sr-LATN","sv","tr","zh-CN","zh-TW"]},"tokenLifetimes":{"accountResetToken":900000,"passwordForgotToken":900000,"passwordChangeToken":900000},"verifierVersion":0,"snsTopicArn":"","bounces":{"region":"us-east-1","bounceQueueUrl":"","complaintQueueUrl":""},"basket":{"region":"","apiUrl":"","apiKey":"","queueUrl":""},"useHttps":false,"keyPath":"/home/sync/fxa-auth-server/key.pem","certPath":"/home/sync/fxa-auth-server/cert.pem","domain":"127.0.0.1:9000","msg":"starting config","time":"2014-11-11T18:08:28.270Z","v":0} {"name":"fxa-auth-server","hostname":"sync","pid":17504,"level":60,"err":{"message":"Cannot read property 'url' of undefined","name":"TypeError","stack":"TypeError: Cannot read property 'url' of undefined\n at new DB (/home/sync/fxa-auth-server/db/httpdb.js:669:29)\n at Function.DB.connect (/home/sync/fxa-auth-server/db/httpdb.js:675:10)\n at /home/sync/fxa-auth-server/bin/key_server.js:250:4\n at tryCatch1 (/home/sync/fxa-auth-server/node_modules/fxa-auth-mailer/node_modules/bluebird/js/main/util.js:43:21)\n at Promise$_callHandler [as _callHandler] (/home/sync/fxa-auth-server/node_modules/fxa-auth-mailer/node_modules/bluebird/js/main/promise.js:627:13)\n at Promise$_settlePromiseFromHandler [as _settlePromiseFromHandler] (/home/sync/fxa-auth-server/node_modules/fxa-auth-mailer/node_modules/bluebird/js/main/promise.js:641:18)\n at Promise$_settlePromiseAt [as _settlePromiseAt] (/home/sync/fxa-auth-server/node_modules/fxa-auth-mailer/node_modules/bluebird/js/main/promise.js:804:14)\n at Promise$_settlePromises [as _settlePromises] (/home/sync/fxa-auth-server/node_modules/fxa-auth-mailer/node_modules/bluebird/js/main/promise.js:938:14)\n at Async$_consumeFunctionBuffer [as _consumeFunctionBuffer] (/home/sync/fxa-auth-server/node_modules/fxa-auth-mailer/node_modules/bluebird/js/main/async.js:75:12)\n at Async$consumeFunctionBuffer (/home/sync/fxa-auth-server/node_modules/fxa-auth-mailer/node_modules/bluebird/js/main/async.js:38:14)"},"msg":"Cannot read property 'url' of undefined","time":"2014-11-11T18:08:30.248Z","v":0} command: "/usr/bin/nodejs account_preverified_token_tests.js" ... 1..1 # tests 1 # fail 1 Here, there is only the beginning of the log. Apparently, it's always the same problem each failed test: TypeError: Cannot read property 'url' of undefined\n at new DB (/home/sync/fxa-auth-server/db/httpdb.js:669:29) I didn't find how to fix it. FYI, I have a remove mysql server. Thank you for your help :) Clèm -- Clément Février http://www.forumanalogue.fr/ Président d'Ubuntu-Lyon http://www.ubuntu-lyon.org/
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Dev-fxacct mailing list [email protected] https://mail.mozilla.org/listinfo/dev-fxacct

