pwa-builder / PWABuilder

The simplest way to create progressive web apps across platforms and devices. Start here. This repo is home to several projects in the PWABuilder family of tools.
https://docs.pwabuilder.com
Other
2.79k stars 287 forks source link

Error generating android package #2631

Closed carlosasjr closed 2 years ago

carlosasjr commented 2 years ago

I received the following error when generating a package for https://maisvendas.netlify.app

Error: Error generating Android package. Status code: 500 Error: Internal Server Error Details: Error generating app package: Command failed: keytool -genkeypair -dname "cn=Softpro +Vendas Admin, ou=Engineering, o=Softpro +Vendas, c=US" -alias "my-key-alias" -keypass "iupFmcGyBz8M" -keystore "/tmp/pwabuilder-cloudapk--26-z8DUdE1ggpon/signingKey.keystore" -storepass "YYOf9_FUIVJq" -validity 20000 -keyalg RSA

cmd: keytool -genkeypair -dname "cn=Softpro +Vendas Admin, ou=Engineering, o=Softpro +Vendas, c=US" -alias "my-key-alias" -keypass "iupFmcGyBz8M" -keystore "/tmp/pwabuilder-cloudapk--26-z8DUdE1ggpon/signingKey.keystore" -storepass "YYOf9_FUIVJq" -validity 20000 -keyalg RSA code: 1 stack: Error: Command failed: keytool -genkeypair -dname "cn=Softpro +Vendas Admin, ou=Engineering, o=Softpro +Vendas, c=US" -alias "my-key-alias" -keypass "iupFmcGyBz8M" -keystore "/tmp/pwabuilder-cloudapk--26-z8DUdE1ggpon/signingKey.keystore" -storepass "YYOf9_FUIVJq" -validity 20000 -keyalg RSA

at ChildProcess.exithandler (child_process.js:308:12)
at ChildProcess.emit (events.js:314:20)
at maybeClose (internal/child_process.js:1022:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5)
ghost commented 2 years ago

Hello carlosasjr, thank you for opening an issue with us!

I have automatically added a "needs triage" label to help get things started. Our team will investigate the issue and help solve it ASAP. Other community members may also look into the issue and provide feedback 🙌

Jaylyn-Barbee commented 2 years ago

Hello @carlosasjr,

The issue is here "cn=Softpro +Vendas Admin" and also " o=Softpro +Vendas", in particular, the plus sign is causing the issue. This is a bug in the Google Bubblewrap code, which PWABuilder relies on to build your Android package. Before you generate your package, click "All settings" and scroll down to the signing key section of the options modal. It should look like this:

image

I was able to generate a package with these options. Please try again and let me know if your problem persists.

ghost commented 2 years ago

This issue has been automatically marked as "no-recent-activity" because it requires author feedback but has not had any activity for 7 days. It will be closed if no further activity occurs within 7 days of this comment.