cincheo / jsweet

A Java to JavaScript transpiler.
http://www.jsweet.org
Other
1.45k stars 159 forks source link

Error 500 with repository.jsweet.org (Internal Server Error). Something wrong with the server? #718

Closed mathieu-bergeron closed 2 years ago

mathieu-bergeron commented 2 years ago

Hi,

As of today (Feb 25 2022), I'm getting some Error 500 in my Gradle build (from repository.jsweet.org). Is there something wrong with the server?

I've tested with the jsweet-quickstart and the maven build also fails with similar errors:

[ERROR] Failed to execute goal org.jsweet:jsweet-maven-plugin:3.1.0:jsweet (generate-js) on project jsweet-quickstart: Execution generate-js of goal org.jsweet:jsweet-maven-plugin:3.1.0:jsweet failed: Plugin org.jsweet:jsweet-maven-plugin:3.1.0 or one of its dependencies could not be resolved: Failed to collect dependencies at org.jsweet:jsweet-maven-plugin:jar:3.1.0 -> org.jsweet:jsweet-transpiler:jar:3.1.0 -> org.jsweet.ext:typescript.java-ts.core:jar:2.0.3: Failed to read artifact descriptor for org.jsweet.ext:typescript.java-ts.core:jar:2.0.3: Could not transfer artifact org.jsweet.ext:typescript.java-ts.core:pom:2.0.3 from/to jsweet-plugins-release (https://repository.jsweet.org/artifactory/plugins-release-local): Received fatal alert: internal_error -> [Help 1] Warmly, Mathieu

PS: In Gradle, I have the following errors:


> Could not resolve org.jsweet.ext:typescript.java-ts.core:2.0.3.
  Required by:
      unspecified:unspecified:unspecified > org.jsweet:jsweet-gradle-plugin:3.1.0 > org.jsweet:jsweet-transpiler:3.1.0
   > Could not resolve org.jsweet.ext:typescript.java-ts.core:2.0.3.
      > Could not get resource 'http://repository.jsweet.org/artifactory/libs-release-local/org/jsweet/ext/typescript.java-ts.core/2.0.3/typescript.java-ts.core-2.0.3.pom'.
         > Could not GET 'http://repository.jsweet.org/artifactory/libs-release-local/org/jsweet/ext/typescript.java-ts.core/2.0.3/typescript.java-ts.core-2.0.3.pom'. Received status code 500 from server: Internal Server Error
> Could not resolve org.jsweet.ext:sourcemap-builder:1.0.0.
  Required by:
      unspecified:unspecified:unspecified > org.jsweet:jsweet-gradle-plugin:3.1.0 > org.jsweet:jsweet-transpiler:3.1.0
   > Could not resolve org.jsweet.ext:sourcemap-builder:1.0.0.
      > Could not get resource 'http://repository.jsweet.org/artifactory/libs-release-local/org/jsweet/ext/sourcemap-builder/1.0.0/sourcemap-builder-1.0.0.pom'.
         > Could not GET 'http://repository.jsweet.org/artifactory/libs-release-local/org/jsweet/ext/sourcemap-builder/1.0.0/sourcemap-builder-1.0.0.pom'. Received status code 500 from server: Internal Server Error
lgrignon commented 2 years ago

Hello @mathieu-bergeron

We are currently working on this. Migrating DNS to a new service. Sorry for this temporary inconvenience.

mathieu-bergeron commented 2 years ago

No worries. Thanks :) Mathieu

lgrignon commented 2 years ago

We fixed it this morning. Is it working for you? Please close this issue if this is the case

mathieu-bergeron commented 2 years ago

It works! Thanks a bunch and thank you for JSweet, it's an awesome project :)

Bonne journée! Mathieu

mathieu-bergeron commented 2 years ago

Oh crap, the error is back! Sorry to be the bearer of bad news ;-) Mathieu

PS: I've tested jsweet-quickstart from home and from a server (in a different network) and I have the same Error 500 I had Friday:

