System won't start after upgrade if local plugin is enabled #5066
-
I have had the IPN validation plugin installed locally and running for a few month now. The version information was: Today I upgraded to the latest development version but then the system will not start if the plug in is enabled. The Supervisor status is OK: But the system is not responding and if I look in the cluster.err.log the logging stops after If I disable the plugin before the upgrade the system starts as it should and the log also continues to be populated as below I know there has been recent changes related to plugins but what I can find nothing that should prevent local installation in the |
Beta Was this translation helpful? Give feedback.
Replies: 12 comments 11 replies
-
It seems to run on master for me. Can you try a higher log level? |
Beta Was this translation helpful? Give feedback.
-
The log level is already set to DEBUG: But I noticed another strange thing, after the upgrade I cannot open the "About" dialog... I get this error: Can it be related? As a test I restarted again with a copy of my working system and deleted the plugin before i did the upgrade and I still get the "About" error above. Full version info för my working copy: Version Information:InvenTree-Version: 0.11.0 dev Then I upgrade to the master commit 2e8fb2a If I click the "show error information" there is a lot of info, but this is a screenshot of the beginning: I have not a clue if this is related to the plugin problem and how to approach this... Another thing I have noticed is a warning when I run 'invoke update': Applying part.0109_auto_20230517_1048...System check identified some issues: If you have any suggestions it's very appreciated. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I have narrowed down the problem a bit. The last commit I can apply is 2ed7eef. |
Beta Was this translation helpful? Give feedback.
-
Sorry, I have missed the python 3.9 requirment :-( |
Beta Was this translation helpful? Give feedback.
-
Now I have upgraded to Python3.9.17 but the problem with loading the plugin is still there. It works fine up to commit 2ed7eef but when I upgrade to 58a33c2 it leaves the system in the same state as described above. This is before the upgrade: Version Information: One thing I noted on the terminal log is that during 'invoke update' it stops for around half a minute each time it reaches the |
Beta Was this translation helpful? Give feedback.
-
@matmair When you got the plugin working with the latest master where did you install it? As I never managed to find out why it's not discovered when I point towards an "external" folder I have put it just under |
Beta Was this translation helpful? Give feedback.
-
I just cannot get my arms around what is going on here... I have before just copied the 'validate_ipn_unique' folder to the 'src/InvenTree/plugins/' and as the problem starts when applying the commit where Dulwich is added I thougt it might be so that I had to clone the complete git repo as you do. I tried but with the same result - as soon as I enable the plugin the InvenTree web pages do no longer load - just this little round circle. Do you know if there are any OS related prerequisites for Dulwich I might have missed? I'm running the system on a barebone Ubuntu 20.04 as a VM but it's all updated to latest status. I found in the 'server.err.log' that it's actually never starting if the plugin is enabled. Below is a section of the log when booting with the plugin enabled. So there is obiously a timeout that happens. And if you see in the attached complete log it's just restarting over and over again - forever...
server.err.log - plugin enabled.txt |
Beta Was this translation helpful? Give feedback.
-
@SchrodingersGat Seems correct, question is why... The VM was configured with 1CPU and 4GB ram, this is the load with the plugin not enabled: The same config with the plugin enabled: Reconfigured with 4CPU and 8GB ram So although the VM was a bit under dimentioned it's not the root cause. As you suggest it's rather that it's gettgin stuck in a loop. Any suggestion how to identify where? |
Beta Was this translation helpful? Give feedback.
-
@gunstr can you try installing |
Beta Was this translation helpful? Give feedback.
-
Tests I have done:
Conclutions:
|
Beta Was this translation helpful? Give feedback.
-
Continue testing....
What is really the root cause I do not know... Both files have the same permissions, are coded with UTF-8 and Unix LF but some kind of difference between those two files are bringing the system into the endless loop if I do not just reuse the existing file. Could it be something low level git related that is not visible just looking at the actual files? And when the same files are located in 'src/InvenTree/plugins/' it does not work at all. One difference between the two locations is obviously that the 'src/InvenTree/plugins/' is untracked by git - could be an idication for something related to git also here? |
Beta Was this translation helpful? Give feedback.
Issue opened here - #5081