Got the correct directory sorted out, Bricksync starts to run, then the following comes up:-
INIT: Launching BrickSync
INIT: Work directory is "/Users/apple/Downloads/bricksync-osx64".
INIT: Loading configuration at "data/bricksync.conf.txt".
ERROR: Configuration variable bricklink.consumerkey is undefined.
ERROR: Configuration variable bricklink.consumersecret is undefined.
ERROR: Configuration variable bricklink.token is undefined.
ERROR: Configuration variable bricklink.tokensecret is undefined.
ERROR: Configuration variable brickowl.key is undefined.
All keys mentioned have been entered in the file, inserted keys between quotes and then tried without the quotes - to no avail.
Comments
Tyson.
Then, it looks like you are starting BrickSync in bricksync-osx64:
INIT: Work directory is "/Users/apple/Downloads/bricksync-osx64".
But the screenshot is showing the config in "bricksync-osx64 2", so another directory.
Since there is a default config file in the starting folder, it will be empt for the tokens and then the error makes sense.
So start the correct BS (in the bricksync-osx64 2 folder), or copy your config to the correct folder.
Correct screenshot would have shown content as in my first post! - which shows the correct config file!!
Last login: Tue Dec 10 20:51:21 on ttys000
apple@AppleiMac ~ % cd downloads
apple@AppleiMac downloads % cd bricksync-osx64
apple@AppleiMac bricksync-osx64 % ./bricksync
BrickSync 1.6.9 - Build Date Feb 5 2016 05:06:20
Copyright (c) 2014-2016 Alexis Naveros
Contact: Stragus on BrickOwl and BrickLink
Email: [email protected]
Coupon Donations: Stragus on BrickOwl and BrickLink
Paypal Donations: [email protected]
INIT: Launching BrickSync
INIT: Work directory is "/Users/apple/Downloads/bricksync-osx64".
INIT: Loading configuration at "data/bricksync.conf.txt".
INIT: Configuration loaded.
INIT: Resolving IP addresses for API and WEB services.
INFO: No BrickSync state file found!
INFO: We will create a new state file as "/Users/apple/Downloads/bricksync-osx64/data/bricksync.state".
INIT: Fetching BrickOwl user information...
INFO: Fetching the BrickLink Order List...
BL JSON PARSER: Server replied with error code 401.
BL JSON PARSER: Server error message : "BAD_OAUTH_REQUEST".
BL JSON PARSER: Server error description : "TOKEN_IP_MISMATCHED: consumer: 5B4EBD3CECBB4854A1699B3517ED6030 IP: 2.29.75.36".
JSON Parse Errors Encountered
WARNING: BrickLink JSON Parse Error - Saving server reply (429+146 bytes) at path "data/errors-2019-12-11/00000.txt".
WARNING: Bad reply from server, trying again shortly...
BL JSON PARSER: Server replied with error code 401.
BL JSON PARSER: Server error message : "BAD_OAUTH_REQUEST".
BL JSON PARSER: Server error description : "TOKEN_IP_MISMATCHED: consumer: 5B4EBD3CECBB4854A1699B3517ED6030 IP: 2.29.75.36".
JSON Parse Errors Encountered
WARNING: BrickLink JSON Parse Error - Saving server reply (429+146 bytes) at path "data/errors-2019-12-11/00001.txt".
WARNING: Bad reply from server, trying again shortly...
ERROR: Too many connection errors, giving up.
ERROR: Failed to fetch inventory from BrickLink.
ERROR: Fatal error encountered.
ERROR: Exiting now.
Press Enter to exit...
Any ideas - your help is really appreciated
Can you make sure that you start BS in the same folder as the data folder that contains the filled config file?
I have tried, and the only way I'm getting this error is when the 5 keys are left empty, hence only ""
It the config file is not present at all, you get another error
ERROR: Failed to read configuration file at "C:\Users\xxxxxx\Downloads\Series\bricksync-win64-171\bricksync-win64\data\bricksync.conf.txt".
Ran again and above copy comes up identical. Appears to contact server(s) then (extract from above:- BL JSON PARSER: Server error description : "TOKEN_IP_MISMATCHED: consumer: 5B4EBD3CECBB4854A1699B3517ED6030 IP: 2.29.75.36".
That last consumer key and IP address is mine and . Should it be?
In passing - I've asked Bricklink's advice on the security of keeping same keys etc
So yes, it's for fun and the joy that someone can get things done when helped.
The IP shown is BL's IP as far as I know, but the token you must use for Bricklink is (or can) bound to the IP setting you set.
So check your current IP and see if that matches the one on the BL API page. If not add a new access token with the correct IP and use that tokenvalue and tokensecret in the BS config.
Tyson.
Top section 'User Info - no problems although it might be a good idea for me to change the secret (presumably this is no more significant than a simple password - why a different name I don't know) The consumer key is probably useless without it so should be ok to mention it in the forum if required.
Next section 'Call back URL' - what is this for as it is currently blank - should there be something there?
Next Section 'Access Token' - what is an Access Token? presumably something to do with connectivity between Bricklink and Brickowl servers (either between each other of from my end and my IP address. Then Token Value presumably one of the servers Identity with Token secret being again the password for that device?? - and allowed IP being it's address - it is entered as 91.110.123.191?? Mask IP?? - entered as 255.255.255.255?? I notice the delete button here??
Next Final Section - 'Add Access Token' IP address - this has not been filled in?? - and the Mask IP is also 255.255.255.255
Am I out of order here Baskrie? Asking this stuff?
Obtain Access Tokens
"After registering static IP addresses of your endpoint client, you can then access tokens. One (1) access token and one (1) token secret will be issued per IP address.
BrickLink resources are accessible only from the registered location."
What on earth is an "endpoint client" - It is no doubt related to the above Bricklink API settings. In the meantime I will Google it to see if itcomes up with anything useful.
Bit like getting a prescription from your local GP your not meant to understand it coz it's 'magic'! All I can say is pity the poor 'Lego builder"
ConsumerKey is a key given by BL, I think it's static
ConsumerSecret this is the 'password' can be changed by pressing the renew key, it's correlated to your consumerkey
Call back URL, forget about it , it can be empty, it is important in some cases, but don't know, mine is blank too
Access token is the 'password' part but correlated to your IP address. So when your IP changes, this changes to (you have to do it by hand), or it won't work.
91.110.123.191 should be your IP, go to https://www.myip.com/ to check your IP.
255.255.255.255 is correct, I will not get in to details, but in this case it means that only exactly the stated IP can use the token.
But since you use 2 connections, this can be tricky. You can cure this by using 0.0.0.0 for both the IP and mask (you should first press delete, and then enter the zeros in the add section after which you press ADD). Now your keys and tokens can be used from any address, so I could use them from over here in the Netherlands
Not the biggest problem, but make sure you change the ConsumerSecret
An this is used to connect Bricklink to your MAC (BrickSync) which can connect to BrickOwl. There is no direct connection between BL and BO.
Endpoint client is in fact your MAC (in your case), but it's a bit of an obsolete term. Best to forget it
Thank you for the kind words, I'm doing my best.
In short.
Delete the current access token, make a new one with only zeros.
renew consumer key
Get all new keys in the config file
restart Bircksync
Sorry!
Yes Brick sync is now running for which I am very grateful to you - just a bit overwhelmed by the amount of learning that appears to be required. And on a store that is barely 2 months old! Any pointers at what I should know or look at first, in fact any advice at all, or where to look (any youtube videos?) to familiarise myself at the greatest speed....
I am really glad we took the Bricklink API settings page route and you cleared away the unnecessary verbosity in their API manual!
PS what is BasKrie and what is your name or do you prefer to stay anonymous?
Best Wishes Geoff
Bricksync help was a huge guide on the things you can accomplish. Be aware you can screw up your whole inventory with the wrong command.
Tyson.
Glad things worked out with BrickSync.
As Tyson said, when adding inventory via Bricklink (or changing anything in said inventory) make sure you do a blmaster on and blmaster off in BS right after that.
You can do lot more via BS, but that's for later
Allthough the Netherlands isn't a big country, Rotterdam is still 220 km from Assen (bit more than 2 hour drive).
As to what you should do next, there are many things. First of all there is a book about selling Lego, It's called "Insider Secrets to Funding Your LEGO Hobby: How to sell LEGO, make money, and always be happy!"
I haven't bought or read it, but what I heard it's a good place to start.
The best advice I can give you, have fun running the store, don't be disapointed when things don't go as quick as you want, have patience and last don't freak out on the first problem you encounter with an order, just stay calm and deal with it the best you can.
Regards,
Bas (yes that's my real first name, the rest isn't that interesting )