Hello i am new on meteor i work on an old project and i can not run it i found this error
I20170406-10:12:47.057(2)? FS.HTTP.unmount:
I20170406-10:12:47.058(2)? {}
I20170406-10:12:47.058(2)? Registered HTTP method URLs:
I20170406-10:12:47.058(2)? /cfs/files/:collectionName/:id/:filename
I20170406-10:12:47.058(2)? /cfs/files/:collectionName/:id
I20170406-10:12:47.058(2)? /cfs/files/:collectionName
W20170406-10:12:47.059(2)? (STDERR)
W20170406-10:12:47.059(2)? (STDERR) /home/jawher/.meteor/packages/meteor-tool/.1.3.4_4.19dnd86++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/server-lib/node_modules/fibers/future.js:280
W20170406-10:12:47.059(2)? (STDERR) throw(ex);
W20170406-10:12:47.060(2)? (STDERR) ^
W20170406-10:12:47.060(2)? (STDERR) TypeError: Cannot read property ‘BT_PRIVATE_KEY’ of undefined
W20170406-10:12:47.060(2)? (STDERR) at app/server/billing.js:15:44
W20170406-10:12:47.060(2)? (STDERR) at /home/jawher/stage/nemojus/.meteor/local/build/programs/server/boot.js:304:5
=> Exited with code: 8
=> Your application is crashing. Waiting for file change.
We’re going to need to see at least the reported code (app/server/billing.js
).
Can you wrap your code in triple backticks, so it’s readable, please?
```
put your code
between lines
of triple backticks
like this
```
So it looks like it’s not seeing any Meteor.settings
- did you pass the settings file in?
meteor --settings settingsfile.json
I hope they’re not your real keys you’re sharing!
What version of Meteor is this?
And can we see the contents of your .meteor/packages
file?
Not sure what that screenshot is, but it’s not the contents of .meteor/packages
. That will look something like:
$ cat .meteor/packages
# Meteor packages used by this project, one per line.
# Check this file (and the other files in this directory) into your repository.
#
# 'meteor add' and 'meteor remove' will edit this file for you,
# but you can also edit it by hand.
meteor-base@1.0.4 # Packages every Meteor app needs to have
mobile-experience@1.0.4 # Packages for a great mobile UX
mongo@1.1.15 # The database Meteor supports right now
blaze-html-templates@1.0.4 # Compile .html files into Meteor Blaze views
reactive-var@1.0.11 # Reactive variable for tracker
jquery@1.11.10 # Helpful client-side library
tracker@1.1.2 # Meteor's client-side reactive programming library
standard-minifier-css@1.3.3 # CSS minifier run for production mode
standard-minifier-js@1.2.2 # JS minifier run for production mode
es5-shim@4.6.15 # ECMAScript 5 compatibility for older browsers.
ecmascript@0.6.3 # Enable ECMAScript2015+ syntax in app code
shell-server@0.2.2 # Server-side component of the `meteor shell` command
deanius:promise
promise@0.8.8
random@1.0.10
astronomerio:core
Sorry there is it the meteor/packages
$ cat .meteor/packages
# Meteor packages used by this project, one per line.
# Check this file (and the other files in this directory) into your repository.
#
# 'meteor add' and 'meteor remove' will edit this file for you,
# but you can also edit it by hand.
less
iron:router
accounts-password
aldeed:collection2
aldeed:autoform
accounts-ui-unstyled
twbs:bootstrap
gildaspk:autoform-materialize
meteor-base
mobile-experience
mongo
blaze-html-templates
session
jquery
tracker
logging
reload
random
ejson
spacebars
check
email
cunneen:mailgun
mrt:moment
houston:admin
percolate:synced-cron
patrickml:braintree
meteor-platform
mrgalaxy:stripe
altapp:recaptcha
momentjs:moment
accounts-base
hansoft:logger-mongo
http
fullcalendar:fullcalendar
mrt:twilio-meteor
useraccounts:bootstrap
cfs:standard-packages
cfs:dropbox
cfs:filesystem
peppelg:bootstrap-3-modal
rajit:bootstrap3-datepicker
aldeed:autoform-bs-datepicker
themeteorchef:bert
thinksoftware:image-resize-client
kit:sweetalert
okgrow:router-autoscroll
chart:chart
aslagle:reactive-table
hitchcott:app-dump
reactive-var
standard-minifier-css
standard-minifier-js
usefulio:sync-methods
mnmtanish:call
froatsnook:sleep
jaredmartin:future
jspdf:core
muqube:autoform-nouislider
simple:reactive-method
remcoder:chronos
force-ssl
The packages
file looks consistent with Meteor 1.3. I can’t see anything amiss with your settings file, nor with how you’re referencing the data. As long as the file’s being explicitly passed in the meteor
command it should be working.
Maybe someone else could shed some light on this?
:’( i dont understand where is the problem
I came too late to this thread and haven’t seen your settings file, but according to the error message Meteor.settings.private.BT_PRIVATE_KEY
does not exist, or more precisely Meteor.settings.private
is not defined.