ImageMagick unable to download in Centos 8 (for the first time i am installing dataverse in my org (Please help)

50 views
Skip to first unread message

Acharya Srinivas

unread,
Dec 19, 2021, 4:17:54 AM12/19/21
to Dataverse Users Community
Hi Friends.

When I am trying download not able to do that in Centos 
This is first time I am downloading the and trying to install  dataverse.

Please help

ImageMagick  unable to download  in Centos 8  (for the first time i am installing dataverse in my org (Please help)

Srinivas 

Acharya Srinivas

unread,
Dec 20, 2021, 5:04:07 AM12/20/21
to Dataverse Users Community
Please help

James Myers

unread,
Dec 20, 2021, 8:48:39 AM12/20/21
to dataverse...@googlegroups.com

Srinivas,

 

In general, you’ll need to provide more information about what you did and what went wrong for someone to be able to help you.

 

In this case – I’ll guess that you’re running into this issue: https://github.com/IQSS/dataverse/issues/8014 - Centos now uses GraphicsMagick rather than ImageMagick. That issue suggests making a symbolic link to map ‘gm’ to ‘convert’ which is the program name Dataverse uses. Hopefully that will work for you. If not – you should probably add to that issue and explain what doesn’t work for you.

 

Also – note that ImageMagick/GraphicsMagick are only used in generating thumbnails and if it isn’t working, Dataverse will still run – you just won’t get thumbnails. So this is something you could address later after you have everything else up and running.

 

--Jim

--
You received this message because you are subscribed to the Google Groups "Dataverse Users Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-commu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dataverse-community/45fd7894-0151-4425-8bf4-16334694dac3n%40googlegroups.com.

Acharya Srinivas

unread,
Dec 21, 2021, 12:48:45 PM12/21/21
to dataverse...@googlegroups.com, qqm...@hotmail.com
HI Jim ,

Thank you for the reply .  

I am trying to install  dataverse as per the https://guides.dataverse.org/en/latest/installation/prerequisites.html

I am facing an issue with the note. I may be wrong but the note is not clear at some point.   There is no clear steps for the installation .

Very confusing  out of these option which one to use and how to use there is no clear cut steps .
  • This Systemd file may be serve as a reference for systems using Systemd (such as RHEL/derivative or Debian 10, Ubuntu 16+)

  • This init script may be useful for RHEL/derivative or Ubuntu >= 14 if you’re using a Payara service account, or

  • This Payara init script may be helpful if you’re just going to run Payara as root (not recommended).

Launching Payara on System Boot  -   I am using Centos 8 

Apart from that I have completed almost all pre-reqs  .     Please help me how to run the dataverse installation  ( which user   - there is no clear step which to be run)

This is the first time I have been given the project to do and if this succeeds  they will go for this product .

Please help  .

This is my whatsapp number -  +971-559935406 
Regards
Srinivas

You received this message because you are subscribed to a topic in the Google Groups "Dataverse Users Community" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/dataverse-community/GnJ107FFKAw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to dataverse-commu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dataverse-community/MN2PR07MB73439782FAAC90B3D60CC5F1BF7B9%40MN2PR07MB7343.namprd07.prod.outlook.com.

James Myers

unread,
Dec 22, 2021, 8:54:54 AM12/22/21
to Acharya Srinivas, dataverse...@googlegroups.com

Srinivas,

The installation instructions for Dataverse itself are at https://guides.dataverse.org/en/latest/installation/installation-main.html (linked as ‘Next Steps’ from the pre-requisites page). The part that you’re quoting below is just about making sure payara restarts whenever your machine restarts. How to do that depends on your operating system. I believe Centos would use the Systemd approach below.

-- Jim

Acharya Srinivas

unread,
Dec 23, 2021, 12:15:11 AM12/23/21
to James Myers, dataverse...@googlegroups.com
HI Jim,

Thank you for sharing .  I have this document but , if you could see, there are no clear cut steps that need to be done .  
Which user to be installed and what will be the configuration for this  . I am very confused  
There are some points which are more confusing.  Do I need to install the application? separately and configure the install datavserse with root user  ? 


There are no clear cut steps to be done   and I have installed all postgres as well .

Please help  and below are some  points .     if you do have any clear cut documents   .      Please help  .   
   

=================================================================
Important: The installer will need to use the PostgreSQL command line utility psql in order to configure the database. If the executable is not in your system PATH, the installer will try to locate it on your system.   
==========================================================
It is no longer necessary to run the installer as root! 

Just make sure the user running the installer has write permission to:

  • /usr/local/payara5/glassfish/lib

  • /usr/local/payara5/glassfish/domains/domain1

  • the current working directory of the installer (it currently writes its logfile there), and

  • your jvm-option specified files.dir

  • =============================================================================



You should already have the following 4 JVM options added to your domain.xml by the Dataverse installer:
<jvm-options>-Ddataverse.rserve.host=localhost</jvm-options>
<jvm-options>-Ddataverse.rserve.port=6311</jvm-options>
<jvm-options>-Ddataverse.rserve.user=rserve</jvm-options>
<jvm-options>-Ddataverse.rserve.password=rserve</jvm-options>

James Myers

unread,
Dec 23, 2021, 5:57:22 PM12/23/21
to Acharya Srinivas, dataverse...@googlegroups.com

Srinivas,

The README_python.txt file referenced in the guides has more detailed instructions on how to install python and then how to run the installer itself. As the page says, the script will prompt for the configuration values you’ll need to enter.

 

Once you’ve gone through the process if you have specific sections on how the guides could be improved, please open an issue in the project’s github repository and/or create a pull request with edits to the guide.

 

Best,

Acharya Srinivas

unread,
Dec 26, 2021, 3:39:22 AM12/26/21
to James Myers, dataverse...@googlegroups.com
HI Jim

I am getting below error . when i drop the DB and recreate then also getting issue    .  Could you please help 

Could not create Postgres database for the Dataverse app!
(command: PGPASSWORD=postgres; export PGPASSWORD; /usr/bin/createdb -h ********** -p 5432 -U postgres dvndb --owner=dvnapp )
(psql exit code: 256)
(STDOUT and STDERR: createdb: error: database creation failed: ERROR:  database "dvndb" already exists
)

called with --force, continuing
openjdk version "11.0.13" 2021-10-19 LTS
OpenJDK Runtime Environment 18.9 (build 11.0.13+8-LTS)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.13+8-LTS, mixed mode, sharing)
domain1 not running

remote failure: Application dataverse is not deployed on this target [server]
remote failure: A Mail resource named mail/notifyMailSession does not exist.
remote failure: Error occurred during deployment: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.7.7.payara-p3): org.eclipse.persistence.exceptions.DatabaseException
Internal Exception: java.sql.SQLException: Error in allocating a connection. Cause: Connection could not be allocated because: FATAL: password authentication failed for user "dvnapp "
Error Code: 0. Please see server.log for more details.
Failed to deploy the application! WAR file: dataverse.war.
(exit code: 256)
Aborting.
[root@ip-172-31-87-21 dvinstall]# 

