Using Flyway Teams Doesn't Seem to Work With CLI - flyway

I am trying to use the Flyway trial period for teams, but I can't seem to use it with any of the newer CLIs.
I've been able to use it with the enterprise-specific version from here, but I can't use it with any of the newer versions that are supposed to contain both community and teams code. I've tried both 9.9 (latest) and 9.2.
The license key is set in my conf file and I'm specifying the edition both through environment variables and flags, but it doesn't seem to pick it up.
I should also note that besides the batch and license key configuration settings, this validate works just fine with all three versions using community.
Command:
FLYWAY_EDITION=teams
$FLYWAY_PATH/flyway -teams -X validate -defaultSchema=$default_schema -url="$JDBC_CONNECTION_STRING" -configFiles=$CONF_FILE -placeholders.segment=${{ parameters.segment }}
Result:
DEBUG: Loading config file: /azp/_work/1/s/flyway-9.9.0/conf/flyway.conf
DEBUG: Unable to load config file: /root/flyway.conf
DEBUG: Unable to load config file: /azp/_work/1/s/infra/flyway/flyway.conf
DEBUG: Loading config file: /azp/_work/1/s/infra/flyway/./dev.conf
DEBUG: Using configuration:
DEBUG: flyway.baselineDescription -> Base Migration
DEBUG: flyway.baselineOnMigrate -> true
DEBUG: flyway.baselineVersion -> 0.0
DEBUG: flyway.batch -> true
DEBUG: flyway.cleanDisabled -> false
DEBUG: flyway.configFiles -> ./dev.conf
DEBUG: flyway.defaultSchema -> METADATA
DEBUG: flyway.ignoreMigrationPatterns -> *:pending
DEBUG: flyway.jarDirs -> /azp/_work/1/s/flyway-9.9.0/jars
DEBUG: flyway.jdbcProperties.authenticator -> snowflake_jwt
DEBUG: flyway.jdbcProperties.schema -> METADATA
DEBUG: flyway.jdbcProperties.tracing -> FINEST
DEBUG: flyway.jdbcProperties.user -> *****
DEBUG: flyway.licenseKey -> FL****************
DEBUG: flyway.locations -> filesystem:sql
DEBUG: flyway.placeholders.environment -> dev
DEBUG: flyway.placeholders.segment -> ***
DEBUG: flyway.schemas -> METADATA
DEBUG: flyway.url -> jdbc:snowflake://aza98716.us-east-1.snowflakecomputing.com/?(...)
DEBUG: flyway.user -> ******
ERROR: Unexpected error
org.flywaydb.core.internal.license.FlywayTeamsUpgradeRequiredException: Flyway Teams Edition upgrade required: batch is not supported by Flyway Community Edition
Try Flyway Teams Edition for free: https://rd.gt/2VzHpkY
at org.flywaydb.core.api.configuration.ClassicConfiguration.setBatch(ClassicConfiguration.java:1005)
at org.flywaydb.core.api.configuration.ClassicConfiguration.configure(ClassicConfiguration.java:1615)
at org.flywaydb.core.api.configuration.FluentConfiguration.configuration(FluentConfiguration.java:943)
at org.flywaydb.commandline.Main.getLegacyConfiguration(Main.java:281)
at org.flywaydb.commandline.Main.main(Main.java:122)
TIA!

For 8.5.10 onwards, Flyway Teams was moved into a separate package so those features can't be used in the Community version anymore.
You have to download the Teams version separately from https://download.red-gate.com/maven/release/org/flywaydb/enterprise/flyway-commandline/

Related

flyway cli failing to connect to mysql database - getDatabaseTypeForUrl

