Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Property "env" for registry.conf conflicted with Apollo property "env". #1209

Closed
xianwei opened this issue Jun 15, 2019 · 10 comments · Fixed by #1225
Closed

Property "env" for registry.conf conflicted with Apollo property "env". #1209

xianwei opened this issue Jun 15, 2019 · 10 comments · Fixed by #1225
Labels
type: enhancement Category issues or prs related to enhancement.

Comments

@xianwei
Copy link

xianwei commented Jun 15, 2019

Why you need it?

Property name "env" for registry.conf conflicted with Apollo bootsrap property name "env".

How it could be?

Unique property name,like seata-env.

Other related information

image

@xingfudeshi
Copy link
Member

Thanks for reporting.i will check.

@xingfudeshi
Copy link
Member

In fact, the parameters passed in through - D are only valid for the current virtual machine process.
Can you show the full commands?

@xianwei
Copy link
Author

xianwei commented Jun 17, 2019

In fact, the parameters passed in through - D are only valid for the current virtual machine process.
Can you show the full commands?

C:\SOFT\Java64\jdk1.8.0_131\bin\java -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:53988,suspend=y,server=n -Dmaven.multiModuleProjectDirectory=C:\WORKSPACE\eluyun-parent\eluyun-webserver -Dspring.profiles.active=redis-single -Denv=dev -Didc=profile-sxw -Dapollo.cacheDir=c:\opt\data\ -Dapollo.configService=http://127.0.0.1:8080 "-Dmaven.home=C:\SOFT\Jetbrains\IntelliJ IDEA 2017.1.5\plugins\maven\lib\maven3" -Didea.modules.paths.file=C:\SOFT\Jetbrains.IntelliJIdea2017.1\system\Maven\idea-projects-state-f5ef8187.properties -Dclassworlds.conf=C:\Users\sxw\AppData\Local\Temp\idea-8701-mvn.conf -Dfile.encoding=UTF-8 -classpath "C:\SOFT\Jetbrains\IntelliJ IDEA 2017.1.5\plugins\maven\lib\maven3\boot\plexus-classworlds-2.5.2.jar;C:\SOFT\Jetbrains\IntelliJ IDEA 2017.1.5\lib\idea_rt.jar" org.codehaus.classworlds.Launcher -Didea.version=2017.1.5 -s C:\SOFT\apache-maven-3.3.3\conf\settings.xml clean tomcat7:run -P local

@xianwei
Copy link
Author

xianwei commented Jun 17, 2019

I copied bootstrap cmd from console.

@xingfudeshi
Copy link
Member

I copied bootstrap cmd from console.

Please refer the wiki here https://github.com/seata/seata/wiki/Multi-configuration-Isolation
You can use the another way to configure the configuration environment.

  • Use SEATA_CONFIG_ENV as the key of environment variable,and it's value will be the name of the environment.[recommended]
e.g.(Linux)

#vi /etc/profile 

export SEATA_CONFIG_ENV=test

:wq

#source /etc/profile

@xianwei
Copy link
Author

xianwei commented Jun 18, 2019

I copied bootstrap cmd from console.

Please refer the wiki here https://github.com/seata/seata/wiki/Multi-configuration-Isolation
You can use the another way to configure the configuration environment.

  • Use SEATA_CONFIG_ENV as the key of environment variable,and it's value will be the name of the environment.[recommended]
e.g.(Linux)

#vi /etc/profile 

export SEATA_CONFIG_ENV=test

:wq

#source /etc/profile

Thanks. It's ok in the most situation although the different env in the only server maybe have the same problem. In fact ,we have two envs in the same server for now.Perhaps we should apply for another server : ) .

@xingfudeshi
Copy link
Member

You can start the seata-server like this
sh seata-server.sh -Denv=test
You may need to specific different port for multiple instances.please see the help options.(seata-server --help)

@xianwei
Copy link
Author

xianwei commented Jun 19, 2019

You can start the seata-server like this
sh seata-server.sh -Denv=test
You may need to specific different port for multiple instances.please see the help options.(seata-server --help)

Sorry, I mean the application env,not seata server env.

@xingfudeshi
Copy link
Member

You can start the seata-server like this
sh seata-server.sh -Denv=test
You may need to specific different port for multiple instances.please see the help options.(seata-server --help)

Sorry, I mean the application env,not seata server env.

OK.I got it.I will improve it.

@xingfudeshi
Copy link
Member

You can start the seata-server like this
sh seata-server.sh -Denv=test
You may need to specific different port for multiple instances.please see the help options.(seata-server --help)

Sorry, I mean the application env,not seata server env.

I've made a PR to improve this problem.

@wangliang181230 wangliang181230 added type: enhancement Category issues or prs related to enhancement. and removed enhancement labels Oct 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement Category issues or prs related to enhancement.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants