[Bug 241655] net-mgmt/semaphore: Incomplete file list and wrong search path

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Nov 2 00:21:23 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=241655

            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 at FreeBSD.org
          Reporter: marek at mky.waw.pl
             Flags: maintainer-feedback?(egypcio at FreeBSD.org)
          Assignee: egypcio at 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 at 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=+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)
       
/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)
       
/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)
       
/wrkdirs/usr/ports/net-mgmt/semaphore/work/src/github.com/ansible-semaphore/semaphore/db/migrations.go:118
+0x13b
main.main()
       
/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/... 

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'

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


More information about the freebsd-ports-bugs mailing list