I've been trying without success to connect to a local mySQL database, it keeps failing with the errors listed below.
[root#stargate drivers]# flyway info -X -url='"jdbc:mysql://localhost:3306/sms_database"'
DEBUG: Loading config file: /home/development/wip/flyway-9.1.3/conf/flyway.conf
DEBUG: Loading config file: /root/flyway.conf
DEBUG: Unable to load config file: /home/development/wip/flyway-9.1.3/drivers/flyway.conf
DEBUG: Using configuration:
DEBUG: flyway.jarDirs -> /home/development/wip/flyway-9.1.3/jars
DEBUG: flyway.locations -> service-sms/service-sms
DEBUG: flyway.password -> ********
DEBUG: flyway.url -> "jdbc:mysql://localhost:3306/sms_database"
DEBUG: flyway.user -> root
ERROR: Unexpected error
org.flywaydb.core.api.FlywayException: No database found to handle "jdbc:mysql://localhost:3306/sms_database"
at org.flywaydb.core.internal.database.DatabaseTypeRegister.getDatabaseTypeForUrl(DatabaseTypeRegister.java:54)
at org.flywaydb.core.internal.jdbc.DriverDataSource.<init>(DriverDataSource.java:109)
at org.flywaydb.core.internal.jdbc.DriverDataSource.<init>(DriverDataSource.java:89)
at org.flywaydb.core.api.configuration.ClassicConfiguration.configure(ClassicConfiguration.java:1528)
at org.flywaydb.core.api.configuration.FluentConfiguration.configuration(FluentConfiguration.java:943)
at org.flywaydb.commandline.Main.main(Main.java:157)
I've confirmed connectivity:
[root#stargate drivers]# mysql -h 127.0.0.1 -u root -ppassword
mysql: [Warning] Using a password on the command line interface can be insecure.
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 26
Server version: 8.0.23-vitess
Copyright (c) 2000, 2021, Oracle and/or its affiliates.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> status;
--------------
mysql Ver 8.0.26 for Linux on x86_64 (Source distribution)
Connection id: 26
Current database:
Current user: vt_app#localhost
SSL: Not in use
Current pager: stdout
Using outfile: ''
Using delimiter: ;
Server version: 8.0.23-vitess
Protocol version: 10
Connection: 127.0.0.1 via TCP/IP
Server characterset: utf8mb4
Db characterset: utf8mb4
Client characterset: utf8mb4
Conn. characterset: utf8mb4
TCP port: 3306
Binary data as: Hexadecimal
--------------
I've tried both the mariadb-java-client-2.7.3.jar and mysql-connector-java-8.0.30.jar drivers and error is the same. Any advice ?
This is fixed by removing the extra '' characters from the URL string.

I cannot stream through network using vlc

I can't stream a video over network using vlc. When I look logfile I see these lines
What is the problem and how can I solve it? My operating system is windows 10 64 bit. Also I need to make a script to stream a video over network with vlc. I could not find any helpful document about this. Can somebody help me about this issue?
main debug: toggling resume
main debug: auto hiding mouse cursor
main debug: auto hiding mouse cursor
main debug: exiting
main debug: exiting
main debug: no exit handler
main debug: removing all interfaces
main debug: removing module "qt"
main debug: deactivating the playlist
main debug: incoming request - stopping current input
main debug: killing decoder fourcc `h264'
main debug: removing module "h264"
main debug: incoming request - stopping current input
main debug: removing a sout input (sout_input: 0000026d28625c20)
main debug: incoming request - stopping current input
main debug: killing decoder fourcc `h264'
main debug: removing module "avcodec"
main debug: incoming request - stopping current input
main debug: saving a free vout
main debug: incoming request - stopping current input
main debug: reusing provided vout
main debug: incoming request - stopping current input
mux_ts debug: removing input pid=100
mux_ts debug: freeing video PID 100
main debug: incoming request - stopping current input
main warning: no more input streams for this mux
main debug: incoming request - stopping current input
main debug: removing module "mp4"
mp4 debug: freeing all memory
main debug: incoming request - stopping current input
main debug: Program doesn't contain anymore ES
main debug: removing module "record"
main debug: incoming request - stopping current input
main debug: removing module "cache_read"
main debug: incoming request - stopping current input
main debug: removing module "filesystem"
main debug: incoming request - stopping current input
main debug: dead input
qt debug: IM: Deleting the input
main debug: nothing to play
main debug: destroying useless sout
main debug: destroying chain... (name=duplicate)
main debug: removing module "duplicate"
duplicate debug: closing a duplication
main debug: destroying chain... (name=display)
main debug: removing module "display"
main debug: destroying useless vout
main debug: removing module "direct3d11"
direct3d11 debug: Direct3D11 resources destroyed
direct3d11 debug: Direct3D11 device adapter closed
direct3d11 error: SetThumbNailClip failed: 0x800706f4
direct3d11 debug: Win32 Vout EventThread terminating
direct3d11 debug: Win32VoutCloseWindow
direct3d11 debug: WinProc WM_DESTROY
main debug: removing module "inhibit"
qt debug: releasing video...
qt debug: Video is not needed anymore
main debug: removing module "freetype"
main debug: removing module "yuvp"
main debug: removing module "swscale"
main debug: destroying chain done
main debug: destroying chain... (name=standard)
main debug: removing module "stream_out_standard"
main debug: removing module "mux_ts"
main debug: removing module "udp"
main debug: destroying chain done
main debug: destroying chain done
main debug: removing module "mmdevice"
qt debug: requesting exit...
qt debug: waiting for UI thread...
qt debug: QApp exec() finished
qt debug: Video is not needed anymore
qt debug: Killing extension dialog provider
qt debug: ExtensionsDialogProvider is quitting...
main debug: removing module "lua"
main debug: removing module "win32"
main debug: removing module "hotkeys"
main debug: removing module "win_msg"
main debug: destroying
main debug: saving media library to file C:\Users\gulbe\AppData\Roaming\vlc\ml.xspf.tmp30208
main debug: looking for playlist export module matching "export-xspf": 4 candidates
main debug: using playlist export module "export"
main debug: removing module "export"
main debug: deleting item `Media Library'
main debug: deleting item `videoOo.mp4'
main debug: deleting item `Playlist'
main debug: removing module "memory"
-- logger module stopped --
-- logger module started --
main: one instance mode ENABLED

Unrecognized options "scheme, cluster, url" under "lopi_pusher"

I'm using LopiPusherBundle for Getting following error while clearing the cache in symfony 2.7.26
[Symfony\Component\Config\Definition\Exception\InvalidConfigurationException]
Unrecognized options "scheme, cluster, url" under "lopi_pusher"
# app/config/config.yml
lopi_pusher:
scheme: http
host: api.pusherapp.com
port: 80
cluster: ap2
timeout: 30
debug: false
app_id: <app_id>
key: <key>
secret: <secret>
url: <scheme>://<key>:<secret>#<host>[:<port>]/apps/<app-id>
auth_service_id: my_channel_authenticator
Your installed version is smaller than 1.3 and these options are not available.
You can see this here https://github.com/laupiFrpar/LopiPusherBundle/blob/1.2.9/DependencyInjection/Configuration.php
Check your composer.json and make sure the correct version is there
You can just use
"laupifrpar/pusher-bundle": "*"
Dont forget to update your dependency after modifying composer.json using
composer update "laupifrpar/pusher-bundle"

Sqlite file db for codeception testing fails

Attempts to use a sqlite file database in the app/cache/tests directory fail. This is determined by clearing the dev MySQl database and populating the test environment database via the console. Test database being populated was confirmed by an external Sqlite Manager. [Tests performed without the sqlite configuration pass.]
codeception.yml:
actor: Tester
paths:
tests: tests
log: tests/_output
data: tests/_data
support: tests/_support
envs: tests/_envs
settings:
bootstrap: _bootstrap.php
colors: false
memory_limit: 1024M
extensions:
enabled:
- Codeception\Extension\RunFailed
modules:
config:
- Db:
dsn: 'sqlite:./app/cache/test/test.sqlite'
user: ''
password: ''
dump: tests/_data/test.sql
populate: true
cleanup: false
reconnect: true
Edit:
In an Ubuntu VM, adding the Symfony2 configuration to acceptance.yml allows for partial success - the test uses the Sqlite db but does not rewrite from the specified dump (test.sql). In Windows adding the Symfony configuration makes no difference.
acceptance.yml:
class_name: AcceptanceTester
modules:
enabled:
- PhpBrowser:
url: http://vol
- \Helper\Acceptance
# adding these lines enables Ubuntu to use sqlite db
- Symfony2:
app_path: ./app
environment: test
You haven't enabled Db module in acceptance.yml
modules:
enabled:
- Db
- PhpBrowser:
url: http://vol
- \Helper\Acceptance
Also don't add PhpBrowser and Symfony2 at the same time,
only one can be used.

Cannot find node_module less in dev environnement

In a symfony2 project, I use assetic with less filter.
Everything is ok in prod environnement, the command assetic:dump generates corrects css files.
But when I render the page in dev envrionnement, my css files tell me that the less module could not be find.
It looks like that:
[exception] 500 | Internal Server Error | Assetic\Exception\FilterException
[message] An error occurred while running:
"/usr/bin/node" "/tmp/assetic_lessb45F2E"
Error Output:
module.js:340
throw err;
^
Error: Cannot find module "less"
My config.yml seems to be good
assetic:
debug: %kernel.debug%
use_controller: false
filters:
cssrewrite: ~
less:
node: /usr/bin/node
node_paths: /usr/local/lib/node_modules
apply_to: "\.less$"
My project is served by Apache runned by www-data user.
I tried to chmod 777 my node_modules folder just in case.
Your config does not respect the right hierarchy, and no need to specify .less extension, ir-s default config for less filter :
assetic:
debug: %kernel.debug%
use_controller: false
node: /usr/bin/node
node_paths: /usr/lib/node_modules
filters:
cssrewrite: ~
less: ~
Check /usr/bin path if node binary is in there (or linked), but maybe you should define this binary (looks like you locally installed node) :
node: /usr/local/bin/node
node_paths: /usr/LOCAL/lib/node_modules

Resources