Modify

Opened 6 years ago

Closed 6 years ago

#17231 closed task (fixed)

Server update

Reported by: stoecker Owned by: team
Priority: major Milestone:
Component: Core Version:
Keywords: hack-weekend-2018-10 migration Cc: Don-vip

Description

New server is there and installation started

  • created script setupsystem.sh containing the initialisation stuff from README and did these steps
  • copied full backup-file
  • TODO: Finish description how to install from backup in README
  • TODO: a handful setup steps are missing yet.

@Vincent:

  • SSH keys changed
  • When you change something (i.e. in README), changes should be done in parallel on old system
    • Final step will be backup and full copy of josm home directory.

I'll continue tomorrow.

Attachments (1)

yeah.PNG (15.2 KB ) - added by Don-vip 6 years ago.

Download all attachments as: .zip

Change History (52)

comment:1 by Don-vip, 6 years ago

Keywords: hack-weekend-2018-10 migration added
Priority: normalmajor

Yay! Thank you for taking care of it :) Let me know if you face problems with things I would have done on the old server.

comment:2 by stoecker, 6 years ago

@Vincent:
Did most of the stuff. Website is up.

Lots of installation and config instructions moved into "update" and "setupsystem.sh" scripts.

Would be fine if you could have a look at the remaining issues.

When possible add them to the two scripts for automated handling.

NOTE: for "update" some changes are pending. That's wanted - the current config on new server is updated already (mostly :-).

Coverity install instructions don't work.

comment:3 by stoecker, 6 years ago

ImageryCompare also hangs. Don't know why. I already created a dummy config and did set java-8 usage.

in reply to:  2 comment:4 by Don-vip, 6 years ago

Replying to stoecker:

@Vincent:
Did most of the stuff. Website is up.

I can't access https://<ipv4>. I get error message "TracError: IOError: [Errno 13] Permission denied: u'/home/josm/trac/log/trac.log'". Is it expected?

EDIT: I changed logfile owner to josm:www-data as on current server and it works.

Last edited 6 years ago by Don-vip (previous) (diff)

comment:5 by Don-vip, 6 years ago

For ImageryCompare the issue is like the last migration:

$ groovy -v
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.codehaus.groovy.reflection.CachedClass (file:/usr/share/groovy/lib/groovy-2.4.15.jar) to method java.lang.Object.finalize()
WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.reflection.CachedClass
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Groovy Version: 2.4.15 JVM: 10.0.2 Vendor: Oracle Corporation OS: Linux

$ ll /usr/lib/jvm/default-java
lrwxrwxrwx 1 root root 25 Apr  8  2018 /usr/lib/jvm/default-java -> java-1.11.0-openjdk-amd64/

/usr/lib/jvm/default-java must point to a JDK8 for Groovy to work.

comment:6 by Don-vip, 6 years ago

Keywords: server added

Done. Is there another issue?

comment:7 by stoecker, 6 years ago

Keywords: server removed

Ah, seems my rsync call destroyed user permissions. Have to check the call :-)

/usr/lib/jvm/default-java must point to a JDK8 for Groovy to work.

Added to setupsystem.sh

Done. Is there another issue?

Can you check if nexus, sonar, jenkins and all the CI stuff work as expected. I synced whole jenkins stuff to old server, the others are fresh installed.

in reply to:  7 ; comment:8 by Don-vip, 6 years ago

Replying to stoecker:

I synced whole jenkins stuff to old server

Many job definitions are missing (Java-EarlyAccess-Update-JDK, plus those related to Nexus and Sonar)

Sonar doesn't work, I'm looking at it.

in reply to:  8 ; comment:9 by stoecker, 6 years ago

Replying to Don-vip:

Replying to stoecker:

I synced whole jenkins stuff to old server

Many job definitions are missing (Java-EarlyAccess-Update-JDK, plus those related to Nexus and Sonar)

Seems a restart of jenkins helped :-)

Sonar doesn't work, I'm looking at it.

Thanks.

in reply to:  9 comment:10 by Don-vip, 6 years ago

Replying to stoecker:

Sonar doesn't work, I'm looking at it.

Thanks.

This isn't the correct version. Version installed is 7.1 (old), but we're running 7.5. The database is incompatible.

EDIT: the install script must be rewritten for Sonar. https://downloads.sourceforge.net/project/sonar-pkg is no longer maintained and Sonar must be now installed manually as per documentation.

Last edited 6 years ago by Don-vip (previous) (diff)

comment:11 by stoecker, 6 years ago

Can you do so? I'm done for today and have for sure no time tomorrow.

Last edited 6 years ago by stoecker (previous) (diff)

