Remote server does not listen for requests on [localhost:4848] (5.13)

118 views
Skip to first unread message

Jérémy Dubar

unread,
May 20, 2023, 2:16:15 PM5/20/23
to Dataverse Users Community

Hello,

I have a VPS server with freshly installed Ubuntu 22.04, and I followed the installation guide.

When I run the installation script (version 5.13), I get an error:

"Deploying the application (dataverse.war) Remote server does not listen for requests on [localhost:4848]. Is the server up?"

However, when I manually launch Payara, it works and I can access it from http://my-ip:4848 (I don't have domain name for now, this server is just for test purpose)

In the attachment of my message, I am providing you with the output of the installer and the server logs.

However, I cannot find any logs in 'The scripts/api/setup-all.*.log' as indicated in the documentation. I don't have a 'scripts' folder. is it supposed to be in the 'dvinstall' folder?

Just to let you know :

I have the necessary write permissions for the files mentioned in the installation guide:

  • "/usr/local/payara5/glassfish/lib"
  • "/usr/local/payara5/glassfish/domains/domain1"
  • the current working directory of the installe

And I run the script as non root user.

I also want you yo know that I have just a basic knowledge width linux. 

Anyone can help me please ? 


output.txt
server.log

Philip Durbin

unread,
May 20, 2023, 2:47:18 PM5/20/23
to dataverse...@googlegroups.com
Whoops, that's probably a typo in the documentation. You're right, there is no "scripts" folder when you unzip dvinstall.zip. Please feel free to create a GitHub issue about this.

Based on the following (from install.py), it looks like the log should be written in the same directory as setup-all.sh (the root "dvinstall" folder when you unzip dvinstall.zip). Do you see it there?

subprocess.call("./setup-all.sh > setup-all.$$.log 2>&1", shell=True)

I'm not sure why dataverse.war won't deploy to Payara for you. You're using Payara 5.2022.3 which is the version mentioned in the 5.13 installation guide. Should work! I must admit that I have some doubt if everything "just works" on Ubuntu. We still have https://github.com/IQSS/dataverse/issues/1059 . I know it's a pain, but you could maybe try on Rocky Linux.

Anyway, if you find that extra log, please send it along. Sorry to hear about your trouble.

Thanks!

Phil


--
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/9985c93b-4cf4-4280-a785-608db5de9473n%40googlegroups.com.


--
Message has been deleted

Jérémy Dubar

unread,
May 20, 2023, 3:12:39 PM5/20/23
to Dataverse Users Community
Thanks for your answer.

I didn't mention it, but I tried it on a server with AlmaLinux 9, and I encountered the exact same error. So, I suppose I'm doing something wrong, but I can't figure out what it is. 

Unfortunately, the command did not work for me.

I tried it inside the dvinstall/  :

"subprocess.call("./setup-all.sh > setup-all.$$.log 2>&1", shell=True) -bash: syntax error near unexpected token `"./setup-all.sh > setup-all.$$.log 2>&1",'"


We do agree that is correct to have the dvinstall folder in /home/dataverse and run it with python3 ./install.py ? 
Nothing else that would not be mentioned in the guide is needed ? Like specific apache configuration or anything else ?

Also, my server configuration is quite low, with only 1GB of RAM and a 20GB SSD. I don't have plans to use it as a "real production server." It's primarily for testing purposes. However, it's possible that this configuration may not be sufficient to install and run the project smoothly.

A stupid question but : 

Do I need to clone the dataverse project and past the dvinstall inside the folder uploaded from github and then run the script or just have the script in /home/dataverse is enough ?? 

Don Sizemore

unread,
May 22, 2023, 9:25:22 AM5/22/23
to dataverse...@googlegroups.com
Hello,

If the VPS only has 1GB of RAM, I'd look there first. I wouldn't attempt to install Dataverse (and its dependent services, all-in-one) in fewer than 4GB of RAM, integration tests seem to fail in fewer than 8GB total, and I wouldn't run a public instance in fewer than 16GB of RAM.

Try throwing more resources at it?

Thank you,
Don

On Sat, May 20, 2023 at 3:08 PM Jérémy Dubar <dubar....@gmail.com> wrote:
Thanks for your answer.

I didn't mention it, but I tried it on a server with AlmaLinux 9, and I encountered the exact same error. So, I suppose I'm doing something wrong, but I can't figure out what it is. 

Unfortunately, the command did not work for me.

I tried it inside the dvinstall/  :

"subprocess.call("./setup-all.sh > setup-all.$$.log 2>&1", shell=True) -bash: syntax error near unexpected token `"./setup-all.sh > setup-all.$$.log 2>&1",'"


We do agree that is correct to have the dvinstall folder in /home/dataverse and run it with python3 ./install.py ? 
Nothing else that would not be mentioned in the guide is needed ? Like specific apache configuration or anything else ?

Also, my server configuration is quite low, with only 1GB of RAM and a 20GB SSD. I don't have plans to use it as a "real production server." It's primarily for testing purposes. However, it's possible that this configuration may not be sufficient to install and run the project smoothly.



On Saturday, 20 May 2023 at 20:47:18 UTC+2 Philip Durbin wrote:

Jérémy Dubar

unread,
May 22, 2023, 3:54:21 PM5/22/23
to Dataverse Users Community

Hi,

It seems that the problem indeed lies there.

I performed a fresh installation of AlmaLinux to ensure that the issue was not with the system. Then, I ran dataverse-ansible with the repository provided by Philip Durbin, but encountered memory limit problems while trying to install some R libraries such as descTools and haven.

The error message indicates that the compilation process for the 'DescTools' package failed due to a terminated program (cc1plus) during the compilation of RcppExports.o and aux_fct.o. My research led me to believe that this was indeed a memory limit problem. Your message seems to confirm my suspicion, so thank you for that.

I probably missed the error message from R the first time I installed it.

Do you think opening a pull request (or an issue) to request a section with the minimum configuration required to install (and run) the dataverse project would be appreciated? Such a section would have saved me a couple of hours. It may be obvious for a system administrator, but as a junior web developer, it was not, to be honest.

Anyway, I will look into obtaining a more powerful configuration and try again. Thanks for your help, guys.

Don Sizemore

unread,
May 22, 2023, 4:05:46 PM5/22/23
to dataverse...@googlegroups.com
Pull requests are always welcome!

https://guides.dataverse.org/en/latest/installation/prep.html does describe IQSS' test server as a fairly beefy setup in comparison (8GB of RAM) but yes, a minimum memory requirement may indeed help others.

Extra credit if your pull request includes the best description I've seen of Java's memory management: "NOM NOM NOM!"

Thank you,
Don

Reply all
Reply to author
Forward
0 new messages