whenever I try to configure room, converse.js disconnects. Why? - ejabberd

I installed converse.js in my server and got it connected to ejabberd using ejabberd's BOSH. Ejabberd is also installed in my server. Now when i create a room, the room is created, I can invite users. But when I go to the configuration page, converse.js hangs and disconnects and does not allow me to configure the room at all. What am I doing wrong here? Do I have to enable some configuration in ejabberd?

Related

Why i can not connect to admin panel/client by domain?

I try install ejabberd on my server. Then i install it, i edit ejabberd.yml file. Add domain in hosts section. When I try to connect to the admin panel by domain, it just doesn’t connect. But if I connect by ip everything works. What should I do ? Where to look ?
it just doesn’t connect
Does ejabberd show the connection attempt in the ejabberd log file?
If yes: I guess the web browser also requests you an admin account and password. You will have to register a new account in ejabberd, grant it admin rights in the configuration file, and restart ejabberd.
If nothing shown in the log file, then maybe your web browser doesn't know how to connect to ejabberd. Maybe you need to setup DNS.

Login to EC2 server to create MySQL database

I had a friend create an AWS account and an EC2 instance after which he gave me the username and password to login. I am having a lot of trouble getting into the server with the information he gave me. I'm new to amazon services so I'm not sure if I'm doing something wrong or not. I seem to be able to login using PuTTy, but it doesn't prompt me for a password, I just get through with the username alone. copying the ip into a browser just gets me a "This webpage is not available"
message. He also gave me the key file but I'm sure where to use it.
Anyone know how I can get into the server to modify the database?
If there is a message 'This webpage is not available' then it could be there is no HTTP server running on port 80, or the security group configured on the EC2 instance is set to deny connections to port 80. If it is a new instance, there probably isn't a firewall configured locally to deny connections.
If you are sure there is a server running on port 80, you can use these instructions to tunnel through SSH
Set up your PuTTY window like this, and hit the Add button
Navigate to http://127.0.0.1 and you should see the web server if there is one running, if you can navigate using this way, you have a problem with your security group configuration. If you cannot, you do not have a HTTP server running to connect to. If there is not one running (and I am assuming you wish to use phpMyAdmin), you may have to set up apache and install phpMyAdmin
As you connect without a password, do you receive a line along the lines of
'Authenticating with public key "unipc-rpi"' or mentioning 'Pageant', because it means that instead of a password, PuTTY is authenticating using a public key and not a password.

Does Mysql server start before windows login?

I have MYSQL installed in my Windows system. If I just turn on the system and leave it at the Windows Login screen without logging in, I'm still able to access the MYSQL DB from a remote system by knowing the IP.
Is this normal? Does MYSQL begin running even before login? Or is remote login somewhat different?
It's usually a windows service, and that indeed starts before you login.
Yes, MySQL service will start when Windows started and you can connect any MySQL hosted system on the network knowing IpAddress OR System Name.
If you want to block connecting your MySQL DB, ref: this link

Installing Windows Server AppFabric - Unknown user name or bad password

I'm installing Windows Server AppFabric in a Windows 2008 R2 SP1 that is part of my domain. On the Configure Hosting Service, I would like to configure each AppFabric service on a separate Domain account. I've created the 3 necessary databases on a separate database server that is also part of my domain, and 3 domain users, and I've given each domain user db_owner privilege on it's respective database.
When I'm installing Windows Server AppFabric, and I try to set the monitoring configuration, and on the AppFabric Event Collection service account, I'm trying to use the domain user, but it keeps giving me Logon Failure: Unknown username or bad password, but the user and password are valid! On the same server, if I do a runas with the same domain user and password, I open any application I want.
Is there a restriction on using domain accounts for this? I've placed all 3 accounts as local admin and on AS_Administrators, to see if it helped, but it's no good.
After a LOT of troubleshooting, I found out how to configure it. Before the Windows Server AppFabric Configuration Wizard is opened, go to the Services, and configure the 3 services (AppFabricCachingService, AppFabricEventCollectionService and AppFabricWorkflowManagementService) with the domain users you want. Then, you open the Wizard, and the correct domain users will already be configured, and all you need to do is configure the database.
The post https://stackoverflow.com/questions/4733348/configuring-appfabric-with-remote-database also helped, along with the article http://msdn.microsoft.com/en-us/library/ff637739.aspx

Hudson cmd.exe running as

Where does hudson CI get user to run the cmd.exe ?
I'm trying to start and stop some remote services on various slaves and special credentials that are different than what hudson is using are needed. I can't find a place to override the user. I've tried running the server as various users, but it doesn't change anything.
Any other ideas?
Since you want to start and stop the services on the remote machine you need to login with these credentials on the remote machine, since I haven't found a way to start and stop a service on remote machine.
There are different ways to do that. You can create a slave that runs on the remote machines with the correct credentials. You can even create more than one slave for the same machine without any issues, than you can use different credentials for the same machine. These can then fire up the net stop and net start command.
You can also use the SSH plugin. This allows you to configure pre- and post-build ssh scripts. You 'just' need and ssh server on the windows machine. The password for the connection will be stored encrypted.
Use a commad line tool. So far I haven't found a Windows on board tool to have a scripted login to the remote machine. I would use plink for that task. plink is the scripted version of putty. Putty supports different connection types. So you can also use the build in telnet service (not recommended since telnet does not encrypt the connection). Disadvantage is that you will have the password unencrypted in the job configuration.
We had a similar problem, and I resorted to using PsExec. To my advantage, our machines exist on a separate LAN, within 2 firewalls, so I was OK with unencrypted passwords floating around. I had also explored SSH w/ Putty, which seemed to work, but not straightforward.
If someone can help with single line runas command, that could work too.
You don't say how your slaves are connected to Hudson, but I'll assume it's through the "hudson slave" service, since that's probably the most popular way to connect Windows slaves.
If so, the CMD.EXE is run with the same permissions as the user running the service. This can be checked by:
1. run services.msc
2. double-click hudson-slave service
3. go to Log On tab
By default, the slave service runs as "LocalSystem", which is the most powerful account on the system. It should be able to do whatever you need it to do. (i.e. start/stop services)