Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

The handle is invalid

Abierto
#185 3 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
35/100
Tipo de issue
Error
Claridad
Necesita aclaración
Estado de actividad
Estancado
Stack tecnológico
azure, github-actions, sql, typescript
Área
ci-cd, databases

Línea de trabajo

Comienza con el punto de entrada del workflow azure/sql-action@v2.2 y la ruta migration-38.sql que se muestran en el run log; reproduce la ejecución en Windows e inspecciona la invocación de sqlcmd mostrada. Se considera terminado cuando el script de migración se ejecuta sin errores repetidos de «The handle is invalid» ni quedarse colgado.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

idle waiting-for-user

When attempting to run a script migration, I'm getting this endlessly until it either times out or I cancel.

2023-08-04 14 45 55

Run azure/sql-action@v2.2
  with:
    connection-string: ***
    path: ./migration-38.sql
  env:
    BUILD_CONFIGURATION: Release
    AZURE_HTTP_USER_AGENT: 
    AZUREPS_HOST_ENVIRONMENT: 
  
##[debug]isExplicit: 1.0.0
##[debug]explicit? true
##[debug]checking cache: C:\hostedtoolcache\windows\go-sqlcmd\1.0.0\x64
##[debug]not found
##[debug]Downloading https://github.com/microsoft/go-sqlcmd/releases/download/v1.0.0/sqlcmd-v1.0.0-windows-x64.zip
##[debug]Destination D:\a\_temp\81a[35](https://github.com/[redacted]/actions/runs/5765555095/job/15631847638#step:5:35)bc3-5e90-4525-b0ed-3e91a0bac914.zip
##[debug]download complete
##[debug]Using pwsh at path: C:\Program Files\PowerShell\7\pwsh.exe
"C:\Program Files\PowerShell\7\pwsh.exe" -NoLogo -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command "$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.ZipFile } catch { } ; try { [System.IO.Compression.ZipFile]::ExtractToDirectory('D:\a\_temp\81a35bc3-5e90-4525-b0ed-3e91a0bac914.zip', 'D:\a\_temp\6506c02c-80c5-4b8e-a902-ac3f8e41[36](https://github.com/[redacted]/actions/runs/5765555095/job/15631847638#step:5:36)ff', $true) } catch { if (($_.Exception.GetType().FullName -eq 'System.Management.Automation.MethodException') -or ($_.Exception.GetType().FullName -eq 'System.Management.Automation.RuntimeException') ){ Expand-Archive -LiteralPath 'D:\a\_temp\81a35bc3-5e90-4525-b0ed-3e91a0bac914.zip' -DestinationPath 'D:\a\_temp\6506c02c-80c5-4b8e-a902-ac3f8e4136ff' -Force } else { throw $_ } } ;"
##[debug]Caching tool go-sqlcmd 1.0.0 x64
##[debug]source dir: D:\a\_temp\6506c02c-80c5-4b8e-a902-ac3f8e4136ff
##[debug]destination C:\hostedtoolcache\windows\go-sqlcmd\1.0.0\x64
##[debug]finished caching tool
##[debug]Get action inputs.
::add-mask::***
::add-mask::***
##[debug]Validating if client has access to 'master' on '[redacted].database.windows.net'.
##[debug]Begin executing sql script
sqlcmd.exe -S [redacted].database.windows.net -d [redacted] -U *** -i ./migration-[38](https://github.com/[redacted]/actions/runs/5765555095/job/15631847638#step:5:39).sql
read ./migration-38.sql: The handle is invalid.
read ./migration-38.sql: The handle is invalid.
read ./migration-38.sql: The handle is invalid.
read ./migration-38.sql: The handle is invalid.
read ./migration-38.sql: The handle is invalid.

Here's the migration step yaml:

      - name: Run DB Migration Script
        uses: azure/sql-action@v2.2
        with:        
          connection-string: ${{ secrets.AZURE_SQL_CONNECTION_STRING }}
          path: './migration-${{ github.run_number }}.sql'

Any ideas?

Lenguaje dominante
TypeScript
Estrellas
142
Forks
73
Merge medio
9 d 18 h
PR fusionados (30 d)
2

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de Azure/sql-action

Todos los issues de Azure/sql-action

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.