Skip to content
This repository has been archived by the owner on May 9, 2024. It is now read-only.

Running 10updocker logs phpfpm results in "'trim' of undefined" error #251

Open
tcmulder opened this issue Oct 28, 2021 · 2 comments
Open
Labels
bug Something isn't working

Comments

@tcmulder
Copy link

Describe the bug
When I run 10updocker logs phpfpm I get an error, "Cannot read property 'trim' of undefined". I just recently switched from an old Intel mac to a new M1, not sure if that has anything to do with the bug (I doubt it) but it means I had to install 10updocker; I used to be able to see logs on my old Intel mac's install, but have always received this error on my new M1.

Steps to Reproduce

  1. Run 10updocker logs phpfpm in any running container.

Expected behavior
On my Intel mac, the PHP error logs were output to the terminal. Also,

Environment information

  • Device: MacBook Pro M1
  • OS: MacOS 11.6
  • Docker Desktop version: 4.1.1
  • Browser and version: Chrome 94.0.4606.81
  • WordPress version: 5.8.1

Additional context
Here's what appears in my console:

> 10updocker logs phpfpm
⠹ Checking available services...
Error : Cannot read property 'trim' of undefined

I don't know where logs would be stored, but when I check /var/log/php-fpm it's empty. I'm intentionally causing a 500 error, so something should be getting logged.

@tcmulder tcmulder added the bug Something isn't working label Oct 28, 2021
@tylercherpak
Copy link
Collaborator

Hey @tcmulder 👋

I did a bit of investigating and I believe this is related to PDMLab/docker-compose#178

A work around for now could be to run docker-compose logs phpfpm to watch the logs the docker-compose native way.

Also you can use the docker desktop dashboard to look at the logs as well.

Let me know if you have any questions! Thanks!

@tcmulder
Copy link
Author

Thanks @tylercherpak , I'll just use the docker desktop dashboard for the time being.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants