Comments (9)
As far as I know, we are not performing any pre-processing for the service declaration file (configuration). We pass the file name as-is as a parameter to the docker-compose
binary - unless the config is provided as a string (using configAsString
option).
So more likely culprit would be the output of a container. I'll need to check what we can do to store it in a different manner.
from docker-compose.
@AlexZeitler This is happening on my machine. I have 8 GB of RAM. This never happened on my other machine though, so it could be resources related. But then again, I think it should work on every machie.
@Steveb-p Like I mentioned above, this is coming from wp-env
, but I'm on a slightly weaker laptop at this time, which is probably what's causing it. My specs look like this:
The exact line of code throwing is in wp-env
: https://github.com/WordPress/gutenberg/blob/trunk/packages/env/lib/commands/start.js#L115
I believe that simply buffering would solve this issue rather than trying to read a gigantic string at once. Like you said. That's the most common suggestion for this error around the internet.
from docker-compose.
0x1fffffe8
is 512 MB. Is this happening on a machine (maybe a CI process) which only provides this amount of RAM?
from docker-compose.
Depending on the actual code we might be able to circumvent the issue by using Buffer.slice
instead. But we would need to pinpoint the exact location where is happens in non-minified code.
Nonetheless, could you provide more context @dugajean ? We had reports related to Wordpress before, but overall it seemed to be working properly. Is there anything different in your application, that could be related?
from docker-compose.
Any news here? This is still happening sometimes, unfortunately.
from docker-compose.
@dugajean Which images do you try to pull here?
@Steveb-p Do you understand where this happens? Is this stdout/stderr buffer?
from docker-compose.
@AlexZeitler Here's the docker-compose file
{
"version": "3.7",
"services": {
"mysql": {
"image": "mariadb",
"ports": [
"3306"
],
"environment": {
"MYSQL_ROOT_PASSWORD": "password",
"MYSQL_DATABASE": "wordpress"
},
"volumes": [
"mysql:/var/lib/mysql"
]
},
"tests-mysql": {
"image": "mariadb",
"ports": [
"3306"
],
"environment": {
"MYSQL_ROOT_PASSWORD": "password",
"MYSQL_DATABASE": "tests-wordpress"
},
"volumes": [
"mysql-test:/var/lib/mysql"
]
},
"wordpress": {
"build": ".",
"depends_on": [
"mysql"
],
"image": "wordpress:php7.4",
"ports": [
"${WP_ENV_PORT:-8890}:80"
],
"environment": {
"WORDPRESS_DB_USER": "root",
"WORDPRESS_DB_PASSWORD": "password",
"WORDPRESS_DB_NAME": "wordpress"
},
"volumes": [
"/Users/project/local/wordpress:/var/www/html",
"/Users/project/wp-content/plugins:/var/www/html/wp-content/plugins",
"/Users/project/wp-content/uploads:/var/www/html/wp-content/uploads",
"/Users/project/wp-content/themes:/var/www/html/wp-content/themes",
"/Users/project/wp-content/mu-plugins:/var/www/html/wp-content/mu-plugins"
]
},
"tests-wordpress": {
"depends_on": [
"tests-mysql"
],
"image": "wordpress:php7.4",
"ports": [
"${WP_ENV_TESTS_PORT:-8891}:80"
],
"environment": {
"WORDPRESS_DB_USER": "root",
"WORDPRESS_DB_PASSWORD": "password",
"WORDPRESS_DB_NAME": "tests-wordpress",
"WORDPRESS_DB_HOST": "tests-mysql"
},
"volumes": [
"/Users/username/.wp-env/feeccf209cc7c87fe55317936d452b23/tests-wordpress:/var/www/html",
"/Users/project/local/wordpress/.htaccess:/var/www/html/.htaccess",
"/Users/project/local/wordpress/index.php:/var/www/html/index.php",
"/Users/project/local/wordpress/license.txt:/var/www/html/license.txt",
"/Users/project/local/wordpress/mysql.sql:/var/www/html/mysql.sql",
"/Users/project/local/wordpress/phpunit-wp-config.php:/var/www/html/phpunit-wp-config.php",
"/Users/project/local/wordpress/readme.html:/var/www/html/readme.html",
"/Users/project/local/wordpress/wp-activate.php:/var/www/html/wp-activate.php",
"/Users/project/local/wordpress/wp-admin:/var/www/html/wp-admin",
"/Users/project/local/wordpress/wp-blog-header.php:/var/www/html/wp-blog-header.php",
"/Users/project/local/wordpress/wp-comments-post.php:/var/www/html/wp-comments-post.php",
"/Users/project/local/wordpress/wp-cron.php:/var/www/html/wp-cron.php",
"/Users/project/local/wordpress/wp-includes:/var/www/html/wp-includes",
"/Users/project/local/wordpress/wp-links-opml.php:/var/www/html/wp-links-opml.php",
"/Users/project/local/wordpress/wp-load.php:/var/www/html/wp-load.php",
"/Users/project/local/wordpress/wp-login.php:/var/www/html/wp-login.php",
"/Users/project/local/wordpress/wp-mail.php:/var/www/html/wp-mail.php",
"/Users/project/local/wordpress/wp-settings.php:/var/www/html/wp-settings.php",
"/Users/project/local/wordpress/wp-signup.php:/var/www/html/wp-signup.php",
"/Users/project/local/wordpress/wp-trackback.php:/var/www/html/wp-trackback.php",
"/Users/project/local/wordpress/xmlrpc.php:/var/www/html/xmlrpc.php",
"/Users/project/wp-content/plugins:/var/www/html/wp-content/plugins",
"/Users/project/wp-content/uploads:/var/www/html/wp-content/uploads",
"/Users/project/wp-content/themes:/var/www/html/wp-content/themes",
"/Users/project/wp-content/mu-plugins:/var/www/html/wp-content/mu-plugins"
]
},
"cli": {
"depends_on": [
"wordpress"
],
"image": "wordpress:cli-php7.4",
"volumes": [
"/Users/project/local/wordpress:/var/www/html",
"/Users/project/wp-content/plugins:/var/www/html/wp-content/plugins",
"/Users/project/wp-content/uploads:/var/www/html/wp-content/uploads",
"/Users/project/wp-content/themes:/var/www/html/wp-content/themes",
"/Users/project/wp-content/mu-plugins:/var/www/html/wp-content/mu-plugins"
],
"user": "33:33",
"environment": {
"WORDPRESS_DB_USER": "root",
"WORDPRESS_DB_PASSWORD": "password",
"WORDPRESS_DB_NAME": "wordpress"
}
},
"tests-cli": {
"depends_on": [
"tests-wordpress"
],
"image": "wordpress:cli-php7.4",
"volumes": [
"/Users/dugi/.wp-env/feeccf209cc7c87fe55317936d452b23/tests-wordpress:/var/www/html",
"/Users/project/local/wordpress/.htaccess:/var/www/html/.htaccess",
"/Users/project/local/wordpress/index.php:/var/www/html/index.php",
"/Users/project/local/wordpress/license.txt:/var/www/html/license.txt",
"/Users/project/local/wordpress/mysql.sql:/var/www/html/mysql.sql",
"/Users/project/local/wordpress/phpunit-wp-config.php:/var/www/html/phpunit-wp-config.php",
"/Users/project/local/wordpress/readme.html:/var/www/html/readme.html",
"/Users/project/local/wordpress/wp-activate.php:/var/www/html/wp-activate.php",
"/Users/project/local/wordpress/wp-admin:/var/www/html/wp-admin",
"/Users/project/local/wordpress/wp-blog-header.php:/var/www/html/wp-blog-header.php",
"/Users/project/local/wordpress/wp-comments-post.php:/var/www/html/wp-comments-post.php",
"/Users/project/local/wordpress/wp-cron.php:/var/www/html/wp-cron.php",
"/Users/project/local/wordpress/wp-includes:/var/www/html/wp-includes",
"/Users/project/local/wordpress/wp-links-opml.php:/var/www/html/wp-links-opml.php",
"/Users/project/local/wordpress/wp-load.php:/var/www/html/wp-load.php",
"/Users/project/local/wordpress/wp-login.php:/var/www/html/wp-login.php",
"/Users/project/local/wordpress/wp-mail.php:/var/www/html/wp-mail.php",
"/Users/project/local/wordpress/wp-settings.php:/var/www/html/wp-settings.php",
"/Users/project/local/wordpress/wp-signup.php:/var/www/html/wp-signup.php",
"/Users/project/local/wordpress/wp-trackback.php:/var/www/html/wp-trackback.php",
"/Users/project/local/wordpress/xmlrpc.php:/var/www/html/xmlrpc.php",
"/Users/project/wp-content/plugins:/var/www/html/wp-content/plugins",
"/Users/project/wp-content/uploads:/var/www/html/wp-content/uploads",
"/Users/project/wp-content/themes:/var/www/html/wp-content/themes",
"/Users/project/wp-content/mu-plugins:/var/www/html/wp-content/mu-plugins"
],
"user": "33:33",
"environment": {
"WORDPRESS_DB_USER": "root",
"WORDPRESS_DB_PASSWORD": "password",
"WORDPRESS_DB_NAME": "tests-wordpress",
"WORDPRESS_DB_HOST": "tests-mysql"
}
},
"composer": {
"image": "composer",
"volumes": [
"/Users/project:/app"
]
},
"phpunit": {
"image": "wordpressdevelop/phpunit:8-php-7.4-fpm",
"depends_on": [
"tests-wordpress"
],
"volumes": [
"/Users/dugi/.wp-env/feeccf209cc7c87fe55317936d452b23/tests-wordpress:/var/www/html",
"/Users/project/local/wordpress/.htaccess:/var/www/html/.htaccess",
"/Users/project/local/wordpress/index.php:/var/www/html/index.php",
"/Users/project/local/wordpress/license.txt:/var/www/html/license.txt",
"/Users/project/local/wordpress/mysql.sql:/var/www/html/mysql.sql",
"/Users/project/local/wordpress/phpunit-wp-config.php:/var/www/html/phpunit-wp-config.php",
"/Users/project/local/wordpress/readme.html:/var/www/html/readme.html",
"/Users/project/local/wordpress/wp-activate.php:/var/www/html/wp-activate.php",
"/Users/project/local/wordpress/wp-admin:/var/www/html/wp-admin",
"/Users/project/local/wordpress/wp-blog-header.php:/var/www/html/wp-blog-header.php",
"/Users/project/local/wordpress/wp-comments-post.php:/var/www/html/wp-comments-post.php",
"/Users/project/local/wordpress/wp-cron.php:/var/www/html/wp-cron.php",
"/Users/project/local/wordpress/wp-includes:/var/www/html/wp-includes",
"/Users/project/local/wordpress/wp-links-opml.php:/var/www/html/wp-links-opml.php",
"/Users/project/local/wordpress/wp-load.php:/var/www/html/wp-load.php",
"/Users/project/local/wordpress/wp-login.php:/var/www/html/wp-login.php",
"/Users/project/local/wordpress/wp-mail.php:/var/www/html/wp-mail.php",
"/Users/project/local/wordpress/wp-settings.php:/var/www/html/wp-settings.php",
"/Users/project/local/wordpress/wp-signup.php:/var/www/html/wp-signup.php",
"/Users/project/local/wordpress/wp-trackback.php:/var/www/html/wp-trackback.php",
"/Users/project/local/wordpress/xmlrpc.php:/var/www/html/xmlrpc.php",
"/Users/project/wp-content/plugins:/var/www/html/wp-content/plugins",
"/Users/project/wp-content/uploads:/var/www/html/wp-content/uploads",
"/Users/project/wp-content/themes:/var/www/html/wp-content/themes",
"/Users/project/wp-content/mu-plugins:/var/www/html/wp-content/mu-plugins"
],
"environment": {
"LOCAL_DIR": "html",
"WP_PHPUNIT__TESTS_CONFIG": "/var/www/html/phpunit-wp-config.php",
"WORDPRESS_DB_USER": "root",
"WORDPRESS_DB_PASSWORD": "password",
"WORDPRESS_DB_NAME": "tests-wordpress",
"WORDPRESS_DB_HOST": "tests-mysql"
}
}
},
"volumes": {
"mysql": {},
"mysql-test": {},
"phpunit-uploads": {}
}
}
from docker-compose.
This is just a matter of the string becoming too large to process.
from docker-compose.
@Steveb-p How's this looking?
from docker-compose.
Related Issues (20)
- the down method doesn't appear to work HOT 15
- Error running commands on Electron HOT 1
- Add a way to get progress report
- doubt docker-compose HOT 5
- Error running docker-compose HOT 5
- adding a option to set COMPOSE_HTTP_TIMEOUT variable HOT 2
- spawn docker-compose ENOENT on Gitlab CI HOT 1
- rm and stopMany methods have an inconsistent API HOT 10
- How to use npm package docker-compose inside an active container? HOT 5
- ps doesn't output all services -> offset of 1 service HOT 1
- Output ends up in "err" instead of "out" on macos even when exitCode equals 0 HOT 8
- execCompose can throw "RangeError: Invalid string length" HOT 1
- Down options like downOne and downMany HOT 3
- Version 0.24.4 broke packages using that dependency HOT 1
- Support for docker compose watch HOT 3
- integration of list commands HOT 2
- passing env object causes issues HOT 2
- Improve detection if "--detach" should be set HOT 2
- Docker-Compose V2 && ESM + TypeScript HOT 4
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 docker-compose.