comment:12 by Don-vip, 6 years ago

I just did it but my modifications in setupsystem.sh are gone. Did you just overwrite the file?

EDIT: wrong server...

Last edited 6 years ago by Don-vip (previous) (diff)

comment:13 by Don-vip, 6 years ago

su - sonar -c "/opt/sonar/bin/linux-x86-64/sonar.sh start" works but service sonar start does not. I don't get it.

Last edited 6 years ago by Don-vip (previous) (diff)

comment:14 by stoecker, 6 years ago

Plan: Switch server tomorrow evening. Remaining issues will be resolved in life system later ;-)

comment:15 by GerdP, 6 years ago

Just a question: Do you plan to switch the server before releasing next JOSM tested version? IMHO it would be good to not do it in parallel, instead it would be good to do it right between two releases. Just in case something goes wrong we would start hunting errors in the wrong place.

in reply to:  15 comment:16 by stoecker, 6 years ago

Replying to GerdP:

Just a question: Do you plan to switch the server before releasing next JOSM tested version? IMHO it would be good to not do it in parallel, instead it would be good to do it right between two releases. Just in case something goes wrong we would start hunting errors in the wrong place.

Then release has to wait. Server move is due till Thursday.

comment:17 by GerdP, 6 years ago

OK. Good luck!

comment:18 by stoecker, 6 years ago

Server move done. Report any issues.

comment:19 by GerdP, 6 years ago

Great! Not sure if this is relevant: The mail that was generated for this comment appeared in my spam folder.

comment:20 by GerdP, 6 years ago

I think Sonar Qube shows outdated data for JOSM plugins. Should I wait before I submit a change to plugin poly?

comment:22 by Klumbumbus, 6 years ago

The "trac ticket content column width" is narrower now. I think 1000px width images did fit within the yellow area before, e.g. in #14666.

comment:23 by GerdP, 6 years ago

There is a new Warning on Sonar Qube: CSS files were not analyzed. Node.js version could not be detected using command: node -v

comment:24 by Don-vip, 6 years ago

@dirk we cannot access any file located in /home/josm/www, including robots.txt. We face http 403 forbidden.

comment:25 by Klumbumbus, 6 years ago

Trac error after commenting/editing a ticket:

Warnung: Die Änderung Änderung wurde gespeichert, aber es trat ein Fehler beim Senden von Benachrichtigungen auf: (451, '4.3.5 <xxx.xxx@…>: Recipient address rejected: Server configuration error')

comment:26 by Don-vip, 6 years ago

I have changed the sponsor logo to FOSSGIS on home page. We should add a note to thank them in StartupPage too.

Last edited 6 years ago by Don-vip (previous) (diff)

comment:27 by Klumbumbus, 6 years ago

That was an evil typo in your last comment :D

comment:28 by simon04, 6 years ago

The Trac footer reads as follows:

Server sponsored by Hetzner. Visit the Openstreetmap project at https://www.openstreetmap.org/

Hetzner → FOSSGIS? Openstreetmap → OpenStreetMap?

comment:29 by stoecker, 6 years ago

The "trac ticket content column width" is narrower now. I think 1000px width images did fit within the yellow area before, e.g. in #14666.

@dirk we cannot access any file located in /home/josm/www, including robots.txt. We face http 403 forbidden.

Fixed. Copied the config from main apache config to JOSM site, so it is not overlooked.

Hetzner → FOSSGIS? Openstreetmap → OpenStreetMap?

Fixed.

The mail that was generated for this comment appeared in my spam folder.

