Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Oct 2016 11:38:22 +0100
From:      Michael Lewis <lewismj@me.com>
To:        dharrigan@gmail.com
Cc:        ports@FreeBSD.org
Subject:   FreeBSD Port: artifactory-4.12.0.1
Message-ID:  <1F19714C-C317-4F88-AC86-E907057AB49E@me.com>

next in thread | raw e-mail | index | archive | help
Hi,

I=E2=80=99ve tried to install the artifactory 4.12.0.1 port onto my =
machine=20
=20
11.0-RELEASE-p1 FreeBSD=20
11.0-RELEASE-p1 #0 r306420: Thu Sep 29 01:43:23 UTC 2016    =20
root@releng2.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64

The install seems to run through without error, but when I tried a =
simple test:


www:/usr/ports/devel/artifactory # curl =
http://localhost:8081/artifactory

I got the error:

<!DOCTYPE html><html><head><title>Apache Tomcat/8.0.32 - Error =
report</title><style type=3D"text/css">H1 =
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;=
font-size:22px;} H2 =
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;=
font-size:16px;} H3 =
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;=
font-size:14px;} BODY =
{font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} =
B =
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;=
} P =
{font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-siz=
e:12px;}A {color : black;}A.name {color : black;}.line {height: 1px; =
background-color: #525D76; border: none;}</style> </head><body><h1>HTTP =
Status 404 - /artifactory</h1><div class=3D"line"></div><p><b>type</b> =
Status report</p><p><b>message</b> =
<u>/artifactory</u></p><p><b>description</b> <u>The requested resource =
is not available.</u></p><hr class=3D"line"><h3>Apache =
Tomcat/8.0.32</h3></body></html>root@www:/usr/ports/devel/artifactory

I can see that the port has installed:

/var/artifactory # ls -ltr
total 24
drwxr-xr-x  3 artifactory  artifactory  512 Oct 17 10:21 logs
drwxr-xr-x  6 artifactory  artifactory  512 Oct 17 10:21 tomcat
drwxr-xr-x  5 artifactory  artifactory  512 Oct 17 10:21 data
drwxr-xr-x  2 artifactory  artifactory  512 Oct 17 10:21 backup
drwxr-xr-x  2 artifactory  artifactory  512 Oct 17 10:21 support
drwxr-xr-x  4 artifactory  artifactory  512 Oct 17 10:21 etc


I get see the following in the logs directory:

root@www:/var/artifactory/logs # ls -ltr

total 12
drwxr-xr-x  2 artifactory  artifactory   512 Oct 17 10:20 catalina
-rw-r--r--  1 root         artifactory  6690 Oct 17 10:22 boot.log

With an errors:

org.artifactory.common.ArtifactoryHome - Warning: Directory =
'/usr/local/artifactory/data/tmp' is not writable!
SEVERE: One or more listeners failed to start. Full details will be =
found in the appropriate container log file

For the first error, I checked the permissions:

drwxr-xr-x  4 1008  artifactory  512 Oct 17 09:36 tmp
-rw-r--r--  1 1008  artifactory  836 Oct 17 09:36 artifactory.properties
drwxr-xr-x  3 1008  artifactory  512 Oct 17 09:37 filestore
-rw-r--r--  1 1008  artifactory    0 Oct 17 09:37 =
.deleteForSecurityMarker
-rw-r--r--  1 1008  artifactory    0 Oct 17 09:55 .lock
drwxr-xr-x  5 1008  artifactory  512 Oct 17 09:55 derby

And I can saw incorrect user ownership.So, I manually updated the =
ownership:


/usr/local/artifactory/# chown -fR artifactory *

I saw more log files:

drwxr-xr-x  2 artifactory  artifactory    512 Oct 17 10:20 catalina
-rw-r--r--  1 artifactory  artifactory      0 Oct 17 10:26 access.log
-rw-r--r--  1 artifactory  artifactory      0 Oct 17 10:26 =
import.export.log
-rw-r--r--  1 artifactory  artifactory      0 Oct 17 10:26 =
traffic.1476700012819.log
-rw-r--r--  1 artifactory  artifactory      0 Oct 17 10:26 request.log
-rw-r--r--  1 artifactory  artifactory      0 Oct 17 10:26 =
request_trace.log
-rw-r--r--  1 artifactory  artifactory    806 Oct 17 10:27 derby.log
-rw-r--r--  1 artifactory  artifactory  41082 Oct 17 10:27 boot.log
-rw-r--r--  1 artifactory  artifactory  31358 Oct 17 10:27 =
artifactory.log

But nothing in the catalina directory after a service restart.

The end of the boot.log is now:

###########################################################
### Artifactory successfully started (9.597 seconds)    ###
###########################################################

Running this, shows the redirect:

www:/var/artifactory/logs # curl http://localhost:8081
<html>
<head>
	<meta http-equiv=3D"refresh" content=3D"0;URL=3D/artifactory">
</head>
<body>
</body>
</html>

But when I try to access the artifactory URL:

www:/var/artifactory/logs # curl http://localhost:8081/artifactory/
www:/var/artifactory/logs #=20

I don=E2=80=99t see any log output. I=E2=80=99d be grateful if you had =
any ideas on what may be wrong with my install?


Regards,
Mike Lewis








Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1F19714C-C317-4F88-AC86-E907057AB49E>