-
Notifications
You must be signed in to change notification settings - Fork 149
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
[8.0 / 14.04] My Installation Method + Error: Failure! Connection to DOCS service was not established or convertion to PDF unsuccessful! Details: name '_readFile' is not defined #47
Comments
[UPDATE 8.0/Master] The wizard now gets stuck at the same step (after entering authentication details) with the following error message: Failure! Connection to DOCS service was not established or convertion to PDF unsuccessful! Details: |
@lukebranch I get the same error on Aeroo Docs. Error: name '_readFile' is not defined |
Thanks for the fix! I'm going to test your changes on my local dev instance. I'll post back here and let you know how I get on. |
Failure Connection DOCS Error: |
I think you're using an older version of Aeroo, or the Jamotion fork. I'd recommend removing the old Aeroo repositories you have and starting fresh. I put together a (draft) installation method for Aeroo on Ubuntu 14.04. It is not complete yet, but it should give you a good place to start with installing Aeroo: |
A I have change the port to 8989 like in the aeroo-docs.conf . |
@sraps , I've updated my steps to install on Ubuntu 14.04. Please see the following: Ubuntu 14.04 Aeroo Reports installation method:
Install AerooLib:
Create Init Script for OpenOffice (Headless Mode) - (see: https://www.odoo.com/forum/help-1/question/how-to-install-aeroo-reports-2780 for original post from Ahmet):
#!/bin/sh /usr/bin/soffice --nologo --nofirststartwizard --headless --norestore --invisible "--accept=socket,host=localhost,port=8100,tcpNoDelay=1;urp;" &
Trying 127.0.0.1... Install AerooDOCS (see: https://github.com/aeroo/aeroo_docs/wiki/Installation-example-for-Ubuntu-14.04-LTS for original post):
Install Odoo from Source:
Install Aeroo Reports:
After following the (above) steps in this guide you should have Aeroo Reports installed correctly on your server for Ubuntu 14.04 and Odoo 8.0. You'll just need to create a database and install the required Aeroo reports modules you need for that database. [ ! ] Do not have aeroo_report_sample in your addons directory or you will get an error message when updating module list: Install report_aeroo module in Odoo database:
Success! Connection to the DOCS service was successfully established and PDF convertion is working. You now have a fully operational Aeroo Reports installation in Ubuntu 14.04. Would you accept a PR with an SH script for installing Aeroo reports from source? |
HTTPConnectionPool(host='localhost', port=8989): Max retries exceeded with url: / (Caused by <class 'socket.error'>: [Errno 111] Connection refused) |
Can you try the following: telnet localhost 8100 or try starting OpenOffice again: sudo /etc/init.d/office I had OpenOffice crash on me when I was doing very large reports (eg. 10,000+ products with images to XLS format). |
same error again when I try to connect with DOCS |
I guess you should separate your report in parts (like product categories), then convert them separately to PDF, after which - merge them into single document. In other words do the report on product category, and turn on process separately. IMHO office process just runs out of resources - you could test this by creating ODS file without converting it to PDF, then open the file in office manually from UI, try exporting it to XLS/PDF. See what happens. |
@sraps , Thanks for the tip! I'll try that now. I'm still trying to understand how to use the Process Separately function. What I would like to do is split off my ODS/XLS by category (for https://github.com/ingadhoc/odoo-addons/tree/8.0/product_catalog_aeroo_report) into different worksheets somehow. For example, if I have the following Categories: Category A I'd really like to do a foreach loop to put the contents of each category into a different worksheet. Do you know if there a way of accomplishing this with Aeroo reports, or is this beyond the scope of the default functionality? Thanks for all your work on this reporting tool, it is really valuable contribution to the Odoo community. |
@lukebranch About worksheets - unfortunately, it's impossible Aeroo now works only on first worksheet. |
@sraps , Thank you for your help. I will be putting together some tutorials about getting started with reporting in Aeroo Reports and 8.0 on the help forum at help.odoo.com soon. I'm going to be putting together some sample reports to get people started as well, i'd be happy to submit PR's for them once they're done if you are open to receiving contributions from the community for basic sample reports like this (eg. quotation/saleorder, invoice, etc.). |
Could you provide me with some steps to reproduce the error from a clean Ubuntu 14.04 installation? It's a bit difficult to help, as I cannot reproduce the error you have mentioned. |
With the normal installation I have no problems. But when I let Odoo run in a docker container I can't use aeroo-docs in that container. |
@sraps , FYI - i've just completed a working installation script for installing Aeroo Reports for Odoo 8.0 in Ubuntu 14.04 here: https://github.com/OdooCommunityWidgets/install-scripts/blob/8.0/aeroo_reports/aeroo_install.sh There's a forum post regarding the installation method and the script here: Would you accept a PR for the installation script, or would you prefer to keep it a community script outside of the github.com/aeroo repositories? |
I'd recommend checking out the script mentioned above. I'm not experienced with docker at this point in time, however I think a good place to look if you're having trouble would be the /etc/aeroo-docs.conf file. You may need to modify the settings in this file based on your docker setup. |
@lukebranch At the moment I can not try out the script.. Could someone review it and then I'll include it in repository. |
@sraps , No problem. It's currently being tested by some community members on the forums as well as in my own instances, however I have asked Andre Schenkels' (@aschenkels-ictstudio) for his insight and advice on the script in this issue here: OdooCommunityWidgets/install-scripts#2 Andre has written a number of similar-style scripts that have been widely adopted by the Odoo community and therefore his opinion on this would be invaluable (for example the Odoo install script found here): If anyone else can test out the script themselves in the meantime however it would be appreciated. Please report any issues here if possible: https://github.com/OdooCommunityWidgets/install-scripts/issues/ |
@sraps , If it helps, I believe Jay Vora (@JayVora-SerpentCS) from Serpent CS is also aware of the script: http://www.serpentcs.com/serpentcs-aeroo-report-installation-script-odoo so hopefully his team can provide some feedback on the script as well. |
May be this article can help you.It write in Russian,but I think - you understand,because need copy only two code-block an insert their in aeroo script. |
@VeeSot , Thanks for the link, could you explain what you mean about adding it to the Aeroo installation script? I have tried google translate for the article you posted a link to, but it doesn't make much sense to me. |
@lukebranch , |
@VeeSot , What issues did you run into with the script? Did you restart the server after the installation was completed? There are a number of people who have been using this script without issue recently however if you've run into issues with it personally i'd definitely be interested in hearing about what issues you've run into and how I can revise my script to resolve these issues. |
Hi, We use xoe as installation and management script for Odoo.
We used Luke's one successfully to add aeroo reports, by just adjusting a
couple paths. No issues at all!
Regards,
Mario
|
good to hear! Out of curiousity, what paths did you need to adjust and why? |
Hi, Basically the path for the addons, as xoe keeps everything inside of By the way, great job!!
|
Hi @sraps ,
Thanks for all your work on these reporting modules. I've attempted to put together an installation guide that I would like to publish on the help forums for installing Aeroo Reports on Ubuntu 14.04 and Odoo 8.0.
Unfortunately when I get to 30) (ie. the last step) in the guide, I receive the following error through the wizard interface:
Failure! Connection to DOCS service was not established or convertion to PDF unsuccessful!
Details:
name '_readFile' is not defined
Here's the guide:
I have managed to get this working using the following method on a clean Ubuntu 14.04 installation:
Ubuntu 14.04 Aeroo Reports installation method:
Install Git:
Install AerooLib:
Install AerooDOCS (see: https://github.com/aeroo/aeroo_docs/wiki/Installation-example-for-Ubuntu-14.04-LTS for original post):
[ ! ] If you encounter and error "Unable to lock on the pidfile while trying 16) just restart your server (sudo shutdown -r now) and try 16) again after reboot.
Install Odoo from Source:
Install Aeroo Reports:
After following the (above) steps in this guide you should have Aeroo Reports installed correctly on your server for Ubuntu 14.04 and Odoo 8.0. You'll just need to create a database and install the required Aeroo reports modules you need for that database.
[ ! ] Do not have aeroo_report_sample in your addons directory or you will get an error message when updating module list:
Warning! Unmet python dependencies! No module named cups
Install report_aeroo module in Odoo database:
24) Go to Settings >> Users >> Administrator in the backend of Odoo
25) Tick the box next to 'Technical Features' and Save, then refresh your browser window.
26) Go to Settings >> Update Modules List > Update
27) Go to Settings >> Local Modules > Search for: Aeroo
28) Install report_aeroo
29) You'll be confronted with an installation wizard, click: Continue >> Choose Simple Authentication from the Authentication dropdown list, and add username and password: anonymous
[ ! ] You can change the username and password in: /etc/aeroo-docs.conf if required.
30) Click Apply and Test.
The text was updated successfully, but these errors were encountered: