Skip to content

Instantly share code, notes, and snippets.

Admin user
tai_nguyen@tai-Precision-5510:~$ curl -X GET 'https://backup-tn6844bup3-prd.lfr.coffee/backup/download/database/dxpcloud-qielrsjdhaiediaoby-202006170120' -H 'Authorization: Bearer eyJraWQiOiI1X0NmZ1ZENG9mbmNOYkhkMGVVQVd5MXlXTlF3XzVxWUFtRUNDVmRnZ0dRIiwiYWxnIjoiUlMyNTYifQ.eyJ2ZXIiOjEsImp0aSI6IkFULlV4TDBoYmhuTEEya3d4eHZtODBRelRUUzVXWGgxeHFJaDlnWHVhUkJFa1EuUTBpSFdqZHMvUlZjV0hmV2psSWVrTWRnVktUS2NVdmFGUk1ubWM1LzVlQT0iLCJpc3MiOiJodHRwczovL2F1dGgubGlmZXJheS5jb2ZmZWUvb2F1dGgyL2RlZmF1bHQiLCJhdWQiOiJhcGk6Ly9kZWZhdWx0IiwiaWF0IjoxNTkyMzU3MzQ2LCJleHAiOjE1OTIzNTgyNDYsImNpZCI6IjBvYTI2Z2Vhd3ZGMGZGWFNkNHg2IiwidWlkIjoiMDB1NHN3anY5WEY4UlF6N3g0eDYiLCJzY3AiOlsib3BlbmlkIiwib2ZmbGluZV9hY2Nlc3MiLCJwcm9maWxlIl0sInN1YiI6InRhaS5uZ3V5ZW5AbGlmZXJheS5jbG91ZCJ9.dni5S1TqLYIRdoMwuhmk-1yFV0_ByhHkIroA8K9xJvmQAUC4BC9Bp73FWGbXlNxQo6z0BpICCy2SeV7urETMMYFbRUipyIa-Q41DMNXYG22rFJK2EFpBZKoXu0Qd6Fni_kBi-qj6bFOvxT_1Qr6KPLtMue8Stn2PIrfKzfMN0YFdWv8Wgozo5dLyk0wFdfpfefLMVweVircyRKTjF-rXyAfYaho4jFPvTz3O0HwGdTgyizoWytHJ__ggZP7F2BZigBHrMRPyUkmHfrD8g
Jun 15 15:44:07.711 build-1 [ci-0] 2020-06-15 22:44:07.709+0000 [id=11] WARNING o.e.j.s.h.ContextHandler$Context#log: Error while serving https://ci-cyreleasetest-infra.lfr.st/blue/rest/search/
Jun 15 15:44:07.711 build-1 [ci-0] org.apache.oro.text.regex.MalformedPatternException: ?+* follows nothing in expression
at org.apache.oro.text.regex.Perl5Compiler.__parseAtom(Unknown Source)
at org.apache.oro.text.regex.Perl5Compiler.__parseBranch(Unknown Source)
at org.apache.oro.text.regex.Perl5Compiler.__parseAlternation(Unknown Source)
at org.apache.oro.text.regex.Perl5Compiler.__parseExpression(Unknown Source)
at org.apache.oro.text.regex.Perl5Compiler.compile(Unknown Source)
at org.apache.oro.text.regex.Perl5Compiler.compile(Unknown Source)
at org.apache.oro.text.GlobCompiler.compile(Unknown Source)
at org.apache.oro.text.GlobCompiler.compile(Unknown Source)
@tainguyen100
tainguyen100 / gist:65284aca45dfde1a31c03ccf463c4ad1
Last active January 24, 2020 00:09
SQL Server 2016 on 7.2.10.1
2020-01-23 23:15:44.557 ERROR [http-nio-8080-exec-5][JDBCExceptionReporter:234] Cannot insert duplicate key row in object 'dbo.PortletPreferences' with unique index 'IX_C7057FF7'. The duplicate key value is (0, 3, 40970, com_liferay_product_navigation_product_menu_web_portlet_ProductMenuPortlet).
2020-01-23 23:15:44.561 ERROR [http-nio-8080-exec-5][RuntimeTag:389] org.springframework.dao.InvalidDataAccessResourceUsageException: Could not execute JDBC batch update; SQL [insert into PortletPreferences (mvccVersion, companyId, ownerId, ownerType, plid, portletId, preferences, portletPreferencesId) values (?, ?, ?, ?, ?, ?, ?, ?)]; nested exception is org.hibernate.exception.SQLGrammarException: Could not execute JDBC batch update
org.springframework.dao.InvalidDataAccessResourceUsageException: Could not execute JDBC batch update; SQL [insert into PortletPreferences (mvccVersion, companyId, ownerId, ownerType, plid, portletId, preferences, portletPreferencesId) values (?, ?, ?, ?, ?, ?, ?, ?)]; nested exception i
@tainguyen100
tainguyen100 / gist:87c25edd3c8ba3b7a742f8ff4813da3a
Last active January 23, 2020 17:56
Startup issue for Liferay DXP 7.0 SP10
tai@qa-tai:~/Documents/Daily_Builds/liferay-dxp-digital-enterprise-7.0.10.10-sp10/tomcat-8.0.32/bin$ ./catalina.sh run
Using CATALINA_BASE: /home/tai/Documents/Daily_Builds/liferay-dxp-digital-enterprise-7.0.10.10-sp10/tomcat-8.0.32
Using CATALINA_HOME: /home/tai/Documents/Daily_Builds/liferay-dxp-digital-enterprise-7.0.10.10-sp10/tomcat-8.0.32
Using CATALINA_TMPDIR: /home/tai/Documents/Daily_Builds/liferay-dxp-digital-enterprise-7.0.10.10-sp10/tomcat-8.0.32/temp
Using JRE_HOME: /usr/lib/jvm/java-1.8.0-openjdk-amd64
Using CLASSPATH: /home/tai/Documents/Daily_Builds/liferay-dxp-digital-enterprise-7.0.10.10-sp10/tomcat-8.0.32/bin/bootstrap.jar:/home/tai/Documents/Daily_Builds/liferay-dxp-digital-enterprise-7.0.10.10-sp10/tomcat-8.0.32/bin/tomcat-juli.jar
OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=384m; support was removed in 8.0
23-Jan-2020 17:55:01.038 WARNING [main] org.apache.catalina.startup.ClassLoaderFactory.validateFile Problem with directory [/home/tai/Documents/Daily
@tainguyen100
tainguyen100 / gist:8322fe423a373e6aa2a7d7ed96551a10
Created January 21, 2020 19:21
sudo npm install -g generator-liferay-theme
tai@qa-tai:~/Desktop/themes$ sudo npm install -g generator-liferay-theme
[sudo] password for tai:
npm WARN deprecated cross-spawn-async@2.2.5: cross-spawn no longer requires a build toolchain, use it instead
npm WARN deprecated gulp-util@3.0.8: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
npm WARN deprecated coffee-script@1.12.7: CoffeeScript on NPM has moved to "coffeescript" (no hyphen)
npm WARN deprecated gulp-util@2.2.20: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated minimatch@0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated graceful-fs@1.2.3: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
npm WARN deprecated natives@1.1.6: This module relies on