YunoHost-Apps / pgadmin_ynh

PostgreSQL web admin tool package for YunoHost
https://www.pgadmin.org/
GNU General Public License v2.0
5 stars 2 forks source link

Installation never ends due to grep failing #6

Closed nicofrand closed 4 years ago

nicofrand commented 4 years ago

Hi!

I get this in a loop when upgrading/installing the app:

368350 DEBUG + for i in $(seq 1 $timeout)
368351 DEBUG + grep --extended-regexp --quiet 'WSGI app 0 (mountpoint='\''/pgadmin'\'') ready in [[:digit:]]* seconds on interpreter' /tmp/tmp.xuGvi24Pev                                                                                    368353 DEBUG + '[' 5 -eq 3 ']'
368354 DEBUG + '[' 5 -ge 3 ']'                                                                                                                                                                                                               368356 DEBUG + echo -n .                                                                                            
368357 DEBUG + sleep 1                                                                                                                                                                                                                       369361 DEBUG + for i in $(seq 1 $timeout)
369364 DEBUG + grep --extended-regexp --quiet 'WSGI app 0 (mountpoint='\''/pgadmin'\'') ready in [[:digit:]]* seconds on interpreter' /tmp/tmp.xuGvi24Pev                                                                                    369366 DEBUG + '[' 6 -eq 3 ']'          
369369 DEBUG + '[' 6 -ge 3 ']'                                                                                                                                                                                                               369371 DEBUG + echo -n .      
369373 DEBUG + sleep 1          

When checking the actual file I see:

│WSGI app 0 (mountpoint='/pgadmin') ready in 38 seconds on interpreter 0x559347bddd90 pid: 7298 (default app)

So my guess is that the grep fails, resulting in an infinite loop.

nicofrand commented 4 years ago

Works without --extended-regexp.

nicofrand commented 4 years ago

( and ) need to be escaped.