I just installed iReport yesterday and it was working fine. But when I try to run it today it is not waroking properly.
Here is what I have done;
1. Downloaded iReport-4.0.2
2. extracted it in my downloads folder
3. try running though terminal
1. udy@linux:~/Downloads/iReport-4.0.2/bin$ sudo ./ireport , this gives the No protocol specified error in terminal.
2. udy@linux:~/Downloads/iReport-4.0.2/bin$ ./ireport (without sudo), this show many error messages in terminal and starts iReport. But again shows popup several errors. Still I cannot create or edit reports.
here are the errors. I can post the output in terminal if needed. But its quite lengthy.
This looks to be a linux permissions/ownershipt issue.
Once an application is executed as root user (ie by using the "sudo" command) then any new file or possibly other files will end up with root ownership.
So, then, later if you try and run as a normal (non-root) user you will get permission errors (different message depending on application).
Probably the "best practice" thing to do would be to choose the user that you would like to have ireport and jasperreports-server as.
Then you would set all ownership to this user:
chown myuser:mygroup -R * (change everything in this folder to user: myuser and group: mygroup recursively)
chown myuser:mygroup -R *
The only trick is that there will be/can be "temporary" files that still have the root ownership. These will still cause a problem.
You can delete these temporary/cache files:
And check if you find cached files in ubutu's folder /tmp