[ERROR] Failed to execute goal org.jsweet:jsweet-maven-plugin:3.1.0:jsweet (generate-js) on project jsweet-quickstart: Execution generate-js of goal org.jsweet:jsweet-maven-plugin:3.1.0:jsweet failed: Plugin org.jsweet:jsweet-maven-plugin:3.1.0 or one of its dependencies could not be resolved: Failed to collect dependencies at org.jsweet:jsweet-maven-plugin:jar:3.1.0 -> org.jsweet:jsweet-transpiler:jar:3.1.0 -> org.jsweet.ext:typescript.java-ts.core:jar:2.0.3: Failed to read artifact descriptor for org.jsweet.ext:typescript.java-ts.core:jar:2.0.3: Could not transfer artifact org.jsweet.ext:typescript.java-ts.core:pom:2.0.3 from/to jsweet-plugins-release (https://repository.jsweet.org/artifactory/plugins-release-local): Certificate for <repository.jsweet.org> doesn't match any of the subject alternative names: [jsweet.org, ssl.jsweet.org, www.jsweet.org] -> [Help 1]

renaudpawlak commented 2 years ago

We are struggling with the ssl configuration... sorry about it. It will be eventually fixed but it is quite painful :(

mathieu-bergeron commented 2 years ago

No worries. Just wanted to let you know. Yeah, SSL issues are a pain :(

radman-x commented 2 years ago

I am having the same type of error:

[INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 01:28 min [INFO] Finished at: 2022-02-28T11:23:42-06:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.jsweet:jsweet-maven-plugin:3.1.0:jsweet (generate-js) on project jsweet-quickstart: Execution generate-js of goal org.jsweet:jsweet-maven-plugin:3.1.0:jsweet failed: Plugin org.jsweet:jsweet-maven-plugin:3.1.0 or one of its dependencies could not be resolved: Failed to collect dependencies at org.jsweet:jsweet-maven-plugin:jar:3.1.0 -> org.jsweet:jsweet-transpiler:jar:3.1.0 -> org.jsweet.ext:typescript.java-ts.core:jar:2.0.3: Failed to read artifact descriptor for org.jsweet.ext:typescript.java-ts.core:jar:2.0.3: Could not transfer artifact org.jsweet.ext:typescript.java-ts.core:pom:2.0.3 from/to jsweet-plugins-release (https://repository.jsweet.org/artifactory/plugins-release-local): transfer failed for https://repository.jsweet.org/artifactory/plugins-release-local/org/jsweet/ext/typescript.java-ts.core/2.0.3/typescript.java-ts.core-2.0.3.pom: Certificate for doesn't match any of the subject alternative names: [jsweet.org, ssl.jsweet.org, www.jsweet.org] -> [Help 1] [

renaudpawlak commented 2 years ago

Service is temporary down for SSL migration. Sorry for the inconvenience but unfortunately it is complicated to migrate apparently.

lgrignon commented 2 years ago

Hello @mathieu-bergeron @radman-x Is it better for you? You can try to clear DNS cache. It should be fixed by now.

Please close if it's ok

radman-x commented 2 years ago

Gets closer but still fails -- maybe a different bug? Not sure how to "clear DNS cache" -- please explain.

Also, JSweet sandbox is still down with "Service Unavailable" message (when browsing Chrome to "http://www.jsweet.org/jsweet-live-sandbox/").

Here is the (truncated) error message:

[ERROR] Failed to execute goal org.jsweet:jsweet-maven-plugin:3.1.0:jsweet (generate-js) on project jsweet-quickstart: Execution generate-js of goal org.jsweet:jsweet-maven-plugin:3.1.0:jsweet failed: Unable to load the mojo 'jsweet' in the plugin 'org.jsweet:jsweet-maven-plugin:3.1.0' due to an API incompatibility: org.codehaus.plexus.component.repository.exception.ComponentLookupException: org/jsweet/JSweetMojo has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0

radman-x commented 2 years ago

BTW, thanx for the quick response!

lgrignon commented 2 years ago

Excuse me but this part of the error indicates that it has nothing to do with our recent operations:

 [ERROR] Failed to execute goal org.jsweet:jsweet-maven-plugin:3.1.0:jsweet (generate-js) on project jsweet-quickstart: Execution generate-js of goal org.jsweet:jsweet-maven-plugin:3.1.0:jsweet failed: Unable to load the mojo 'jsweet' in the plugin 'org.jsweet:jsweet-maven-plugin:3.1.0' due to an API incompatibility: org.codehaus.plexus.component.repository.exception.ComponentLookupException: org/jsweet/JSweetMojo has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0

Are you using the proper Java version for your JSweet version? This issue is dedicated to recent backend problems. Please open a new issue for your problem if you still get it after fixing your version (reminder : JSweet 2.x => Java 8, JSweet 3.x => Java >= 11)

Thanks

radman-x commented 2 years ago

@lgrignon Sorry for high jacking this issue, didn't mean to do that.

OK, I finally got this working, both jsweet-quickstart and jsweet-examples. I will open another issue describing what I did because, as you say, this is due to configuration problems, not backend problems.

I am fine closing this issue if @mathieu-bergeron and @lgrignon are OK with it.

lgrignon commented 2 years ago

I am closing it. Please reopen if you still face issue with JSweet's servers