You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
go 1.10.2
loraserver 1.0 (but happened before with earlier versions)
psql 10.4
How can your issue be reproduced?
drop all tables, build loraserver, create config, and run loraserver (./build/loraserver)
Could you share your log output?
Database content after running loraserver once:
loraserver_ns=# \d
List of relations
Schema | Name | Type | Owner
--------+-----------------+-------+---------------
public | gorp_migrations | table | loraserver_ns
(1 row)
loraserver_ns=# select * from gorp_migrations
loraserver_ns-# ;
id | applied_at
----+------------
(0 rows)
INFO[0000] starting LoRa Server band=EU_863_870 docs="https://docs.loraserver.io/" net_id=000000 version=1.0.0-1-g3338792
INFO[0000] setup redis connection pool url="redis://localhost:6379"
INFO[0000] connecting to postgresql
INFO[0000] backend/gateway: TLS config is empty
INFO[0000] backend/gateway: connecting to mqtt broker server="tcp://localhost:1883"
INFO[0000] configuring join-server client ca_cert= server="http://localhost:8003" tls_cert= tls_key=
INFO[0000] no network-controller configured
INFO[0000] applying database migrations
INFO[0000] backend/gateway: connected to mqtt server
INFO[0000] backend/gateway: subscribing to rx topic qos=0 topic=gateway/+/rx
INFO[0000] backend/gateway: subscribing to stats topic qos=0 topic=gateway/+/stats
INFO[0000] migrations applied count=0
INFO[0000] starting api server bind="0.0.0.0:8000" ca-cert= tls-cert= tls-key=
INFO[0000] starting downlink device-queue scheduler
ERRO[0000] class-c scheduler error error="get deveuis with class-c device-queue items error: select error: pq: relation \"device\" does not exist"
ERRO[0001] class-c scheduler error error="get deveuis with class-c device-queue items error: select error: pq: relation \"device\" does not exist"
...
No migration was done *count = 0) ( LoRaServer does run the migration funciton)
More Info:
github.com/rubenv/sql-migrate/migrate.go: (func (a AssetMigrationSource) FindMigrations() does not find any assets: a.AssetDir(a.Dir) returns empty slice.
(AssetDir is defined in the migrations_gen.go file) (node.Children == 0 / _bintree.Children == 0, node.Func == 0). I suppose bintree should contain the sql as embedded binary but I cannot explain why it isnt there.
go-bindata does generate the migrations_gen.go (triggered in main.go) migrations_gen.zip
PS: While having a look at go-bindata I found this note: jteeuwen/go-bindata#5 indicating that the repository is not updated anymore.
The text was updated successfully, but these errors were encountered:
Is this a bug or a feature request?
seeking help / error reporting ?
What did you expect?
database migration
What happened?
no schema created
What version are your using?
go 1.10.2
loraserver 1.0 (but happened before with earlier versions)
psql 10.4
How can your issue be reproduced?
drop all tables, build loraserver, create config, and run loraserver (./build/loraserver)
Could you share your log output?
Database content after running loraserver once:
config file:
Log after start of loraserver:
No migration was done *count = 0)
( LoRaServer does run the migration funciton)More Info:
github.com/rubenv/sql-migrate/migrate.go
:(func (a AssetMigrationSource) FindMigrations()
does not find any assets:a.AssetDir(a.Dir)
returns empty slice.AssetDir
is defined in themigrations_gen.go
file) (node.Children == 0
/_bintree.Children == 0
,node.Func == 0
). I suppose bintree should contain the sql as embedded binary but I cannot explain why it isnt there.go-bindata does generate the migrations_gen.go (triggered in main.go)
migrations_gen.zip
PS: While having a look at go-bindata I found this note: jteeuwen/go-bindata#5 indicating that the repository is not updated anymore.
The text was updated successfully, but these errors were encountered: