Issues Running Openboxes locally in windows 10

Forwarded Conversation

image.png

(Attachment errors.txt is missing)

(Attachment tomcat7-stdout.2020-11-03.log is missing)

(Attachment catalina.2020-11-03.log is missing)

(Attachment catalina.2020-11-04.log is missing)

(Attachment tomcat7-stderr.2020-11-04.log is missing)

(Attachment tomcat7-stdout.2020-11-04.log is missing)

(Attachment commons-daemon.2020-11-06.log is missing)

(Attachment catalina.2020-11-06.log is missing)

(Attachment localhost.2020-11-06.log is missing)

(Attachment tomcat7-stdout.2020-11-06.log is missing)

(Attachment tomcat7-stderr.2020-11-06.log is missing)

(Attachment openboxes-config.properties is missing)

(Attachment Error executing bootstraps.txt is missing)

(Attachment Out-Of-Memory.txt is missing)

(Attachment Running-log.txt is missing)

(Attachment Complete_Log.txt is missing)

Thanks for forwarding that email thread. For some reason, unfortunately, it seems like Discourse discarded all of the text and attachments. Not a big deal. I’ll just add the text from your last email and we can discuss that issue here.

E:\openboxes>npm run bundle

> openboxes@1.0.0 bundle E:\openboxes
> webpack --mode=production

clean-webpack-plugin: E:\openboxes\web-app\js\bundle.** has been removed.
clean-webpack-plugin: E:\openboxes\web-app\css\bundle.** has been removed.

 1078:99   error  Expected linebreaks to be 'LF' but found 'CRLF'  linebreak-style
  1079:10   error  Expected linebreaks to be 'LF' but found 'CRLF'  linebreak-style
  1080:4    error  Expected linebreaks to be 'LF' but found 'CRLF'  linebreak-style
  1081:1    error  Expected linebreaks to be 'LF' but found 'CRLF'  linebreak-style
  1082:6    error  Expected linebreaks to be 'LF' but found 'CRLF'  linebreak-style

The following StackOverflow posts address the linebreak issue that you encountered.


I don’t know for sure how to fix the issue, but please try the following suggestions

  1. Run npm with --fix argument to see if it might auto-correct the linebreaks for you.

    npm run bundle --fix
    
  2. Click on the CRLF at the bottom of the Intellij window and choose LF instead.

  3. If neither of those work, check the two posts and see if any of those suggestions work.

  4. As a last resort you can probably disable eslint, but I’m not exactly sure how to do that.

Does anyone else have any ideas?

I could Fix this by right clicking on the folder that had errors and click on Fix ESLint Problems.

So that worked? You’re all set?!?!?

Yes, can access The dashboard and other pages.
Thank you .

Very cool. Let me know if you have any questions about making changes to the code.

My goal is to Integrate my APIs and see if I can use my data with the dashboard and other existing pages. If you have any existing documents or any instructions that I should know or follow before I jump into implementation. Please, let me know.

My goal is to integrate my APIs and see if I can use my data with the dashboard and other existing pages

The short answer is “most likely”, but how we get there is going to require more details. Could you elaborate on your use case?

  • What system are you currently using?
  • What data are you collecting with the current system?
  • Are you trying to complement or replace the current system by using OpenBoxes?
    • Are you trying to migrate the data to OpenBoxes for good?
    • Or is this a data integration project
      • For example, your system notifies OpenBoxes when an event occurs and needs to be notified when some other event occurs within OpenBoxes (e.g. events within a PO workflow)
      • Could you provide some concrete use cases / examples?

7 posts were split to a new topic: Geo-tracking stock movements

I have gone through your Road map initially. It was pretty Interesting. So, One Main point that I want to know .
1.Is there a public database to check all the existing features of OpenBoxes.


I assume this is happening because there is no data ,there are no items to select from dropdown and as the value I enter is not considered .I couldnt check this further. Correct me if Im wrong.

Is there a public database to check all the existing features of OpenBoxes.

Just the demo server.

I assume this is happening because there is no data ,there are no items to select from dropdown and as the value I enter is not considered. I couldn’t check this further. Correct me if I’m wrong.

