New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to resolve storage 'sequelize' [on Win7 64-bit] #73
Comments
which version of umzug are you using? This issue should be fixed |
I just installed the cli earlier in the morning today. Going through the internal node_modules folder for this module, I notice that Is there a command-line arg or flag to see stacktrace of an error while running the CLI? |
Can you tell me what the result of the following commands are looking like?
|
I created a Instead of creating a new migration from scratch, i just copied the file from my other project folder. I then ran the command: Here's the output:
Can't seem to wrap my head around this. Here's my
Here's the MySQL commandline output detailing the test database
|
Hmm it doesn't seem to use the password, right? I wonder if this problem is related to windows :-/ |
I just tried repeating the same steps on my production server (Amazon EC2 instance with an RHEL AMI). That worked just fine. Here's the output:
You might be right about this problem being related to Windows. Updating the title of this issue to reflect my windows version. Just for future clarity's sake. |
Alright will give this a try on windows :) |
Thanks for the test on a Linux machine! |
Oh, don't mention it. It's the least I can do since I am not equipped to suggest a fix for this myself >.< |
Hmm so this is interesting. I was just running the following stuff on my Win 8.1 machine which uses the github application and its shipped powershell extension (i think its actually just the normal powershell but with some additional paths). I'm running node 0.10.29, cli 1.0.0 and sequelize 2.0.0-rc3. Can you please run the following commands and let me know if you run into any issues?
all these commands ran without any issues for me and correctly created two new tables called foos and sequelizemeta. |
I have the same problem on OSX Yosemite and Mavericks.
But... |
This surely is getting interesting now. So it works fine on Linux (RHEL tested) & Windows 8.1, but fails on Windows7 & OSX Yosemite. The plot thickens... |
Just tried creating a model+migration from the CLI before running
But there's no success message either. No tables were created. However, the bright side is that this time it seems to have read the config.json authentication data like it always should, unlike what happened earlier with me and the copied migration file. |
@Pilaas you installed it globally right? Will give that setup a try |
btw. the fact that it states |
Sure:
|
I see. That seems to be affecting regardless of the platform OS. I can see that happening on both my Win7 and Linux boxes and also on OSX Yosemite as @Pilaas However, I have my doubts regarding the initial problem of the missing |
no it is not related at all. just wanted to say that |
hey @jagged3dge @Pilaas: Can you give it another try with the just released v1.0.1? |
I just checked it out on my local (Win7) machine. I got the AccessDenied Error:
EDIT: Re-checked my config.json. It's still there in
|
Can you tell me again which package you installed locally and which globally? |
I have "coffee-script" installed and it is placed in "dependencies" and "devDependencies" as well. |
@Pilaas CLI is installed globally everything else locally right? So I have to add another local package resolution for coffee-script. |
Yes, my local stack:
And global sequelize-cli:
|
In my test case, I installed all 3 ( |
@jagged3dge I'm pretty sure that we have 2 different problems here. Your's is somehow related to the CLI not finding your configuration file. And then there is the CLI not finding the coffee-script package |
Oh wait I think I missed something |
@Pilaas alright. fixed the missing piece. Would be cool if you could give it a try |
|
@Pilaas should be fixed in 1.0.2 |
Sorry mate for not responding. |
me too :) |
I've updated global and local sequelize-cli to 1.0.2. I havent't installed Now I have following result:
I'm asking because I wonder if this is what you've wanted. |
Everything that is needed to compile from the existing js to something else is now business of the consumer and therefore it is your job to install js2coffee. I think that makes sense. PS: js2coffee was removed in 1.0.2 as dependency |
Ok, I've installed js2coffee after my last message and everything works fine. |
Ah good point. yes will do that! |
@jagged3dge: I just gave this thing another try. My steps:
Note: This prints
The last command results in the following output:
A quick glance into the db results in this: I'm really not sure what is going but everything works perfectly fine for me. Though I'm using Windows 8.1. Can you please execute each of those steps again and show me the output of each step? |
I close this ticket for now. Feel free to re-open it if needed. |
@sdepold I stumbled upon the similar/same issue today:
My DB is postgres. My config is read fine and it works because I am moving our original, written by hand models, to the migration logic. Thanks for the help man! 😃 |
Same issue over here
|
@framled : That happened because sequelize-cli was using the wrong config.json, just make sure all paths in .sequelizerc point to the correct config file and sequelizer folders. my .sequelizerc
|
Hi,
I am using sequelize-cli to migrate new changes to my running solution. Basically, creating a workflow for pushing updates to my MySQL server hosting my test db. I have one migration file named
20141218140725-create-cafe-owner.js
created using the CLI'smigration:create
command. I used thedb:migrate
command and it borked giving me this error:Here's my migration file
migrations/20141218140725-create-cafe-owner.js
:For the sake of completeness, here's my
config/config.json
file as well:I tried to dig through the source, but I am still learning production JS and it seems quite complicated to follow where it's going wrong. After trying to look up this error on Google, I found something about the
Sequelize_meta
table, but could not find such a table in my database.Can anyone guide me in the right direction to alleviate this problem?
The text was updated successfully, but these errors were encountered: