Time
S
Nick
Message
04:43
jri joined #dataverse
07:15
jri joined #dataverse
07:47
jri joined #dataverse
12:05
donsizemore joined #dataverse
13:27
pdurbin
donsizemore: thanks again for https://github.com/IQSS/dataverse/pull/4721
13:29
donsizemore
@pdurbin i dumped a production DB copy over to a test 9.3 instance (re-indexing now) to try my hand at https://www.postgresql.org/docs/9.6/static/pgupgrade.html
13:33
donsizemore
(i also hope that 9.6 will in fact be the LTS release, as there are some cool features in 10)
13:34
pdurbin
donsizemore: I'm confused. Do you want 9.6 or 10? :)
13:35
donsizemore
I never know what I want!
13:36
pdurbin
use your words
13:39
pdurbin
donsizemore: according to this we'll need to do three upgrades. 9.3->9.4, 9.4->9.5, 9.5->9.6. Unless I'm reading this wrong: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_UpgradeDBInstance.PostgreSQL.html
13:40
donsizemore
@pdurbin i was lobbying for whatever RHEL8 settles on for their 10-year plan, but only have a message board posting stating that will be 9.6
13:42
donsizemore
@pdurbin after reading some more about pg_upgrade i'm thinking i'll just do a dump-and-restore
13:44
pdurbin
I'm way out of my depth with that stuff. I'm not the one who does any care and feeding of Postgres in production.
13:45
donsizemore
a dump-and-restore will take longer but is much safer
13:47
pdurbin
gotcha
13:48
donsizemore
(and the AWS upgrade procedure, though I'm sure is well-tested, is slightly terrifying)
13:52
pdurbin
heh
13:52
pdurbin
More terrifying than the Dataverse upgrade procedure? :)
14:00
donsizemore joined #dataverse
14:03
donsizemore
@pdurbin the upgrade procedure is cake. now, the 3-to-4 migration...
14:05
pdurbin
:)
14:11
pameyer joined #dataverse
14:33
donsizemore joined #dataverse
15:40
donsizemore
@pdurbin https://dataverse-test.irss.unc.edu/ is running a dump of our 9.3 DB from this morning, imported into 9.6 on a test box using the 42.2 postgres-jdbc driver if anyone wants to hammer on it
15:54
pdurbin
donsizemore: the homepage loads fine :) ... good job. :)
15:57
donsizemore
basic dataset creation and publishing works fine
15:59
pdurbin
donsizemore: cool. If you want, please go ahead and leave a comment in the issue that things seem ok: https://github.com/IQSS/dataverse/issues/4709
16:57
donsizemore joined #dataverse
17:04
Thali_UM joined #dataverse
17:05
Thali_UM
Good morning
17:07
Thali_UM
NetBeans already let me build the project, but when entering the URL localhost: 8080 shows me the glassfish index
17:07
Thali_UM
It has happened to me frequently and what I was doing was reinstalling dataverse
17:08
Thali_UM
I solved the building error by adding a maven plugin in pom.xml
17:10
jri joined #dataverse
17:11
pdurbin
Thali_UM: if you are seeing the index page for Glassfish, that usually means the dataverse war file hasn't been deployed. Can you please tell me the output from `./asadmin list-applications`? I documented asadmin here: http://guides.dataverse.org/en/4.8.6/developers/tips.html#deploying-with-asadmin
17:12
Thali_UM
dataverse
17:13
pdurbin
Ok. So the war file has been deployed. Hmm. Can you please try a different browser?
17:15
Thali_UM
safari is it ok?
17:15
Thali_UM
I work with Chrome
17:15
pdurbin
yes
17:15
Thali_UM
it show me the same window, glassfish server
17:16
pdurbin
hmm
17:20
pdurbin
Thali_UM: can you please try undeploying and redeploying? Please see the "Deploying With asadmin" link above.
17:20
Thali_UM
it continues to mark errors when generating the WAR file, but in the end it shows BUILD SUCCESS
17:21
Thali_UM
Ok
17:22
Thali_UM
this step Copy the war file to the server , In what directory do I owe the WAR file?
17:25
pdurbin
"target"
17:33
Thali_UM
thank you
17:35
Thali_UM
the WAR file is in the target folder, but there I run asadmin or should I copy the file inside glassfish?
17:37
pameyer
I usually run the asadmin commands from the glassfish root directory (aka - if glassfish is in /usr/bin/glassfish4, I'll run commands from that directory with bin/asadmin $command
17:38
pameyer
the war file can be anywhere readable - bin/asadmin deploy /path/to/dataverse.war works
17:41
Thali_UM
should I create the database and the user?
17:41
Thali_UM
role "dvnapp" does not exist
17:41
Thali_UM
Error Code: 0. Please see server.log for more details.
17:41
Thali_UM
Command deploy failed.
17:42
pameyer
that does sound like missing database config
17:47
Thali_UM
So to do a manual deploy, should I also configure the database?
17:50
pameyer
correct. the installer does database and glassfish application deployment, so if you're doing the app deployment yourself the database config needs to happen
17:55
Thali_UM
Command deploy executed successfully.
17:56
Thali_UM
what's next?
17:58
pameyer
`curl http://localhost:8080/api/info/version `
18:02
Thali_UM
Could not resolve host: http:localhost
18:03
pameyer
could you double-check the url and port you used?
18:04
pameyer
I'm assuming glassfish is listening on 8080; if not you'll need to adjust that
18:04
Thali_UM
I'm sorry, the message is Status 404 not found
18:06
Thali_UM
shows several html tags
18:07
pameyer
I'm puzzeled - if `asadmin list-applications` shows dataverse, but an api endpoint that dataverse provides isn't responding, I'm not sure how things get into that state
18:09
Thali_UM
Me too
18:09
Thali_UM
and when I try to find more information on a particular page like http: // localhost: 8080 / dataverse.xhtml, it shows me the message 404
18:13
pameyer
is it possible that you have to instances of glassfish running?
18:14
Thali_UM
i don't now
18:15
pameyer
does `ps aux | grep glassfish` show more than one entry?
18:16
Thali_UM
two
18:16
Thali_UM
terminal and netbeans
18:16
pameyer
ok - that makes sense
18:16
pameyer
I'd guess the glassfish instance that dataverse deployed to isn't the one that's listening on port 8080
18:22
Thali_UM
How can I know the port?
18:23
Thali_UM
LOOK
18:23
Thali_UM
http://img.fenixzone.net/i/xAeo0dh.png
18:30
donsizemore joined #dataverse
18:36
pameyer
`lsof -p $glassfish_pid | grep LISTEN` should tell you which ports it's listening to
18:57
Thali_UM
look
18:57
Thali_UM
java 2412 luisolartegervacio 359u IPv6 0x3f5ef284888f29a7 0t0 TCP *:8080 (LISTEN)
18:57
Thali_UM
that means that glassfish server is not working well
19:00
pameyer
ok - so that's the glassfish listening on 8080 that doesn't have dataverse
19:00
pameyer
does 928 show a different port?
19:08
Thali_UM
Indicates that glassfish is not using port 8080?
19:09
pdurbin
Thali_UM: can you please remind me where Glassfish is running? On your Mac or on a server?
19:10
Thali_UM
MAC
19:11
Thali_UM
everything is on the Mac, first I'm doing a local installation
19:11
pdurbin
Thali_UM: are you coming to the community meeting in two weeks? https://dataverse.org/events :)
19:12
Thali_UM
That error had already happened to me in previous installations, but my solution was to reinstall but I have already repeated the installation and manually and it keeps showing me the page of glassfish server
19:13
Thali_UM
It is not possible for lack of VISA
19:13
pdurbin
Bummer! Maybe next year. :)
19:14
pdurbin
Thali_UM: I just saw that glassfish server page on the laptop of someone I was helping an hour ago.
19:14
Thali_UM
I hope can attend
19:16
pdurbin
And strangely, the war file was deployed. Same as for you.
19:16
Thali_UM
Why glassfish show that page?
19:17
pdurbin
What do you see when you run `git status`?
19:18
Thali_UM
Changes not staged for commit:
19:18
Thali_UM
(use "git add <file>..." to update what will be committed)
19:18
Thali_UM
(use "git checkout -- <file>..." to discard changes in working directory)
19:18
Thali_UM
modified: ../pom.xml
19:18
Thali_UM
modified: ../src/main/webapp/WEB-INF/glassfish-web.xml
19:18
Thali_UM
no changes added to commit (use "git add" and/or "git commit -a")
19:20
pdurbin
Ah ha! He saw the same thing. What do you see when you run `git diff` on glassfish-web.xml?
19:25
Thali_UM
http://img.fenixzone.net/i/Alzwhtb.png
19:27
Thali_UM
That piece of code is what I added to the project so that it will execute as well, add that maven plugin
19:27
jri joined #dataverse
19:28
Thali_UM
But what I see is that only errors are skipped, because although I run "Build Success" I kept marking the errors in a file, in my case "dataset.java" marks it in red
19:31
pdurbin
Thali_UM: I just left a comment with your screenshot (thanks!) at https://github.com/IQSS/dataverse/issues/4722#issuecomment-393650919
19:31
pdurbin
You should put that "context-root" line back in.
19:31
pdurbin
Then recompile the war file.
19:31
pdurbin
mvn clean
19:31
pdurbin
mvn package
19:32
pdurbin
And then try again.
19:33
Thali_UM
undeploy the project ?
19:33
pdurbin
yes please
19:33
Thali_UM
Thank you Philip
19:33
pdurbin
sure
19:34
pdurbin
pameyer: it makes me think we should have people initially compile the war file with plain Maven rather than Netbeans.
19:34
Thali_UM
Sorry for continuing with the same problem, in fact I saw that several have had this problem but the solution they provide is to add the maven plugin in pom.xml
19:38
pameyer
pdurbin: that makes sense to me. netbeans integration seems like it's another step where things can go wrong
19:39
pdurbin
At the time I was thinking it's easier to install Netbeans. There's a nice GUI installer.
19:44
pameyer
I moved away from netbeans partly because of lack of multi-language support - it's got some useful features, but also additional complexity
20:56
Thali_UM left #dataverse
20:57
Thali_UM joined #dataverse
21:17
Thali_UM
Error 500
21:19
Thali_UM
now if you return the version but now on the localhost page: 8080 shows me HTTP ERROR 500
21:26
donsizemore joined #dataverse
21:30
pameyer
Thali_UM: version api working but homepage crashing is progress :)
21:30
pameyer
is solr running?
21:32
Thali_UM
yes
21:33
Thali_UM
yes is progress
21:34
Thali_UM
:')
21:37
Thali_UM
http://img.fenixzone.net/i/NFhgtJK.png
21:46
Thali_UM
http://img.fenixzone.net/i/JHWcqd8.png
22:13
pameyer
looks like it crashed, and then crashed again while trying to display the error page. I'd suspect context-root, or another JSF-related cause.
22:14
pameyer left #dataverse