Skip to content

Droplet compile step returns error: "bufio.Scanner: token too long" #97

@mainephd

Description

@mainephd

What version of Cloud Foundry and CF CLI are you using? (i.e. What is the output of running cf curl /v2/info && cf version?

What version of the buildpack you are using?
1.6.3

If you were attempting to accomplish a task, what was it you were attempting to do?
I was attempting to deploy an application that uses the ibm_db node_module to cloud foundry and use npm as the package manager for the application.

What did you expect to happen?
I expected the droplet to compile successfully

What was the actual behavior?
The droplet failed to compile with the below error.

---snipped---
99.64% | 18636800 bytes downloaded out of 18703240 bytes.
99.69% | 18644992 bytes downloaded out of 18703240 bytes.
99.73% | 18653184 bytes downloaded out of 18703240 bytes.
99.78% | 18661376 bytes downloaded out of 18703240 bytes.
99.82% | 18669568 bytes downloaded out of 18703240 bytes.
99.86% | 18677760 bytes downloaded out of 18703240 bytes.
99.91% | 18685952 bytes downloaded out of 18703240 bytes.
100.00% | 18702336 bytes downloaded out of 18703240 bytes.
99.95% | 18694144 bytes downloaded out of 18703240 bytes.
100.00% | 18703240 bytes downloaded out of 18703240 bytes.
****************************************
You are downloading a package which includes the Node.js module for IBM DB2/Informix.  The module is licensed under the Apache License 2.0. The package also includes IBM ODBC and CLI Driver
 from IBM, which is automatically downloaded as the node module is installed on your system/device. The license agreement to the IBM ODBC and CLI Driver is available in /tmp/app/node_module
s/ibm_db/installer   Check for additional dependencies, which may come with their own license agreement(s). Your use of the components of the package and dependencies constitutes your accep
tance of their respective license agreements. If you do not accept the terms of any license agreement(s), then delete the relevant component(s) from your device.

****************************************
Downloading and extraction of DB2 ODBC CLI Driver completed successfully ...
make: Entering directory `/tmp/app/node_modules/ibm_db/build'
  CXX(target) Release/obj.target/odbc_bindings/src/odbc.o
  CXX(target) Release/obj.target/odbc_bindings/src/odbc_connection.o
  CXX(target) Release/obj.target/odbc_bindings/src/odbc_statement.o
  CXX(target) Release/obj.target/odbc_bindings/src/odbc_result.o
  SOLINK_MODULE(target) Release/obj.target/odbc_bindings.node
  COPY Release/odbc_bindings.node
make: Leaving directory `/tmp/app/node_modules/ibm_db/build'
added 138 packages in 75.975s
-----> Caching build
       Clearing previous node cache
       Saving 3 cacheDirectories (default):
       - .npm
       - .cache/yarn
       - bower_components (nothing to cache)
       **ERROR** bufio.Scanner: token too long
Failed to compile droplet
Exit status 223
Staging failed: Exited with status 223
Destroying container
Successfully destroyed container

FAILED
Error restarting application: BuildpackCompileFailed

Please confirm where necessary:

  • I have included a log output
  • My log includes an error message
  • I have included steps for reproduction

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions