Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 02 Nov 2019 00:21:22 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 241655] net-mgmt/semaphore: Incomplete file list and wrong search path
Message-ID:  <bug-241655-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D241655

            Bug ID: 241655
           Summary: net-mgmt/semaphore: Incomplete file list and wrong
                    search path
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: egypcio@FreeBSD.org
          Reporter: marek@mky.waw.pl
             Flags: maintainer-feedback?(egypcio@FreeBSD.org)
          Assignee: egypcio@FreeBSD.org

The latest version of the port has missed some files for work properly. For
example, first run of semaphore wants to create database from sql files:

# semaphore
Using config file: /usr/local/etc/semaphore/config.json
Semaphore 2.5.1
Port :3000
MySQL semaphore@127.0.0.1:3306 semaphore
Tmp Path (projects home) /tmp/semaphore
Checking DB migrations
Creating migrations table
Executing migration v0.0.0 (at 2019-11-01 21:19:23.778424681 +0100 CET
m=3D+0.224762334)...
panic: stat
/wrkdirs/usr/ports/net-mgmt/semaphore/work/src/github.com/ansible-semaphore=
/semaphore/db/migrations/v0.0.0.sql:
no such file or directory

goroutine 1 [running]:
github.com/ansible-semaphore/semaphore/db.(*Version).GetSQL(0xc000069840,
0xc00012e350, 0xa, 0xaa7cb5, 0x4, 0xc00012e350)
=20=20=20=20=20=20=20
/wrkdirs/usr/ports/net-mgmt/semaphore/work/src/github.com/ansible-semaphore=
/semaphore/db/version.go:60
+0x176
github.com/ansible-semaphore/semaphore/db.(*Version).Run(0xc000069840,
0xc000010000, 0x0)
=20=20=20=20=20=20=20
/wrkdirs/usr/ports/net-mgmt/semaphore/work/src/github.com/ansible-semaphore=
/semaphore/db/migrations.go:49
+0x272
github.com/ansible-semaphore/semaphore/db.MigrateAll(0xc000113e18, 0x0)
=20=20=20=20=20=20=20
/wrkdirs/usr/ports/net-mgmt/semaphore/work/src/github.com/ansible-semaphore=
/semaphore/db/migrations.go:118
+0x13b
main.main()
=20=20=20=20=20=20=20
/wrkdirs/usr/ports/net-mgmt/semaphore/work/src/github.com/ansible-semaphore=
/semaphore/cli/main.go:51
+0x406

The binary expects to exist in the location started by /wrkdirs/...=20

The similar issue is when the semaphore wants to serve web content (output =
from
truss):

fstatat(AT_FDCWD,"/wrkdirs/usr/ports/net-mgmt/semaphore/work/src/github.com=
/ansible-semaphore/semaphore/web/public/html/index.html",0xc0002d2038,0x0)
ERR#2 'No such file or directory'

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-241655-7788>