Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

db:dump - sed: RE error: illegal byte sequence - mysqldump: Got errno 32 on write #771

Closed
convenient opened this issue Feb 12, 2016 · 4 comments

Comments

Projects
None yet
4 participants
@convenient
Copy link
Contributor

commented Feb 12, 2016

Error

When running the magerun db:dump command I received the following error.

sed: RE error: illegal byte sequence
mysqldump: Got errno 32 on write

Explanation

I traced it back to the cool definer logic introduced in #130

It turned out to be related to the $LANG variable. My OSX machine had $LANG defined like:

echo $LANG
en_GB.UTF-8

Workaround

We got the dump command to work by running it like

export LANG=C
magerun db:dump

Thanks @dank00 for the workaround.

@cmuench

This comment has been minimized.

Copy link
Member

commented Feb 15, 2016

I confirm this behavior on OSX.
If we prepend LANG=C LC_CTYPE=C LC_ALL=C before sed the problem is gone away.

@dank00

This comment has been minimized.

Copy link
Contributor

commented Feb 15, 2016

Hi @cmuench busy at work at the moment but I've put this here #773

@ktomk

This comment has been minimized.

Copy link
Contributor

commented Feb 15, 2016

This is now part of the development version and will be part of the next stable release. Please update to the unstable version and try again. It should now run w/o the error. Please provide feedback if you can, I'll close for now as I'm confident that it works.

@ktomk ktomk closed this Feb 15, 2016

@convenient

This comment has been minimized.

Copy link
Contributor Author

commented Feb 15, 2016

Bam! If only all issues could be resolved this quickly / easily.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.