Very likely this will be the case for some months → New IP :-(

@Vincent: In /var/tmp is a 100% backup of old server.

comment:30 by stoecker, 6 years ago

@Vincent: Maven says: Failed to transfer file: ... Return code is: 401, ReasonPhrase: Unauthorized

451, '4.3.5 <​xxx.xxx@…>: Recipient address rejected: Server configuration error'

Report if it happens again. I'm not sure if I fixed this.

comment:31 by stoecker, 6 years ago

@everybody at gmail. Please move blocked mails from Quarantine or spam folder to your inbox!

comment:32 by GerdP, 6 years ago

Not sure if this is relevant here: With r14751 I've accidentially introduced an empty line in file ignoretags.cfg. This causes a failure in the unit test TaginfoTestIT but https://josm.openstreetmap.de/jenkins/job/JOSM/5004/ reports "Kein Test fehlgeschlagen."
Maybe that test is not always executed?

comment:33 by GerdP, 6 years ago

It seems I cannot distribute plugins:
Search for Failed to execute goal [32morg.apache.maven.plugins:maven-deploy-plugin in
https://josm.openstreetmap.de/jenkins/job/Nexus-JOSM-Plugins/731/console

comment:34 by GerdP, 6 years ago

Maybe origin of comment:33 problem is this:

BUILD FAILED
/var/lib/jenkins/jobs/JOSM-Plugins/workspace/jdk/JDK8/build.xml:47: The following error occurred while executing this line:
/var/lib/jenkins/jobs/JOSM-Plugins/workspace/jdk/JDK8/build.xml:24: The following error occurred while executing this line:
/var/lib/jenkins/jobs/JOSM-Plugins/workspace/jdk/JDK8/build-common.xml:214: /var/lib/jenkins/jobs/JOSM-Plugins/workspace/jdk/JDK8/javafx/javadoc does not exist.

comment:35 by GerdP, 6 years ago

This also looks like a new problem:

https://josm.openstreetmap.de/jenkins/job/JOSM-Integration/lastCompletedBuild/jdk=JDK8/testReport/org.openstreetmap.josm.plugins/PluginHandlerTestIT/testValidityOfAvailablePlugins/

2019-01-30 21:24:14,049 Timeout runner ERROR No Log4j 2 configuration file found. Using default configuration (logging only errors to the console), or user programmatically provided configurations. Set system property 'log4j2.debug' to show Log4j 2 internal initialization logging. See https://logging.apache.org/log4j/2.x/manual/configuration.html for instructions on how to configure Log4j 2

comment:36 by Don-vip, 6 years ago

@Dirk since the server upgrade we get the following error in imagery integration test:

java.net.UnknownHostException: geoserver.dados.al.gov.br

But I have no problem to access it from my connection.

comment:37 by Don-vip, 6 years ago

Nexus configuration wasn't done. I have shut down the service for security reasons and downloading the old config, it takes a while (the backup is 190Gb)

in reply to:  36 comment:38 by stoecker, 6 years ago

Replying to Don-vip:

@Dirk since the server upgrade we get the following error in imagery integration test:

java.net.UnknownHostException: geoserver.dados.al.gov.br

But I have no problem to access it from my connection.

Hmm, w3m on commandline worked as expected a few minutes ago.

comment:39 by simon04, 6 years ago

Building pt_assistant via Travis CI fails: https://travis-ci.org/JOSM/pt_assistant/jobs/487931560

* What went wrong:
Could not resolve all files for configuration ':compileClasspath'.
> Could not resolve org.openstreetmap.josm:josm:14382.
  Required by:
      project :
   > Could not resolve org.openstreetmap.josm:josm:14382.
      > Could not get resource 'https://josm.openstreetmap.de/nexus/content/repositories/releases/org/openstreetmap/josm/josm/14382/josm-14382.pom'.
         > Could not GET 'https://josm.openstreetmap.de/nexus/content/repositories/releases/org/openstreetmap/josm/josm/14382/josm-14382.pom'. Received status code 503 from server: Service Unavailable

comment:40 by Don-vip, 6 years ago

Yes it took me a while to setup nexus back. It's live again.

comment:41 by stoecker, 6 years ago

Is the "geoserver.dados.al.gov.br" issue gone? If yes, then the systemd DNS resolver was the reason. I now completely disabled it and use Hetzner DNSSEC enabled resolvers again.

comment:42 by Don-vip, 6 years ago

Yes, it's working now. The current issues don't seem caused by our system.

by Don-vip, 6 years ago

Attachment: yeah.PNG added

comment:43 by Don-vip, 6 years ago

The performance boost is huge. Jenkins JOSM job went from 28/30 min to 12/13 min:


Last edited 6 years ago by Don-vip (previous) (diff)

comment:44 by GerdP, 6 years ago

Yes, and also Trac is much faster now. Only svn update seems to be as slow as before. No idea if that depends on my machine?

comment:45 by Don-vip, 6 years ago

@Dirk how did you install Jenkins? The new security update must be installed, but it is not proposed by apt, as on old server.

in reply to:  45 comment:46 by stoecker, 6 years ago

Replying to Don-vip:

@Dirk how did you install Jenkins? The new security update must be installed, but it is not proposed by apt, as on old server.

As documented: See

setupsystem.sh

comment:48 by stoecker, 6 years ago

No, it seems simply the repo is not updated yet ;-)

in reply to:  48 comment:49 by Don-vip, 6 years ago

Replying to stoecker:

No, it seems simply the repo is not updated yet ;-)

Indeed. It's very unusual, I hope the repo is still maintained, and will not vanish like SonarQube...

comment:50 by Don-vip, 6 years ago

The jenkins update is now available :)

comment:51 by Don-vip, 6 years ago

Resolution: fixed
Status: newclosed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.