Acharya Srinivas

unread,
Dec 26, 2021, 4:41:04 AM12/26/21
to James Myers, dataverse...@googlegroups.com
HI Jim,

Could you please help 
I tried to manage but   below is the issue i am getting in error while dvinstall   
Attempting to deploy the application.
Command line: /usr/local/payara5/bin/asadmin deploy dataverse.war
Command deploy failed.

remote failure: JVM option -Djavax.xml.parsers.SAXParserFactory=com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl already exists in the configuration.


remote failure: Error occurred during deployment: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.7.7.payara-p3): org.eclipse.persistence.exceptions.DatabaseException
Internal Exception: java.sql.SQLException: Error in allocating a connection. Cause: Connection could not be allocated because: FATAL: password authentication failed for user "dvnapp "
Error Code: 0. Please see server.log for more details.
Failed to deploy the application! WAR file: dataverse.war.
(exit code: 256)
Aborting.
Regards
Srinivas

James Myers

unread,
Dec 26, 2021, 2:07:41 PM12/26/21
to Acharya Srinivas, dataverse...@googlegroups.com

Srinivas,

Other people who may know more are away for the holidays. My guess would be that you missed this step: https://guides.dataverse.org/en/latest/installation/prerequisites.html#configuring-database-access-for-the-dataverse-installation-and-the-dataverse-software-installer or didn’t restart postgres after making the change.

 

Hope that helps,

Acharya Srinivas

unread,
Dec 26, 2021, 2:10:10 PM12/26/21
to James Myers, dataverse...@googlegroups.com
Hi Jim ,
Thank you for the reply 

I have added these steps as well. Both the parameters file according to the document 

If you want I will show the parameters as well

Regarding 
Srinivas

Acharya Srinivas

unread,
Dec 27, 2021, 4:30:29 AM12/27/21
to James Myers, dataverse...@googlegroups.com
Hi Jim.

I have added below , could you please help to verify  once .   only single vm where I am installing everything

# TYPE  DATABASE        USER            ADDRESS                 METHOD

# "local" is for Unix domain socket connections only
local   all             all                                     trust
# IPv4 local connections:
#host    all             all             127.0.0.1/32            scram-sha-256
host    all             all             127.0.0.1/32            trust
host    all             all             IP of host-masked/32          trust
# IPv6 local connections:
#host    all             all             ::1/128                 scram-sha-256
host    all             all             ::1/128                 trust

# Allow replication connections from localhost, by a user with the
# replication privilege.
local   replication     all                                     peer
#host    replication     all             127.0.0.1/32            scram-sha-256
host    replication     all             127.0.0.1/32            trust
host    all             all             IP of host-masked/32          trust
#host    replication     all             ::1/128                 scram-sha-256
host    replication     all             ::1/128                 trust 

================

Getting below error and 

Command line: /usr/local/payara5/bin/asadmin deploy dataverse.war
remote failure: Error occurred during deployment: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.7.7.payara-p3): org.eclipse.persistence.exceptions.DatabaseException
Internal Exception: java.sql.SQLException: Error in allocating a connection. Cause: Connection could not be allocated because: FATAL: role "dvnapp " does not exist

Error Code: 0. Please see server.log for more details.
Command deploy failed.

Failed to deploy the application! WAR file: dataverse.war.
(exit code: 256)
Aborting.

aused by: java.sql.SQLException: Error in allocating a connection. Cause: Connection could not be allocated because: FATAL: role "dvnapp " does not exist
at com.sun.gjc.spi.base.AbstractDataSource.getConnection(AbstractDataSource.java:119)
at org.eclipse.persistence.sessions.JNDIConnector.connect(JNDIConnector.java:138)
... 75 more
Caused by: javax.resource.spi.ResourceAllocationException: Error in allocating a connection. Cause: Connection could not be allocated because: FATAL: role "dvnapp " does not exist
at com.sun.enterprise.connectors.ConnectionManagerImpl.internalGetConnection(ConnectionManagerImpl.java:319)
at com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:196)
at com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:171)
at com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:166)
at com.sun.gjc.spi.base.AbstractDataSource.getConnection(AbstractDataSource.java:113)

Regards
Srinivas
Reply all
Reply to author
Forward
0 new messages