-
Notifications
You must be signed in to change notification settings - Fork 50
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
Error /dev/fd/63: No such file or directory (I think process substitution has issues in my target environment) #70
Comments
I would run shmig remotely, but I basically have to run it on the host to work around MySQL's dumb permissions model...dumping the SQL for views and shared procedures doesn't work unless I'm connected from the same IP that created them, and I'm unable to grant my db user permissions to see that regardless of connection IP on this shared host (the fact that MySQL permissions are structured this way is so terrible). |
I'm guessing that somehow I don't have sufficient permissions on this shared host to be able to do process substitution. But I bet command substitution would work for me. You must be using process substitution in case the list of migrations is huge, right? |
thanks for all the details and a patch. i’ll take a look this weekend. |
I see SiteGround uses chroot. I guess their chroot config does not allow access to files under |
Per note on PR, the only potential issue I see is with the change in error handling. The second change in the PR includes a change to loop that already uses PIPESTATUS inside it. Since the patch now uses pipe instead of process substitution, I want to be sure that doesn't change the PIPESTATUS error handling logic inside that loop. |
Yeah probably so. Makes me wish there were a way to control the location of the file used for streaming the output in process substitution |
What happens if you run this in your account: echo abc > /dev/fd/1 ( |
Yep I get As a side note, I tried tunneling the MySQL connection through SSH so I could run |
Something isn't working when trying to run migrations on a wordpress database in SiteGround, but I have no clue how to debug bash... All I see normally is
I think the
read -r
on< <("$src" "$steps")
insidemigrate
is failing, but I'm not sure... maybeawk
behaves differently on this system?But
./shmig pending
works and prints out the one migration, so I'm not sure why looping over the output ofpending_migrations
would fail.If I add
set -x
I get:Output of
uname -a
:Bash is
GNU bash, version 5.2.26(1)-release (x86_64-redhat-linux-gnu)
The text was updated successfully, but these errors were encountered: