-
Notifications
You must be signed in to change notification settings - Fork 8.8k
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
Migration failure moving from 0.124.0 to 0.183.0 #3576
Comments
@SpeedHighway Do you by any chance have the older version of n8n still running? |
@netroy No, definitely not. And the operation not permitted claims to be having errors with trying to read things that have nothing to do with the project whatsoever. The powershell window that was running n8n is the same one I used to upgrade, so it was shut down first. (Also, I've installed globally, so it would have fought me if I'd tried to update while it was in-use.) I don't know why it would be trying these arbitrary locations for reading anyways, as the .n8n pieces are all in Additionally, I found the error.log file, just now, and it has a stack trace:
|
@SpeedHighway can you please run this on your console Hopefully the output will be |
Yes, the output was exactly that (with my actual username, of course) :) |
in that case I'm not sure what could be causing the code to read from those directories. but to unblock you, I'd suggest you try exporting the data, and then re-importing on a fresh n8n instance. Step 1: export the data
Step 2: rename Step 3: import the data
|
@netroy Ty for the suggestion. I've attempted the commands and while the exports appear to have worked, the credentials refuse to import.
(I did check the json files in the credentials folder and there's 3 and they seems pretty straightfoward) |
looks like the credentials importing code wasn't adapting to windows paths, and hence not finding any of the JSON files. I've opened a PR to fix this. Hopefully this will help unblock you. |
@SpeedHighway Can you please try again with |
@netroy I suspected that this solution might have resolved both the import and the migration, so I tested just running n8n first. Migration succeeded this time due to the ability to properly import the credentials. |
I also just tried the import command to verify that it works. Aside from the fact that npx doesn't want to use the (npm) globally installed n8n, it did successfully import (into the new n8n that it installed). |
Describe the bug
Attempting to upgrade my n8n release from 0.124.0 to the newest version appears to attempt SQL migration, but then immediately fails trying to reach a folder that does not, and never would have, existed.
The following text displays:
To Reproduce
Steps to reproduce the behavior:
npm install -g npm@8.12.2
)npm update -g n8n
)n8n
from the command line)Expected behavior
n8n successfully starts, and I can navigate my existing workflows.
Environment (please complete the following information):
Additional context
Running a 2nd time results in the migration removing the temp table, and still failing with the same error, but a 3rd time shows the same results as in the description:
I also tried running this from my user folder (though it didn't matter where I ran it from previously) and it fails to access the
Application Data
folder within.The text was updated successfully, but these errors were encountered: