Closed Urtza2 closed 6 years ago
I had the same problem. I fixed it when i got the charging backend to run properly.
How to do you know the charging backend is runnning properly? I deploy backend in Apache and I have no errors.
Another issue, I don't know if it is related with the charging backend. I am not able to create an admin user for the BAE. Do you know how to create and assign admin role to an IDM user?
Thanks
All I know is that first I did not have any charging backend running at all. Then I installed it and ran it, of which after the "Failed to retrieve currency codes" disappeared. I installed the charging backend using Django and virtualenv.
I haven't tried assigning a admin role yet. I will let you know when I tried.
At the end I have installed again all BIZ and errors dissapear. Thanks
Hi again, I get the same error again. I have this configuration of logic proxy:
var config = {};`
// The PORT used by
config.port = 81;
config.host = 'localhost';
config.proxy = {
enabled: false,
host: 'localhost',
secured: false,
port: 81
}
// Set this var to undefined if you don't want the server to listen on HTTPS
config.https = {
enabled: false,
certFile: 'cert/cert.crt',
keyFile: 'cert/key.key',
caFile: 'cert/ca.crt',
port: 443
};
// Express configuration
config.proxyPrefix = '';
config.portalPrefix = '';
config.logInPath = '/login';
config.logOutPath = '/logOut';
config.sessionSecret = 'keyboard cat';
config.theme = '';
// OAuth2 configuration
config.oauth2 = {
'server': 'https://localhost:8443',
'clientID': '9b5425d4-41cc-496f-b368-054b64e5e9fd',
'clientSecret': 'c877e186-1620-476e-89b8-263bb252ffec',
'callbackURL': 'http://localhost:81/auth/fiware/callback',
'isLegacy': false,
'roles': {
'admin': 'admin',
'customer': 'customer',
'seller': 'seller',
'orgAdmin': 'orgAdmin'
}
};
// Customer Role Required to buy items
config.customerRoleRequired = false;
// MongoDB
config.mongoDb = {
server: 'localhost',
port: 27017,
user: '',
password: '',
db: 'belp'
};
// Configure endpoints
config.endpoints = {
'management': {
'path': 'management',
'host': 'localhost',
'port': config.port,
'appSsl': config.https.enabled
},
'catalog': {
'path': 'DSProductCatalog',
'host': 'localhost',
'port': '8085',
'appSsl': false
},
'ordering': {
'path': 'DSProductOrdering',
'host': 'localhost',
'port': '8085',
'appSsl': false
},
'inventory': {
'path': 'DSProductInventory',
'host': 'localhost',
'port': '8085',
'appSsl': false
},
'charging': {
'path': 'charging',
'host': 'localhost',
'port': '8006',
'appSsl': false
},
'rss': {
'path': 'DSRevenueSharing',
'host': 'localhost',
'port': '8085',
'appSsl': false
},
'party': {
'path': 'DSPartyManagement',
'host': 'localhost',
'port': '8085',
'appSsl': false
},
'billing':{
'path': 'DSBillingManagement',
'host': 'localhost',
'port': '8085',
'appSsl': false
},
'customer': {
'path': 'DSCustomerManagement',
'host': 'localhost',
'port': '8085',
'appSsl': false
},
'usage': {
'path': 'DSUsageManagement',
'host': 'localhost',
'port': '8085',
'appSsl': false
}
};
// Percentage of the generated revenues that belongs to the system
config.revenueModel = 30;
// Tax rate
config.taxRate = 20;
// Billing Account owner role
config.billingAccountOwnerRole = 'bill receiver';
// list of paths that will not check authentication/authorization
// example: ['/public/*', '/static/css/']
config.publicPaths = [];
config.magicKey = undefined;
config.usageChartURL = 'https://mashup.lab.fiware.org/fdelavega/UsageChart?mode=embedded&theme=wirecloud.fiwarelabtheme';
module.exports = config;
I try to run charging backend with two options: using Django and deploying with apache.
And in the logic proxy appear this error.
The problem is that it is neccesary to create an Offering in BAE. I can't create an offering taking this error.
And after I can't publish anything in CKAN because it is neccesary an offering from BAE.
I have BIZ ecosystem V6.4.0 develop branch version
Please someone can help me?
What are the steps that I have to follow?,
Thanks
Urtza
It works now. I don't know why but in setting.py file I have not included information related to charge periods and currency codes
Hi, When I start business-ecosystem-logic-proxy appears this error.
I don't know if it is mandatory or not for BIZ Ecosystem. I can't find the urls that in server.js (function onlistening() appear. These are the following:
pathname: '/'+ urldata.path + '/api/assetManagement/chargePeriods/', pathname: '/'+ urldata.path + '/api/assetManagement/currencyCodes/',
I take a look in /home/user1/Business-API-Ecosystem/business-ecosystem-charging-backend/src/wstore/urls.py (DJANGO) and I have the followings:
Please someone can help with this. Thanks.