Comments (14)
For Windows users try the following command using an admin level command prompt in your PT folder:
mklink /h ProfitTrailerData.json .\data\ProfitTrailerData.json
from ptmagic.
Ok so if you are on a Unix VPS run the following command in your Profit Trailer folder:
ln -s ./data/ProfitTrailerData.json ProfitTrailerData.json
This will create a symbolic link to the real PT data file and let PTMagic find it
from ptmagic.
I have made a fixed version of PTM and you can get it from: https://github.com/djbadders/ptmagic/releases
I have requested a Pull of the changes into the main PTM.
from ptmagic.
Trying to open the SalesAnalyzer in PTM results in:
Error.
An error occurred while processing your request.
Request ID: 0HLFNQ3JSFUQS:00000001Could not find file '[Path to PT folder]/ProfitTrailerData.json'.
at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirectory, Func`2 errorRewriter) at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options) at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize) at System.IO.File.InternalReadAllText(String path, Encoding encoding) at System.IO.File.ReadAllText(String path) at Core.Main.DataObjects.ProfitTrailerData..ctor(String ptmBasePath, PTMagicConfiguration systemConfiguration) in D:\Tools\ptmagic-github\Core\DataObjects\ProfitTrailerData.cs:line 24 at Monitor.Pages.SalesAnalyzer.BindData() in D:\Tools\ptmagic-github\Monitor\Pages\SalesAnalyzer.cshtml.cs:line 28 at Microsoft.AspNetCore.Mvc.RazorPages.Internal.ExecutorFactory.VoidHandlerMethod.Execute(Object receiver, Object[] arguments) at Microsoft.AspNetCore.Mvc.RazorPages.Internal.PageActionInvoker.InvokeHandlerMethodAsync() at Microsoft.AspNetCore.Mvc.RazorPages.Internal.PageActionInvoker.InvokeNextPageFilterAsync() at Microsoft.AspNetCore.Mvc.RazorPages.Internal.PageActionInvoker.Rethrow(PageHandlerExecutedContext context) at Microsoft.AspNetCore.Mvc.RazorPages.Internal.PageActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.RazorPages.Internal.PageActionInvoker.InvokeInnerFilterAsync() at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeNextResourceFilter() at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Rethrow(ResourceExecutedContext context) at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeFilterPipelineAsync() at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeAsync() at Microsoft.AspNetCore.Builder.RouterMiddleware.Invoke(HttpContext httpContext) at Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.Invoke(HttpContext context)
from ptmagic.
Same here, the issue makes sense as they moved the ProfitTrailerData.json to under the data folder now instead of the root of the PT folder.
from ptmagic.
Thank you, that did the trick.
from ptmagic.
Hmmm I don't think it is related as the command is just making a symbolic link to the moved data file and this error looks more like communicating with the PT configuration web service.
from ptmagic.
Thanks for the quick workaround.
from ptmagic.
I~~~~~~ ~~
from ptmagic.
sorry i am not a coder, can you provide a step by step guide? thanks
from ptmagic.
@bitnick21 You need to open the command prompt, right click run as administrator. Then you need to change directories into your ProfitTrailer folder then type the command @djbadders posted. I'm not going to explain dos commands to you there is Google for that. Good luck. :)
from ptmagic.
@djbadders can you help me with the comand for a RPi with debian?
from ptmagic.
It would be the same command for any Unix distro:
ln -s ./data/ProfitTrailerData.json ProfitTrailerData.json
from ptmagic.
followed all instructions still monitor not working
from ptmagic.
Related Issues (20)
- Wich files should I copy when UPGRADE HOT 1
- New PTmagic on PT 2 ERRORed OUT@ Loading current Profit Trailer properties from API...
- Update NLog to latest version, instead of BETA
- Market Data Errorr HOT 1
- implementation of new PT 2.1 features such as StochRSI?
- Can't create a branch to help develop HOT 1
- PTMagic 2.0.3 not working on Ubuntu
- Problem with PTMagic Monitor v2.0.3 running in Ubuntu 17.10 64bit
- Monitor not working no more with PT 2.1 even followed djbladder instructions HOT 2
- PTMagic - unable to load ProfitTrailerData.json (because was not created) HOT 1
- Some trends showing as ∞ HOT 2
- Monitor is redirecting (to "ip:port/pt-magic-path") & does not open (http Error 440)
- PTMM doesnt show last sales HOT 2
- java.lang.IllegalStateException: Form too large: 228838 > 200000 HOT 1
- PT Magic Discord Channel? HOT 1
- version 2.0.5 monitor issue HOT 8
- updating 2.0.3 to 2.0.5 HOT 2
- >> README << PTMagic has MOVED to a New GITHUB
- PT Magic Monitor Permission problem in Raspberry Pi
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ptmagic.