So the Destination (Location) and Requested By (Person) dropdowns require you to “typeahead”. There’s no default list of options for those (which I’m not a fan of, but I was overruled).The Request Type dropdown should be populated with Stock or Adhoc (is this a recurring or one-time replenishment).

Here’s a video to demonstrate the feature.
https://drive.google.com/file/d/11DYEW5Rx0t2E0iFYcL4NcIhdXMZPFzyr/view

Let me know if you have any other questions.

Just the demo server.

Demo Server served my purpose.
ThankYou.

Hi Justin,
After a Long gap. I’m Back to my work on openboxes, I’m encountering an error when I try to List Outbound. I’m not sure what is causing This.

It might just be an OutOfMemoryError. Did you try to restart the server?

If that doesn’t help post the full stacktrace here and I’ll try to give you some more advice.

Here is the log from the terminal. Are there any other logs that I have to attach for your reference?

Now I see Few More errors linked to Inventory.

(Attachment Terminal_trace.txt is missing)

Thank you, Nuthana. We’ll discuss the other errors in later.

Can you share your code StockMovementController around lines 170-180?

Here’s the relevant stacktrace:

2020-12-19 18:43:56,897 [http-8080-4] INFO  inventory.StockMovementService  - Get stock movements: [id:null, name:null, description:null, statusCode:null, identifier
:null, origin:Boston Headquarters, destination:null, hasManageInventory:true, stocklist:[id:null, name:null], dateRequested:null, dateShipped:null, shipmentType:null
, shipmentStatus:null, trackingNumber:null, driverName:null, comments:null, requestedBy:null, lineItems:[], associations:[requisition:[id:null, requestNumber:null, s
tatus:null], shipment:[id:null, shipmentNumber:null, status:null], shipments:null, documents:null], isFromOrder:false, isShipped:false, isReceived:false, shipped:fal
se, received:false, requestType:null]
2020-12-19 18:43:56,897 [http-8080-4] INFO  inventory.StockMovementService  - Stock movement: PENDING
2020-12-19 18:44:04,604 [http-8080-4] ERROR errors.GrailsExceptionResolver  - Exception occurred when processing request: [GET] /openboxes/stockMovement/list - param
eters:
direction: OUTBOUND
Stacktrace follows:
java.net.ConnectException: Connection refused: connect
        at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)
        at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:85)
        at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
        at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
        at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
        at java.net.Socket.connect(Socket.java:598)
        at org.apache.http.conn.socket.PlainConnectionSocketFactory.connectSocket(PlainConnectionSocketFactory.java:75)
        at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:142)
        at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:376)
        at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:393)
        at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236)
        at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:186)
        at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89)
        at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
        at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)
        at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)
        at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:108)
        at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56)
        at org.apache.http.client.HttpClient$execute.call(Unknown Source)
        at org.pih.warehouse.core.ApiClientService.execute(ApiClientService.groovy:66)
        at org.pih.warehouse.core.ApiClientService$execute.callCurrent(Unknown Source)
        at org.pih.warehouse.core.ApiClientService.get(ApiClientService.groovy:34)
        at org.pih.warehouse.core.ApiClientService$get.call(Unknown Source)
        at org.pih.warehouse.inventory.StockMovementController$_closure10.doCall(StockMovementController.groovy:175)
        at org.pih.warehouse.inventory.StockMovementController$_closure10.doCall(StockMovementController.groovy)
        at grails.plugin.springcache.web.GrailsFragmentCachingFilter.doFilter(GrailsFragmentCachingFilter.groovy:66)
        at net.sf.ehcache.constructs.web.filter.Filter.doFilter(Filter.java:86)
        at org.grails.plugin.resource.DevModeSanityFilter.doFilter(DevModeSanityFilter.groovy:44)
        at java.lang.Thread.run(Thread.java:748)
2020-12-19 18:44:04,624 [http-8080-4] INFO  filters.AccessLogFilters  - errors.handleException: [user:admin, location:Boston Headquarters]
2020-12-19 18:44:05,672 [http-8080-4] INFO  filters.AccessLogFilters  - Request duration for (errors/handleException): 10ms/1035ms
2020-12-19 18:44:05,673 [http-8080-4] INFO  filters.AccessLogFilters  - Request duration for (errors/handleException): 10ms/1036ms