Giter Club home page Giter Club logo

Comments (14)

djbadders avatar djbadders commented on August 17, 2024 7

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.

djbadders avatar djbadders commented on August 17, 2024 4

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.

djbadders avatar djbadders commented on August 17, 2024 2

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.

smoochy avatar smoochy commented on August 17, 2024

Trying to open the SalesAnalyzer in PTM results in:

Error.
An error occurred while processing your request.
Request ID: 0HLFNQ3JSFUQS:00000001

Could 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.

djbadders avatar djbadders commented on August 17, 2024

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.

smoochy avatar smoochy commented on August 17, 2024

Thank you, that did the trick.

from ptmagic.

djbadders avatar djbadders commented on August 17, 2024

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.

AussieTerror avatar AussieTerror commented on August 17, 2024

Thanks for the quick workaround.

from ptmagic.

bufonmc avatar bufonmc commented on August 17, 2024

I~~~~~~ ~~

from ptmagic.

Cronos44 avatar Cronos44 commented on August 17, 2024

sorry i am not a coder, can you provide a step by step guide? thanks

from ptmagic.

Chainsaw801 avatar Chainsaw801 commented on August 17, 2024

@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.

js8749 avatar js8749 commented on August 17, 2024

@djbadders can you help me with the comand for a RPi with debian?

from ptmagic.

djbadders avatar djbadders commented on August 17, 2024

It would be the same command for any Unix distro:

ln -s ./data/ProfitTrailerData.json ProfitTrailerData.json

from ptmagic.

cryptomail2018 avatar cryptomail2018 commented on August 17, 2024

followed all instructions still monitor not working

from ptmagic.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.